先日、Rescue CDで起動しなくなったFedoraのgrub.conf、fstabを修正する方法というエントリーを書きましたが、なにをやっていたかというと、LinuxのCoreのアップグレードです。今回は、Fedora Core 6 から Fedora 7 へのアップグレード。
今回は、というかいつもですが、yumを使ってアップグレードしてみました。
まず下記のようにコマンドラインからrpmファイルをダウンロードします。
wget http://ftp.iij.ad.jp/pub/linux/fedora/releases/7/Fedora/i386/os/Fedora/fedora-release-7-3.noarch.rpm wget http://ftp.iij.ad.jp/pub/linux/fedora/releases/7/Fedora/i386/os/Fedora/fedora-release-notes-7.0.0-1.noarch.rpm
次に上記ファイルをインストールします。
rpm -Uvh fedora-release-7-3.noarch.rpm fedora-release-notes-7.0.0-1.noarch.rpm
これでアップデートの準備が出来たので、とりあえずアップデートを試みる。
# yum clean all # yum upgrade -y
しかし、以下の依存関係の問題が出ていきなり終了してしまった。
Loading "installonlyn" plugin Loading "fastestmirror" plugin Setting up Upgrade Process Setting up repositories fedora 100% |=========================| 2.1 kB 00:00 Could not retrieve mirrorlist http://fedora.redhat.com/download/mirrors/updates-released-fc7 error was [Errno 14] HTTP Error 404: Date: Sun, 21 Oct 2007 11:15:43 GMT Server: Apache/2.2.3 (Red Hat) Content-Length: 324 Content-Type: text/html; charset=iso-8859-1 ftp://ftp.riken.go.jp/pub/Linux/fedora/core/updates/7/i386/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 7: No such file or directory
なぜ??と思い、yumのキャッシュファイルをすべて削除してみた。
# rm -rf /var/cache/yum/*
が、なおも同じエラーが出る。
しょうがないので、もう一度rpmを強制的に再インストールしてみた。
rpm -ivh --force fedora-release-7-3.noarch.rpm fedora-release-notes-7.0.0-1.noarch.rpm
が、ダメ。。。
なぜかわからないが、リポジトリファイルを一世代戻したら、直った。。(^^;)
mv /etc/yum.repos.d/fedora-updates.repo.rpmnew /etc/yum.repos.d/fedora-updates.repo
なぜ???
ということで、アップデートに再チャレンジ。
# yum update -y ・ ・ --> Running transaction check --> Processing Dependency: python(abi) = 2.4 for package: rhnlib --> Processing Dependency: python-optik for package: up2date --> Processing Dependency: python(abi) = 2.4 for package: up2date --> Processing Dependency: python(abi) = 2.4 for package: 4Suite --> Processing Dependency: python-abi = 2.4 for package: 4Suite --> Finished Dependency Resolution --> Populating transaction set with selected packages. Please wait. ---> Package kernel-devel.i686 0:2.6.20-1.2320.fc5 set to be erased ---> Package kernel.i686 0:2.6.20-1.2320.fc5 set to be erased --> Running transaction check --> Processing Dependency: python(abi) = 2.4 for package: rhnlib --> Processing Dependency: python-optik for package: up2date --> Processing Dependency: python(abi) = 2.4 for package: up2date --> Processing Dependency: python(abi) = 2.4 for package: 4Suite --> Processing Dependency: python-abi = 2.4 for package: 4Suite --> Finished Dependency Resolution Error: Missing Dependency: python(abi) = 2.4 is needed by package rhnlib Error: Missing Dependency: python-optik is needed by package up2date Error: Missing Dependency: python(abi) = 2.4 is needed by package up2date Error: Missing Dependency: python(abi) = 2.4 is needed by package 4Suite Error: Missing Dependency: python-abi = 2.4 is needed by package 4Suite
上記のような依存関係が出たので、up2date、4Suite、rhnlibを削除。
# yum remove up2date 4Suite rhnlib
そして再度アップデートをかけると、さらなる依存関係が・・・(^^;)
Transaction Check Error: file /usr/share/terminfo/k/kon from install of ncurses-5.6-6.20070303.fc7 conflicts with file from package kon2-0.3.9b-26.2 Error Summary -------------
ということで、kon2を削除。
# yum remove kon2
で、もう一度アップデート。
# yum update -y
ここで、/etc/fstabや/etc/grub.confの記述が変更になり、ハードディスクを認識しなくなるという問題があるらしいが、うちの環境ではそれが発生しなかった。
この問題にぶり当たった場合、以下のURLが参考になる思われる。
ちなみにうちの/etc/fstab
default=0 timeout=5 splashimage=(hd0,0)/boot/grub/splash.xpm.gz hiddenmenu title Fedora (2.6.22.9-91.fc7) root (hd0,0) kernel /boot/vmlinuz-2.6.22.9-91.fc7 ro root=LABEL=/ initrd /boot/initrd-2.6.22.9-91.fc7.img title Fedora Core (2.6.22.9-61.fc6) root (hd0,0) kernel /boot/vmlinuz-2.6.22.9-61.fc6 ro root=LABEL=/ initrd /boot/initrd-2.6.22.9-61.fc6.img
ちなみにまだ古いカーネルは削除していないので、2つ並んでいる。。。(^^;)
何とかアップデート終了。
(といっても、遅いマシンなので半日かかりましたが。。。(^^;))
関連記事
- Newer: XAMPPで「php_svn.dll」読み込みエラー
- Older: Can't connect to local MySQL server through socket '/tmp/mysql.sock'
Comments:0
Trackbacks:0
- Trackback URL for this entry
- http://www.multiburst.net/sometime-php/2007/10/yumfc6fc7/trackback/
- Listed below are links to weblogs that reference
- yumでFC6からFC7へアップグレード from Sometime PHP
Additional comments powered by BackType





