yumがインストールできない

このQ&Aのポイント
  • yumがインストールできないと悩んでいる人への解決方法
  • yumのインストール方法が見つからないという問題について
  • yumのインストールに関するエラーメッセージとその対処法
回答を見る
  • ベストアンサー

yumがインストールできない

はじめまして宜しくお願いします。 OSはCENTOS6.1です。 yum自体が入っておらずgoogleで色々検索したのですが、インストールの方法が見つかりません。 ためしにやってみたことは rpm -q yum とすると当然 package yum is not installed となってしまいます。 wget http://ftp.iij.ad.jp/pub/linux/centos/6/os/i386/Packages/yum-3.2.27-14.el6.centos.noarch.rpm とすると --2012-09-15 20:01:48-- http://ftp.iij.ad.jp/pub/linux/centos/6/os/i386/Packages/yum-3.2.27-14.el6.centos.noarch.rpm Resolving ftp.iij.ad.jp... 202.232.140.143, 202.232.140.144, 2001:240:bb8f::f:301, ... Connecting to ftp.iij.ad.jp|202.232.140.143|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2012-09-15 20:01:49 ERROR 404: Not Found. となってしまい先に進めません どうぞ宜しくお願い致します。

質問者が選んだベストアンサー

  • ベストアンサー
  • 8ive22ty
  • ベストアンサー率52% (770/1479)
回答No.1

指定しているURLには該当パッケージが存在していません。 下記URLから wget してみてはどうですか。 http://ftp.riken.jp/Linux/centos/6.1/os/i386/Packages/yum-3.2.29-17.el6.centos.noarch.rpm

taabooo
質問者

補足

ご回答ありがとうございます。 http://ftp.riken.jp/Linux/centos/6/os/x86_64/Packages/ で最新パッケージを確認することができました。 そしてrpm -ivh yum-3.2.29-30.el6.centos.noarch.rpm とやると下記のように無いものだらけでした。 warning: yum-3.2.29-30.el6.centos.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY error: Failed dependencies: pygpgme is needed by yum-3.2.29-30.el6.centos.noarch python-urlgrabber >= 3.9.0-8 is needed by yum-3.2.29-30.el6.centos.noarch rpm-python is needed by yum-3.2.29-30.el6.centos.noarch yum-metadata-parser >= 1.1.0 is needed by yum-3.2.29-30.el6.centos.noarch yum-plugin-fastestmirror is needed by yum-3.2.29-30.el6.centos.noarch 上記を必要かと最新版をダウンロードしてはインストールしたりしているのですが、次から次にファイルが必要とキリがない感じになってしまいます。 全て必要なファイルなのでしょうか? それとも必要なrpmはいくつか決まっているのでしょうか? 申し訳ございませんが宜しくお願いいたします。

その他の回答 (1)

  • yakan9
  • ベストアンサー率54% (2204/4055)
回答No.2

どんなパソコンに、どのようなインストールをしたのか、内蔵HDDのパーティションのサイズ等の環境の記載がないため、単に、CD-ROMから起動できるかどうか試しただけとも思えます。 isoは、何を使用したか、起動はどんな状態なのか、システム→管理→ソフトウェアの追加/削除はあるか、そこから最悪、yumをインストールしてみる手はないのか。

taabooo
質問者

補足

ご返答ありがとうございます。 サーバーはレンタルサーバーで、VPSを借りました。 いつもはサクラのVPSを借りているのでyumがはいっており簡単に初期設定をすることができます。 今回は違うところにしたためこのようなことになってしましました。 なのでインストールしなおしができません。

