ちなのひとりごと

あぁ勘違い

カテゴリー linux :(2004/11/01 2:58 am)

大変なことが判明した.どうやらRedHatのバージョンが7.3ではないようだ.先ほどから挙動がどうもおかしいので,ちゃんと調べてみることにした.

# cat /proc/version
Linux version 2.4.7-10 (bhcompile@stripples.devel.redhat.com) (gcc version 2.96
20000731 (Red Hat Linux 7.1 2.96-98)) #1 Thu Sep 6 17:27:27 EDT 2001

あれ?7.1?

# cat /etc/redhat-release
Red Hat Linux release 7.2 (Enigma)
#

ということ.つまり,このサーバ上のRedHatは,7.2だったというのだ.どうりでなんか表示がおかしかったわけだ・・・
さて,気を取り直して,なぜ先ほどアップデートができなかったのかを検証してみた.これは LinuxQuestions.org似たような問題を抱えた投稿が載っていた.

質問者
.package iptables needs kernel that has been excluded
package iptables needs kernel that has been excluded
I don’t know what this means.
回答者
Look in /etc/yum.conf. You exclude the kernel package, but iptables depends on it.
質問者
Thanks very much for your tips! You were right, I had a line ‘exclude=kernel*’ in my yum.conf. I have now commented this out.

まあ簡単に言えば,/etc/yum.conf内のexclude=kernel*の行をコメントアウトすればよい.つまり,yumはkernelをアップデートの対象から外していたので,正常にアップデートできなかった,ということになる.さっそくちなもやってみた.そして,いよいよ再びアップデートのコマンドを入力だ.

# yum update
Gathering package information from servers
Getting headers from: Red Hat Linux 7.2 base
Getting headers from: Fedora Legacy utilities for Red Hat Linux 7.2
Getting headers from: Red Hat Linux 7.2 updates
Finding updated packages
Downloading needed headers
getting /var/cache/yum/updates/headers/kernel-headers-0-2.4.9-34.i386.hdr
getting /var/cache/yum/updates/headers/kernel-0-2.4.20-30.7.legacy.i686.hdr
getting /var/cache/yum/updates/headers/kernel-bigmem-0-2.4.20-30.7.legacy.i686.hdr
getting /var/cache/yum/updates/headers/kernel-doc-0-2.4.20-30.7.legacy.i386.hdr
getting /var/cache/yum/updates/headers/kernel-enterprise-0-2.4.9-34.i686.hdr
getting /var/cache/yum/updates/headers/kernel-source-0-2.4.20-30.7.legacy.i386.hdr
(中略)
[update: binutils.i386]
[update: util-linux.i386]
[update: python-xmlrpc.i386]
[update: kon2.i386]
I will install/upgrade these to satisfy the dependencies:
[deps: Omni.i386]
[deps: perl-suidperl.i386]
[deps: python-popt.i386]
[deps: perl-NDBM_File.i386]
[deps: perl-CGI.i386]
[deps: Omni-foomatic.i386]
[deps: perl-DB_File.i386]
[deps: perl-CPAN.i386]
Is this ok [y/N]:

ついにyumが動き出したようだ!ここでyと入力し,先に進めよう.

Is this ok [y/N]: y
Getting man-1.5j-7.7x.0.i386.rpm
Getting openssl-0.9.6b-36.7.legacy.i386.rpm
Getting sendmail-cf-8.11.6-27.72.i386.rpm
Getting pam-0.75-46.7.2.i386.rpm
Getting groff-1.17.2-7.0.2.i386.rpm
Getting python-devel-1.5.2-43.72.i386.rpm
Getting stunnel-3.26-1.7.3.i386.rpm
(中略)
Getting kon2-0.3.9b-14.7.2.1.i386.rpm
Calculating available disk space – this could take a bit
sendmail-cf 100 % done
sendmail-devel 100 % done
(中略)
Omni-foomatic 100 % done
printconf 100 % done
up2date 100 % done
Kernel Updated/Installed, checking for bootloader
Grub found – making this kernel the default
Installed: kernel.i686
Updated: man.i386 openssl.i386 sendmail-cf.i386 pam.i386 groff.i386 python-deve
l.i386 stunnel.i386 mm-devel.i386 shadow-utils.i386 libpng.i386 krb5-libs.i386 w
get.i386 libxslt.i386 docbook-utils.noarch tmpwatch.i386 gcc-c++.i386 sendmail.i
386 openssh.i386 XFree86-libs.i386 sendmail-devel.i386 ttfonts-ja.noarch e2fspro
gs-devel.i386 foomatic.i386 gcc.i386 xinetd.i386 MAKEDEV.i386 kernel-headers.i38
6 Canna-libs.i386 libpng-devel.i386 micq.i386 cyrus-sasl-plain.i386 cpp.i386 sen
dmail-doc.i386 wu-ftpd.i386 printconf.i386 nss_ldap.i386 libtool.i386 glibc-comm
on.i386 openldap-clients.i386 zlib-devel.i386 openldap-devel.i386 utempter.i386
glibc-devel.i386 slocate.i386 at.i386 nscd.i386 cyrus-sasl-md5.i386 modutils.i38
6 cyrus-sasl.i386 krb5-devel.i386 rhn_register.i386 nfs-utils.i386 gnupg.i386 gc
c-g77.i386 groff-perl.i386 bind-utils.i386 libstdc++.i386 python.i386 iptables.i
386 rmt.i386 libtool-libs.i386 vim-common.i386 authconfig.i386 dev.i386 kon2-fon
ts.i386 e2fsprogs.i386 apache.i386 gdb.i386 libxml2.i386 kudzu.i386 iproute.i386
kudzu-devel.i386 perl.i386 cvs.i386 file.i386 Canna.i386 fileutils.i386 mm.i386
ghostscript.i386 pam-devel.i386 imap.i386 XFree86-xfs.i386 LPRng.i386 cyrus-sas
l-devel.i386 glibc.i686 quota.i386 raidtools.i386 vim-minimal.i386 openldap.i386
zlib.i386 openssl-devel.i386 libstdc++-devel.i386 up2date.i386 initscripts.i386
openssh-server.i386 tar.i386 binutils.i386 util-linux.i386 python-xmlrpc.i386 k
on2.i386 Omni.i386 perl-suidperl.i386 python-popt.i386 perl-NDBM_File.i386 perl-
CGI.i386 Omni-foomatic.i386 perl-DB_File.i386 perl-CPAN.i386
Transaction(s) Complete
#

結構な時間はかかったが,今度こそ無事にアップデートが終わったようだ.よかったよかった・・・
しかし問題は,FedoraLegacyはすでに7.2のサポートを打ち切っているという点である.結局はディストリビューションを別のモノに変更せざるを得ない,ということか.サーバ管理の道は険しい・・・
しかも,なぜかftpが通らなくなってしまった・・・httpdは再起動して直ったのだが,何かがやっぱりおかしいままだ・・・

コメント

コメントする