docker(67)今天的docker错误:7z

$  docker run -v /Users/ogawakiyoshi/work:/home/work -it gcc /bin/bash

在中国的应用场景中使用Docker

# apt update; apt -y upgrade

# apt install -y p7zip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  p7zip-full
The following NEW packages will be installed:
  p7zip
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 376 kB of archives.
After this operation, 1010 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 p7zip amd64 16.02+dfsg-6 [376 kB]
Fetched 376 kB in 0s (1458 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package p7zip.
(Reading database ... 23984 files and directories currently installed.)
Preparing to unpack .../p7zip_16.02+dfsg-6_amd64.deb ...
Unpacking p7zip (16.02+dfsg-6) ...
Setting up p7zip (16.02+dfsg-6) ...

# 7z x NP_distr.Z 
bash: 7z: command not found

# apt install -y p7zip-full
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  p7zip-rar
The following NEW packages will be installed:
  p7zip-full
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1164 kB of archives.
After this operation, 4771 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 p7zip-full amd64 16.02+dfsg-6 [1164 kB]
Fetched 1164 kB in 0s (2753 kB/s)   
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package p7zip-full.
(Reading database ... 23996 files and directories currently installed.)
Preparing to unpack .../p7zip-full_16.02+dfsg-6_amd64.deb ...
Unpacking p7zip-full (16.02+dfsg-6) ...
Setting up p7zip-full (16.02+dfsg-6) ...

# 7z x NP_distr.Z 

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,2 CPUs Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz (40651),ASM,AES-NI)

Scanning the drive for archives:
1 file, 1133631 bytes (1108 KiB)

Extracting archive: NP_distr.Z
--
Path = NP_distr.Z
Type = Z

Everything is Ok

Size:       3768320
Compressed: 1133631

为什么使用p7zip时不知道命令,而使用p7zip-full时却知道命令?

参考资料

今天的Docker错误:tar,wget
https://qiita.com/kaizen_nagoya/items/e49231092a4419368241

今天的Docker报错:tar,wget
https://qiita.com/kaizen_nagoya/items/e49231092a4419368241

今天的Docker出错:tar,wget
https://qiita.com/kaizen_nagoya/items/e49231092a4419368241

Posix测试套件Docker下载、tar解压、安装
https://qiita.com/kaizen_nagoya/items/f1e24be04a2405ede00f

Posix测试套件解压方法(Windows PowerShell版)
https://qiita.com/kaizen_nagoya/items/57ee061892bc9afcf860

文件历史

版本0.01 初稿 20191006

非常感谢您阅读到最后。

请给一个选项 :-
很喜欢?,请关注。

非常感谢您一直读到最后一句话。

请点击喜欢的图标 ? 并关注我,为您的幸福生活。