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

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

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

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

sh

shは、UNIX系OSのシェル操作の1つであり、最も基本的なシェルのことです。

Q&A

解決済

1回答

5645閲覧

E:Unable to locate package google-cloud-sdk のエラー

退会済みユーザー

退会済みユーザー

総合スコア0

Ubuntu

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

sh

shは、UNIX系OSのシェル操作の1つであり、最も基本的なシェルのことです。

0グッド

1クリップ

投稿2017/10/17 07:15

編集2017/10/17 07:48

ラズベリーパイのターミナルで
https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu
の手順に従って
Create an environment variable for the correct distribution
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"

Add the Cloud SDK distribution URI as a package source
echo "deb https://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list

Import the Google Cloud Platform public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

Update the package list and install the Cloud SDK
sudo apt-get update && sudo apt-get install google-cloud-sdk
のコマンドを打つと以下のようなエラーが出ました。

Err http://mirrordirector.raspbian.org jessie InRelease Err http://archive.raspberrypi.org jessie InRelease Err http://archive.raspberrypi.org jessie Release.gpg Could not resolve 'archive.raspberrypi.org' Err http://mirrordirector.raspbian.org jessie Release.gpg Could not resolve 'mirrordirector.raspbian.org' Reading package lists... Done W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/InRelease W: Failed to fetch http://archive.raspberrypi.org/debian/dists/jessie/InRelease W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/Release.gpg Could not resolve 'mirrordirector.raspbian.org' W: Failed to fetch http://archive.raspberrypi.org/debian/dists/jessie/Release.gpg Could not resolve 'archive.raspberrypi.org' W: Some index files failed to download. They have been ignored, or old ones used instead. Reading package lists...DONE Building dependency tree Reading state information...DONE E: Unable to locate package google-cloud-sdk

コマンドのurlの打ち間違いかと思いましたが、何回見ても打ち間違いではありませんでした。

このエラーは、
古いもう存在しないurlからダウンロードしているということなのでしょうか?

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

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

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

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

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

manzyun

2017/10/17 07:28

写真のようなエラーとありますが、写真が見当たりません。写真の追加か、エラーメッセージを記入していただけますと幸いです。
退会済みユーザー

退会済みユーザー

2017/10/17 07:48

情報を追加しました。もしお分かりでしたらお願いします。
guest

回答1

0

ベストアンサー

すぐに回答できずに申し訳ないです。

ログの

Err http://archive.raspberrypi.org jessie Release.gpg

Could not resolve 'archive.raspberrypi.org'
Err http://mirrordirector.raspbian.org jessie Release.gpg
Could not resolve 'mirrordirector.raspbian.org'

部分を見る限り、信頼できる認証情報が取得できないため、パッケージのインストールがされいていないのではと思います。

手元にRaspbianがなく、今現在仮想環境のUbuntuを触れる状態ではないので検証できませんが、もしかしたらこのQiitaの記事が参考になるかもしれません。

RASPBIAN JESSIE LITEでapt-get updateでGPG errorが発生した時の対処法 - Qiita

投稿2017/10/23 06:45

manzyun

総合スコア2244

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問