質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

Docker

Dockerは、Docker社が開発したオープンソースのコンテナー管理ソフトウェアの1つです

Q&A

解決済

2回答

7083閲覧

ubuntuでapt-get updateするとエラー。

tkshp

総合スコア174

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

Docker

Dockerは、Docker社が開発したオープンソースのコンテナー管理ソフトウェアの1つです

0グッド

0クリップ

投稿2018/04/20 04:20

編集2018/04/20 04:46

前提・実現したいこと

最新バージョンのubuntuのコンテナでupdateを実行するとエラーを吐き出しました。
ご教示お願いします。

発生している問題・エラーメッセージ

# apt-get update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease 0% [2 InRelease gpgv 247 kB] [Waiting for headers] [1 InRelease 12.6 kB/102 kB 12%]Couldn't create tempfiles for splitting up /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_xeniErr:2 http://archive.ubuntu.com/ubuntu xenial InRelease Could not execute 'apt-key' to verify signature (is gnupg installed?) Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] 0% [1 InRelease gpgv 102 kB] [3 InRelease 62.8 kB/102 kB 62%]Couldn't create tempfiles for splitting up /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_xenial-security_IErr:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Could not execute 'apt-key' to verify signature (is gnupg installed?) Err:3 http://archive.ubuntu.com/ubuntu xenial-updates InReleasete tempfiles for splitting up /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_xenial-updates_InRelease Could not execute 'apt-key' to verify signature (is gnupg installed?) Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Ign:4 http://archive.ubuntu.com/ubuntu xenial-backports InReleaseng up /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_xenial-backports_InRelease Get:5 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [5153 B] Get:6 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7734 B] Fetched 319 kB in 2s (137 kB/s) Reading package lists... Done W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com/ubuntu xenial InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?) W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.ubuntu.com/ubuntu xenial-security InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?) W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com/ubuntu xenial-updates InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?) W: GPG error: http://archive.ubuntu.com/ubuntu xenial-backports InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?) W: The repository 'http://archive.ubuntu.com/ubuntu xenial-backports InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Could not execute 'apt-key' to verify signature (is gnupg installed?) W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Could not execute 'apt-key' to verify signature (is gnupg installed?) W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Could not execute 'apt-key' to verify signature (is gnupg installed?) W: Some index files failed to download. They have been ignored, or old ones used instead.
/# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

自己解決

chmod -R 0777 /tmp

投稿2018/04/20 06:37

tkshp

総合スコア174

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

NOTE:
問題の解決策ではありません.


Could not execute 'apt-key' to verify signature (is gnupg installed?)

とあるので, リポジトリの署名を検証できないことによるエラー(apt-key実行時に必要となるgnupgが見つからない)のようです. なので, gnupgをインストールすれば良さそうなのですが, そのためのaptが正しく動作するのかがわかりません.

投稿2018/04/20 04:51

defghi1977

総合スコア4756

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

tkshp

2018/04/20 05:02

ご回答ありがとうございます。 apt-get install gnupg2 実行しましたが、エラーメッセージは変わらない様子でした。
defghi1977

2018/04/20 05:05

Docker自体よく知らないのですが, Ubuntuコンテナそのものがアレな気がするので, バージョンを一個戻すとか出来ないのでしょうか?
tkshp

2018/04/20 05:14

ご回答ありがとうございます。 バージョンを古いものにしたらエラーは解消されました。 できれば、最新バージョンでの解決法も知りたいので、まだ質問はクローズしないでおきたいと思います。
defghi1977

2018/04/20 05:16

コンテナを提供されている方に訊いてみたら如何でしょうか?
tkshp

2018/04/20 05:46

ご回答ありがとうございます。 訊いてみます。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問