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

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

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

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

Q&A

解決済

2回答

22559閲覧

CentOS7でyum updateが出来ない

tokm

総合スコア7

CentOS

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

0グッド

0クリップ

投稿2016/03/06 12:45

編集2016/03/06 12:47

つい先日CentOS 7を使い始めた初心者です.
yum updateを行った場合,以下のようなError 404がでてきます.
yum clean allを行っても変化しませんでした.
/etc/yum.repos.d/CentOS-Base.repo内のbaseurlのコメントアウトを有効にした場合でも変化がありませんでした.どうすれば正常にyumが使えるようになるでしょうか?
よろしくお願いいたします.

読み込んだプラグイン:fastestmirror, langpacks
base | 3.6 kB 00:00:00
epel/x86_64/metalink | 4.8 kB 00:00:00
epel | 4.3 kB 00:00:00
extras | 3.4 kB 00:00:00
http://people.centos.org/tru/devtools-2/7/x86_64/RPMS/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
他のミラーを試します。
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/

One of the configured repositories failed (testing 2 devtools for CentOS 7),
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. Disable the repository, 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 testing-devtools-2-centos-7 4. 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=testing-devtools-2-centos-7.skip_if_unavailable=true

failure: repodata/repomd.xml from testing-devtools-2-centos-7: [Errno 256] No more mirrors to try.
http://people.centos.org/tru/devtools-2/7/x86_64/RPMS/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

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

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

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

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

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

guest

回答2

0

もし /etc/yum.repos.d/devtools-2.repo というファイルがあるなら削除してみてください。

もしくは /etc/yum.repos.d/ の中に下記 URL の内容と同じようなファイルがあれば、削除してみてください。

http://people.centos.org/tru/devtools-2/devtools-2.repo

投稿2016/03/07 00:04

ngyuki

総合スコア4514

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

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

tokm

2016/03/07 00:21

回答ありがとうございます. とりあえず,OSを再インストールすることで,解決しました.
n_takapyon

2018/10/01 06:40

devtools-2を入れるとc++11のコンパイルができるようになると書いているサイトを参考にインストールした所、質問されているエラーと同様のエラーに遭遇しました。 devtools-2.repo を削除した所、解決することができました
guest

0

ベストアンサー

まず聞きたいのですが、どのようにインストールしたのですか?
no osのパソコンにインストールしたのですか?
それとも仮想マシン?
あと、そのcent os7のパソコンはインターネットつながっていますか?
rootになっていますか?

投稿2016/03/06 13:07

編集2016/03/06 13:10
gik

総合スコア152

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

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

tokm

2016/03/06 13:13 編集

回答ありがとうございます.USBにディスクイメージを入れて,前まではUbuntuが入っていたパソコンにインストールしました.CentOSのパソコンはネットに繋がっていて,現在はsshでログインしています.必要ならば,直接操作することもできます.rootでログインが出来ないのですが,sudoで操作を行っています.
gik

2016/03/06 13:24 編集

パソコン何ビット? 64bit? http://www.unix-power.net/centos7/yum.html 私のパソコンcent os7で64bitでyum updateできたんで yum groupinstall Base yum install system-config- baseのものはインストールされていますか? yumを使うためのbaseになるものがはいっていますか?
tokm

2016/03/06 13:25

64bitです.添付していただいたURLにある ※RPMFORGEを追加 # rpm -ivh http://apt.sw.be/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm ※EPELを追加 # rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm ※REMIを追加 # rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm を行ったあと,yum check-updateを行ってみたのですが, http://people.centos.org/tru/devtools-2/7/x86_64/RPMS/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found がでてきます.
gik

2016/03/06 13:28

yum groupinstall Base yum install system-config- はしました?
tokm

2016/03/06 13:35

yum groupinstall Baseは以下のような同様のエラーが出ました. yum install system-config-*は成功しました! 読み込んだプラグイン:fastestmirror, langpacks http://people.centos.org/tru/devtools-2/7/x86_64/RPMS/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。 To address this issue please refer to the below knowledge base article https://access.redhat.com/articles/1320623 If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/ Loading mirror speeds from cached hostfile * base: www.ftp.ne.jp * epel: ftp.kddilabs.jp * extras: www.ftp.ne.jp * remi-safe: remi.kazukioishi.net * rpmforge: ftp.kddilabs.jp * updates: www.ftp.ne.jp パッケージ Base は利用できません。 エラー: 何もしません
gik

2016/03/06 13:52 編集

yum -y groupinstall base "Development tools"入れてみて yum check-updateの結果もぜひ
tokm

2016/03/07 00:21 編集

提案していただいたコマンドを実行してみたのですが,同じエラーが出たままでした. とりあえず,OSの再インストールで解決しました. ありがとうございます.
gik

2016/03/07 01:53

osの再インストールご苦労様です。 お役にたてず申し訳ない。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問