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

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

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

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

yum

yumコマンドは、UNIX系OSのRPMパッケージのインストールなどを行うためのプログラムのことです。

Q&A

解決済

4回答

9477閲覧

CentOS7 yum updateができない

ryohasegawa

総合スコア437

CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

yum

yumコマンドは、UNIX系OSのRPMパッケージのインストールなどを行うためのプログラムのことです。

0グッド

1クリップ

投稿2017/07/14 10:06

yumでアップデートをしようとsudo yum updateを実行するとエラーが発生してアップデートできません。
どうすればいいですか?

sudo yum update [sudo] password for ***: 読み込んだプラグイン:fastestmirror Could not retrieve mirrorlist http://ftp.riken.jp/Linux/centos/7/os/x86_64/ error was 14: curl#6 - "Could not resolve host: ftp.riken.jp; 不明なエラー" One of the configured repositories failed (不明), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this: 1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work). 3. Run the command with the repository temporarily disabled yum --disablerepo=<repoid> ... 4. Disable the repository permanently, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage: yum-config-manager --disable <repoid> or subscription-manager repos --disable=<repoid> 5. Configure the failing repository to be skipped, if it is unavailable. Note that yum will try to contact the repo. when it runs most commands, so will have to try and fail each time (and thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise: yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true Cannot find a valid baseurl for repo: base

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

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

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

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

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

guest

回答4

0

他の人にも似たような質問がありましたがLinuxはデフォルトではネットに接続しません。接続してないのにyumしようとしてるのでは?

投稿2017/07/14 13:15

mike2mike4

総合スコア894

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

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

ryohasegawa

2017/07/14 14:29

ありがとうございます。
guest

0

1.インターネットにつながっていない
2.Proxy経由でインターネットにつながっているのに、Proxyの設定をしていない
3.インターネットにつながっているが、DNSの設定が間違っている
あたりでしょうか。

投稿2017/07/14 13:11

otn

総合スコア84498

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

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

0

ベストアンサー

DNSの設定をしてみてください。

投稿2017/07/14 10:42

imokurity

総合スコア297

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

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

ryohasegawa

2017/07/14 14:29

設定したら、アップデートできるようになりました。 ありがとうございます。
guest

0

エラーが出たときはエラーメッセージを Google 検索 してみると良いですよ。今回であれば「yum Could not resolve host」と検索すれば一発で答えが分かります。長めの英文は、Google 翻訳 で訳してみてください。完全ではありませんが、参考になる日本語訳が出てくると思います。teratailは自分で頑張って調べて、それでも分からないときに利用してください。

投稿2017/07/15 10:11

退会済みユーザー

退会済みユーザー

総合スコア0

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

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

ryohasegawa

2017/07/16 05:15 編集

調べました。アップデートするサーバのURLが変わっている場合があるというのを見つけやってみてもだめで、他のサイトも同じような事が書いてあったので、ここで質問させてもらいました。
退会済みユーザー

退会済みユーザー

2017/07/16 05:12

そうでしたか。失礼しました。改めて確認しましたが、確かにサーバーURL変更の情報が多いようですね。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問