• 締切済み

CentOSでyumアップデートできなくなりました。

こんにちは、CentOS 4.5を使っております。 ・ネットワーク環境上、Proxy不要 ・yum-plugin-fastestmirrorをインストール ・/etc/yum.repos.d/CentOS-Base.repo↓ [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&cc=JP #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 priority=1 protect=1 #released updates [update] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&cc=JP #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 priority=1 protect=1 #packages used/produced in the build but not released [addons] name=CentOS-$releasever - Addons mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons&cc=JP #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 priority=1 protect=1 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&cc=JP #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 priority=1 protect=1 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&cc=JP #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 ・/etc/yum.conf↓ [main] cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest installonlypkgs=kernel kernel-smp kernel-devel kernel-smp-devel kernel-largesmp kernel-largesmp-devel kernel-hugemem kernel-hugemem-devel distroverpkg=centos-release tolerant=1 exactarch=1 retries=20 obsoletes=1 gpgcheck=1 plugins=1 5007/08/28からすべてのレポジトリに接続できなくなっています。 baseurlをftp.riken.jpにしても接続できませんでした。 どなたか解決策をご教授ください、お願いいたします。

みんなの回答

回答No.2

ネームサーバは引けていますか? dig mirror.centos.org

biginer6419
質問者

補足

はい、引けているようです。 ; <<>> DiG 9.2.4 <<>> mirror.centos.org ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30582 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;mirror.centos.org. IN A ;; ANSWER SECTION: mirror.centos.org. 120 IN A 216.7.183.116 ;; Query time: 160 msec ;; SERVER: 192.168.100.1#53(192.168.100.1) ;; WHEN: Tue Sep 4 16:27:53 2007 ;; MSG SIZE rcvd: 51

回答No.1

ログには何かエラーが出ていませんか?

biginer6419
質問者

補足

yum updateとした際、 Loading "fastestmirror" plugin Setting up Update Process Setting up repositories Cannot find a valid baseurl for repo: update Error: Cannot find a valid baseurl for repo: update 各レポジトリをexcludeしていって様子をみても、すべてのレポジトリで同様のエラーがでます

関連するQ&A

  • yumが使えなくなってしまいました。

    CentOSを使っています。 特に設定ファイルを編集した覚えはなく、 調べてはみたのですが分からなくて困っています。 できれば教えていただけないでしょうか? [root@localhost yum.repos.d]# yum install yum Setting up Install Process Setting up repositories Cannot find a valid baseurl for repo: update Error: Cannot find a valid baseurl for repo: update [root@localhost yum.repos.d]# less CentOS-Base.repo #released updates [update] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

  • yumが使えなくなった

    Fedora 7をLive CDからインストールした後、/etc/yum.repos.d/fedora.repoを以下のように変更してyumを使うと、エラーが出てパッケージのインストール等ができない状況になりました。 同じエラーメッセージでいろいろ調べてみたのですが、リポジトリへのアクセスが集中しているのが原因というのが多いようでした。 しかし、時間を置いて、朝、昼、夜とyumを実行してみても同じエラーが出ますし、他のfedora 7のマシンでは正しくyumでパッケージの管理ができました。 おそらく設定等が原因かと思いますが、原因と対処について教えていただけないでしょうか。よろしくお願いします。 エラー内容:------------------------------------------------------- Loading "installonlyn" plugin Setting up Install Process Parsing package install arguments http://ftp.iij.ad.jp/pub/linux/fedora/releases/7/Everything/i386/os/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-2, '\xe5\x90\x8d\xe5\x89\x8d\xe3\x81\xbe\xe3\x81\x9f\xe3\x81\xaf\xe3\x82\xb5\xe3\x83\xbc\xe3\x83\x93\xe3\x82\xb9\xe3\x81\x8c\xe4\xb8\x8d\xe6\x98\x8e\xe3\x81\xa7\xe3\x81\x99')> Trying other mirror. http://ftp.riken.jp/Linux/fedora/releases/7/Everything/i386/os/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-2, '\xe5\x90\x8d\xe5\x89\x8d\xe3\x81\xbe\xe3\x81\x9f\xe3\x81\xaf\xe3\x82\xb5\xe3\x83\xbc\xe3\x83\x93\xe3\x82\xb9\xe3\x81\x8c\xe4\xb8\x8d\xe6\x98\x8e\xe3\x81\xa7\xe3\x81\x99')> Trying other mirror. http://ftp.jaist.ac.jp/pub/Linux/Fedora/releases/7/Everything/i386/os/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-2, '\xe5\x90\x8d\xe5\x89\x8d\xe3\x81\xbe\xe3\x81\x9f\xe3\x81\xaf\xe3\x82\xb5\xe3\x83\xbc\xe3\x83\x93\xe3\x82\xb9\xe3\x81\x8c\xe4\xb8\x8d\xe6\x98\x8e\xe3\x81\xa7\xe3\x81\x99')> Trying other mirror. Error: Cannot open/read repomd.xml file for repository: fedora fedora.repo ------------------------------------------------------ [fedora] name=Fedora $releasever - $basearch #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/ baseurl=http://ftp.jaist.ac.jp/pub/Linux/Fedora/releases/7/Everything/i386/os http://ftp.iij.ad.jp/pub/linux/fedora/releases/7/Everything/i386/os http://ftp.riken.jp/Linux/fedora/releases/7/Everything/i386/os #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY [fedora-debuginfo] name=Fedora $releasever - $basearch - Debug #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-debug-$releasever&arch=$basearch enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY [fedora-source] name=Fedora $releasever - Source #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-source-$releasever&arch=$basearch enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

  • 認証が必要なプロキシー経由でyum

    お世話になります。 認証が必要なプロキシー経由でyumを行いたいのですが認証が通らず困っています。 OS: CentOS release 5.5 (Final) /etc/yum.confを編集 proxy=http://プロキシーサーバー名:8080 proxy_username=ユーザID proxy_password=パスワード(平文で設定) 上記設定を外すとタイムアウトが発生するので、確実に使っているようですがユーザID・パスワードの設定値がおかしいようです。 Firefoxでブラウジングはできるので上記の値は間違っていないと思いますが認証が通らない原因として考えられることはありますでしょうか? 【実行例】 root@localhost etc]# yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=addons error was [Errno 14] HTTP Error 407: Proxy authentication required Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os error was [Errno 14] HTTP Error 407: Proxy authentication required 以下省略

  • LinuxのCentOS6.4についての質問

    CentOS6.4を新しいPCでインストールして、サーバー構築の勉強をしようとしているものです。manコマンド(オンラインマニュアルのコマンド)をyumコマンドでインストールしようとするとエラーが出て困っています。 ちなみに会社のPCで同じバージョンでmanをインストールしてみたんですが、エラーなくインストールできました(ネットにはつながっていません) ハードディスクを初期化して最初からやり直そうと思ったんですが、もともとOSはLinuxなので操作にはあまり慣れておらずちょっと怖いです。 次の行からコンソール上の画面を表示します。一応自分なりに調べてみたんですが、さっぱりわかりません。 yum install man Loaded plugins : fastestmirror Loading mirror sppeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo-os error was 14:PYCURL ERROR 6- "Couldn't resolve host 'mirrorlist.centos.org'" Error : Cannot find a valid baseurl for repo : base

  • CentOS5,2 / yum-cron を入れられない

    http://centossrv.com/ を参考にしつつ、 CentOS5.2を使って、yum-cron を入れようとしたのですが、以下のように入れられません、 どうすればいいのでしょうか? (別のレポジトリを追加する必要があるのでしょうか?・・・ただその方法は分かりません) なお、CentOS5.3からは、yum-cronが削除されたと、たまたま見かけたのですが、 特に問題ないのでしょうか?あるいは今後どのように対応すべきでしょうか? よろしくお願いします。 [root@centos52 var]# yum install yum-cron Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: www.ftp.ne.jp * updates: www.ftp.ne.jp * addons: www.ftp.ne.jp * extras: www.ftp.ne.jp Setting up Install Process Parsing package install arguments No package yum-cron available. Nothing to do [root@centos52 var]#

  • CentOS7 # yum update.

    Downloading packages: Finishing delta rebuilds of 1 package(s) (168 k) Some delta RPMs failed to download or rebuild. Retrying.. polkit-0.112-18.el7_6.1.x86_64 FAILED http://ftp-srv2.kddilabs.jp/Linux/packages/CentOS/7.6.1810/updates/x86_64/Packages/polkit-0.112-18.el7_6.1.x86_64.rpm: [Errno 14] HTTP Error 416 - Requested Range Not Satisfiable 他のミラーを試します。 CentOS7でyum updateが出来ません。 どう対処すべきでしょうか? 御多忙中、すみません。 ご回答のほど、宜しくお願い申し上げます。

  • CentOS yumについて

    http://ftp.riken.jp/Linux/centos/5/isos/i386/ で"CentOS-5.3-i386-bin-DVD.iso"をインストールし http://centossrv.com/centos5-init.shtml を参照しながらOSをインストールしていますが yum -y install yum-fastestmirror ↑を実行したところ [root@host203 ~]# yum -y install yum-fastestmirror Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.nara.wide.ad.jp * updates: ftp.nara.wide.ad.jp * addons: ftp.nara.wide.ad.jp * extras: ftp.nara.wide.ad.jp Setting up Install Process Parsing package install arguments Package yum-fastestmirror-1.1.16-13.el5.centos.noarch already installed and latest version Nothing to do [root@host203 ~]# と表示されインストールが出来ません。 別の方法などがございましたら教えていただけないでしょうか? よろしくお願いいたします。

  • yumでvsftpd をインストールできない

    こんにちは。 【環境] Windows XP Pro SP3 VMWare 1.0.5 ゲストOSにCentOS 5.1をインストール後、vsftpdをインストールしようとしましたが、エラーになりインストールできません。Linux上では、インターネットには接続できない状態です。(光回線)どのように対応したらよいのでしょうか? [コンソール] [root@localhost /]# yum -y install vsftpd Loading "installonlyn" plugin Setting up Install Process Setting up repositories Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=extras error was [Errno 4]IOError: <urlopen error (-3. 'xe5ヽx90ヽxe5ヽx89ヽx8dヽxe8ヽxa7ヽxa3ヽxe6ヽxb1ヽxbaヽxe6ヽx99ヽx82ヽxe3ヽx81ヽxaeヽxe4ヽxb8ヽx80ヽxe6ヽx99ヽx82ヽxe7ヽx9aヽx84ヽxe3ヽx81ヽxaaヽxe5ヽxa4ヽxb1ヽxe6ヽx95ヽx97')> Error:Cannot find a valid baseurl for repo: extras

  • CentOS5.5でUpdate.Upgrade.

    いつも教えてくださりありがとうございます。 標記の件。 Ubuntuだとapt-get update apt-get upgradeで できていました。 CentOS5.5でUpdateを試みました。 http://mizushima.ne.jp/Linux/yum/CentOS-update.php のURLを参照に致しました。 結果は以下の通りです。 [root@localhost kouzou]# yum -y update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: ftp.tsukuba.wide.ad.jp * base: ftp.tsukuba.wide.ad.jp * extras: ftp.tsukuba.wide.ad.jp * updates: ftp.tsukuba.wide.ad.jp Setting up Update Process No Packages marked for Update [root@localhost kouzou]# additional pacckages that extend functionality of existing packages bash: additional: command not found [root@localhost kouzou]# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt エラー: http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt: インポート読み込みに失敗しました(-1)。 警告: u 0xd1e5e60 ctrl 0xd1e7160 nrefs != 0 (dag.wieers.com http) 何か重要かことを知らないようです。 どなたかアドバイスを頂きたく 宜しくお願い申し上げます。

  • CentOS,yumでのgccインストール

    CentOSで、ccのコンパイルができなかったので、インストールしようと思い # yum install gcc と入力すると、 Cannot find a valid baseurl for repo: base/7/x86_64 のエラーが出てしまいました。 どうすれば良いのでしょうか。