1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AUTOSAR CountdownAdvent Calendar 2022

Day 9

command not found:7z docker(67)今日のdocker error(41)

Last updated at Posted at 2019-10-06
macOS
$  docker run -v /Users/ogawakiyoshi/work:/home/work -it gcc /bin/bash

docker で

docker/ubuntu
# 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だとコマンド知ってるの?

参考資料(reference)

今日のdocker error: tar, wget
https://qiita.com/kaizen_nagoya/items/e49231092a4419368241

Posix Test Suite docker downloads, tar, install
https://qiita.com/kaizen_nagoya/items/f1e24be04a2405ede00f

Posix Test Suite 解凍方法(Windows power shell版)
https://qiita.com/kaizen_nagoya/items/57ee061892bc9afcf860

Error一覧 error(0)
https://qiita.com/kaizen_nagoya/items/48b6cbc8d68eae2c42b8

<この記事は個人の過去の経験に基づく個人の感想です。現在所属する組織、業務とは関係がありません。>
This article is an individual impression based on the individual's experience. It has nothing to do with the organization or business to which I currently belong.

文書履歴(document history)

ver. 0.01 初稿 20191006

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?