関連するQ&A

  • 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を使いたいのですが...

    現在、coreserverを使用しています。http://www.coreserver.jp/ やりたいことは、rubyのrmagickを使うことです。 これを実現する方法、またはそれに関して何かアドバイスがありましたら どんなことでも結構ですのでお聞きしたく、質問しました。 以下、やったことを述べます。 検索 http://www.google.com/search?hl=ja&q=rmagick+%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB しましたところ、 yum install ImageMagick-devel gem install rmagick を使ってインストールする方法が紹介されているものがほとんどなようです。 最初に、rubygemsを使用可能にするところまでは完了しました。 (※http://note.openvista.jp/2007/intall-ruby-on-rails-to-core-server/を参考に、自分のホームディレクトリ(/virtual/xxx/packages)に設置しました。) その上で gem install rmagick を実行すると ------------------------------------------------- (省略) Warning: Found more than one ImageMagick installation. This could cause problems at runtime. /usr/local/bin/Magick-config reports version 6.2.9 is installed in /usr/local /usr/bin/Magick-config reports version 6.2.9 is installed in /usr/local Using 6.2.9 from /usr/local. checking for ImageMagick version >= 6.3.0... no Can't install RMagick 2.8.0. You must have ImageMagick 6.3.0 or later. (以下省略) ------------------------------------------------- とのエラーがでます。 したがってImageMagickのversion6.3.0以上を導入しなければ ならないと思うのですが、 yum install ImageMagick-devel をした結果は -bash: yum: command not found となり、 rpm -qa | grep yumとしても検索されないので yumはインストールされていないと思われます。 そこで、 http://wiki.minaco.net/index.php?Linux%2FYum などを参考にさせていただき、yumをインストールしようと試みました。 ( ※ただし、上記ページ wget http://mirror.centos.org/centos/4.4/os/i386/CentOS/RPMS/yum-2.4.3-1.c4.noarch.rpm ではファイルが消えていてダウンロードできなかったので、 http://ftp.riken.jp/Linux/centos/ より、 http://ftp.riken.jp/Linux/centos/4.7/os/x86_64/CentOS/RPMS/ から、 yum-2.4.3-4.el4.centos.noarch.rpm をダウンロードして、 rpm -ivh yum-2.4.3-4.el4.centos.noarch.rpm としてインストールを試みました。 ) すると、やはり(上記参考サイトなどにも書いてあるとおり)dependenciesエラーがでて、ほかのものもインストールしなければならないようなのですが、 たとえばpython-elementtreeをインストールしようとすると そこでさらにdependenciesエラーが出てしまい、果てが無さそうで、 途方にくれているところです。 質問を再度書くと、 1)coreserverではyumは(そう簡単には)使えないのであきらめろ、ということでしょうか。 2)yumの代替となるような依存関係を解消しながらインストールを可能にするような方法があるでしょうか。(app-getというものがあるようですが、これもcommand not foundになりました。) 3)または、それ以外のなんらかの方法でrmagickを使う方法方法があるでしょうか。(できれば今後のためにyumを使いたいのですが...) どのようなことでもかまいませんので、よろしくお願い致します。

  • 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が出来ません。 どう対処すべきでしょうか? 御多忙中、すみません。 ご回答のほど、宜しくお願い申し上げます。

  • yumで見つかったパッケージについて

    ≪環境≫ 追加として、CentOS6.3でepelリポジトリを追加しております。 /etc/yum.repos.d/epel.repoにて [epel] name=Extra Packages for Enterprise Linux 6 - $basearch (省略) enabled=1 としております。 ≪手順≫ 「yum search squid」を実行しました。 以下結果が帰ってきました。 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * epel: ftp.kddilabs.jp * extras: ftp.iij.ad.jp * updates: ftp.iij.ad.jp ============================== N/S Matched: squid ============================== lightsquid.noarch : Light, small, and fast log analyzer for squid proxy lightsquid-apache.noarch : Web Controls for lightsquid squid.x86_64 : The Squid proxy caching server squidGuard.x86_64 : Filter, redirector and access controller plugin for squid calamaris.noarch : Squid native log format (NLF) analyzer and report generator Name and summary matches only, use "search all" for everything. ≪質問1≫ この結果は、 アスタリスクがついている「* base、* epel、* extras、 * updates」リポジトリで squidパッケージが見つかったということで認識していいのでしょうか? もし、epelでしか見つからなかった場合、*epel のみになるのでしょうか? ≪質問2≫ 「* base、* epel、* extras、 * updates」のように複数のパッケージで見つかった場合、 「yum install squid –enablerepo=epel 」とすればepelからインストールできると思うのですが、 「baseで入れた場合のsquidのバージョンは何?」 「epelで入れた場合のsquidのバージョンは何?」 をインストール前に調べることは可能でしょうか? ご教授お願いします。

  • CentOSのFD版

    ノートPCを友人からもらったのですが、 CDドライブがなくFDだけの古いPCなのです。 Vine Linuxなどは、FDからブートできて インターネットからダウンロードすることでできたのですが CentOSはあるのでしょうか? ftp://ftp.iij.ad.jp/pub/linux/centos/4.1/os/i386/isolinux/ ここでvmlinuzなどを見つけたのですが関係あるのでしょうか? よろしくお願いします。

  • Linux CentOS6.3 aptインストール

    先日CentOS 6.3 Final (kernel-2.6.32-279.11.1.el6.i686)を ノートPCにインストールしました yum仕様だったのでUbuntu等で使っていたapt-getコマンドをインストールしようとしたら (管理権限) # yum install apt Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * extras: ftp.iij.ad.jp * updates: ftp.iij.ad.jp Setting up Install Process No package apt available. Error: Nothing to do と出ました。どうすればaptをインストールできるでしょうか? 追加するリポジトリなど必要なことがあれば教えていただきたいです

  • 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) 何か重要かことを知らないようです。 どなたかアドバイスを頂きたく 宜しくお願い申し上げます。

  • FC4のyum.conf

    FC4をインストールしたのですが、いろいろいじっていたら yumがうまく動作しなくなってしまいました。 具体的には http://ftp.sfc.wide.ad.jp/pub/Linux/Fedora/4/i386/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Date: Thu, 16 Jun 2005 12:22:49 GMT というエラーがでてきます。yum.confをいじったことと yum.repos.d内のファイルをいじったためとおもいます。 初心者ながらですぎたまねをした報いと思いますが、対応策 または みなさんがつかっているyum.confをいただけないでしょうか。よろしくおねがいします。

  • 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

  • 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にしても接続できませんでした。 どなたか解決策をご教授ください、お願いいたします。