步骤一: 卸载原来的util-linux
# rpm -e util-linux
error: Failed dependencies:
mount >= 2.11l is needed by (installed) initscripts-8.45.3-1.i386
mount is needed by (installed) mkinitrd-5.1.19-1.i386
util-linux >= 2.10s-11 is needed by (installed) initscripts-8.45.3-1.i386
util-linux >= 2.11b is needed by (installed) portmap-4.0-65.2.2.1.i386
util-linux is needed by (installed) usermode-1.87-3.i386
util-linux >= 2.12a-16 is needed by (installed) hal-0.5.8.1-4.fc6.i386
util-linux is needed by (installed) prelink-0.3.9-2.i386
/bin/dmesg is needed by (installed) redhat-lsb-3.1-11.i386
/bin/kill is needed by (installed) redhat-lsb-3.1-11.i386
/bin/more is needed by (installed) redhat-lsb-3.1-11.i386
/bin/mount is needed by (installed) policycoreutils-1.30.30-1.i386
/bin/mount is needed by (installed) redhat-lsb-3.1-11.i386
/bin/umount is needed by (installed) redhat-lsb-3.1-11.i386
/sbin/losetup is needed by (installed) mkinitrd-5.1.19-1.i386
/sbin/nologin is needed by (installed) openssh-4.3p2-10.i386
/sbin/nologin is needed by (installed) nfs-utils-1.0.9-8.fc6.i386
/sbin/nologin is needed by (installed) gdm-2.16.0-10.fc6.i386
/usr/bin/chfn is needed by (installed) redhat-lsb-3.1-11.i386
/usr/bin/chsh is needed by (installed) redhat-lsb-3.1-11.i386
/usr/bin/col is needed by (installed) redhat-lsb-3.1-11.i386
/usr/bin/ipcrm is needed by (installed) redhat-lsb-3.1-11.i386
/usr/bin/ipcs is needed by (installed) redhat-lsb-3.1-11.i386
/usr/bin/logger is needed by (installed) redhat-lsb-3.1-11.i386
/usr/bin/mcookie is needed by (installed) vnc-server-4.1.2-3.fc6.i386
/usr/bin/renice is needed by (installed) redhat-lsb-3.1-11.i386
不管这些, 强行卸载(新包安装好后, 会安装新的/bin/dmesg等工具, 所以这个依赖问题在新包安装完成后将不存在)
# rpm -e --nodeps util-linux
步骤二: 安装新包: util-linux-ng
util-linux-ng依赖于ConsoleKit-libs, 所以先安装ConsoleKit-libs:
# rpm -ivh ConsoleKit-libs-0.2.3-1.fc6.i386.rpm
Preparing... ########################################### [100%]
1:ConsoleKit-libs ########################################### [100%]
# rpm -ivh util-linux-ng-2.13.1-2.fc6.i386.rpm
Preparing... ########################################### [100%]
file /usr/bin/i386 from install of util-linux-ng-2.13.1-2.fc6 conflicts with file from package setarch-2.0-1.1
file /usr/bin/linux32 from install of util-linux-ng-2.13.1-2.fc6 conflicts with file from package setarch-2.0-1.1
file /usr/bin/linux64 from install of util-linux-ng-2.13.1-2.fc6 conflicts with file from package setarch-2.0-1.1
file /usr/bin/setarch from install of util-linux-ng-2.13.1-2.fc6 conflicts with file from package setarch-2.0-1.1
file /usr/share/man/man8/i386.8.gz from install of util-linux-ng-2.13.1-2.fc6 conflicts with file from package setarch-2.0-1.1
file /usr/share/man/man8/linux32.8.gz from install of util-linux-ng-2.13.1-2.fc6 conflicts with file from package setarch-2.0-1.1
file /usr/share/man/man8/linux64.8.gz from install of util-linux-ng-2.13.1-2.fc6 conflicts with file from package setarch-2.0-1.1
file /usr/share/man/man8/setarch.8.gz from install of util-linux-ng-2.13.1-2.fc6 conflicts with file from package setarch-2.0-1.1
出现这种错误是因为util-linux-ng包中已经包含了/usr/bin/setarch等命令, 所以安装前要把setarch-2.0-1.1这个包卸载, 不然会报包冲突这样的错误
# rpm -e setarch
# rpm -ivh util-linux-ng-2.13.1-2.fc6.i386.rpm
安装成功。
附: 从源码安装更新的util-linux-ng版本
下载页面:
tar xvf util-linux-ng-2.18.tar.bz2
cd util-linux-ng-2.18
sed -e -i $(grep -rl '/etc/adjtime' .)
mkdir -pv /var/lib/hwclock
./configure --enable-arch --enable-partx --enable-write
make
make install
cd ..
rm -rf util-linux-ng-2.18
阅读(2097) | 评论(0) | 转发(0) |