yum更新内核冲突

时间:2012-10-21 05:50:45

标签: linux-kernel kernel fedora yum raspberry-pi

我使用Fedora Raspberry Remix 17 RC2(2012年9月安装)使用RaspberryPI模型B. 昨天,我确实尝试了yum更新。但我不能这样做。为什么呢?

[root@rberry ~]# yum update raspberrypi-kernel
Loaded plugins: langpacks, presto, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package raspberrypi-kernel.armv5tel 0:3.2.27-1.20120926git9245b4c.rpfr17 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================
Package Arch Version Repository Size
============================================================================
Installing:
raspberrypi-kernel armv5tel 3.2.27-1.20120926git9245b4c.rpfr17 rasp-pi 12 M

Transaction Summary
============================================================================
Install 1 Package

Total size: 12 M
Installed size: 37 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
Running Transaction Test


Transaction Check Error:
file /boot/kernel.img from install of raspberrypi-kernel-3.2.27-1.20120926git9245b4c.rpfr17.armv5tel conflicts with file from package raspberrypi-kernel-3.1.9-11.20120727gitf958199.rpfr17.armv5tel

Error Summary
-------------

更新

[root@rberry opt]# rpm -qa raspberrypi-kernel\*
raspberrypi-kernel-3.1.9-11.20120727gitf958199.rpfr17.armv5tel

[root@rberry opt]# uname -a
Linux rberry 3.1.9 #1 PREEMPT Mon Jul 30 14:50:41 EDT 2012 armv6l armv6l armv6l GNU/Linux

[root@rberry opt]# yum install raspberrypi-kernel-3.2.27-1.20120926git9245b4c.rpfr17.armv5tel
.....
Transaction Check Error:
  file /boot/kernel.img from install of raspberrypi-kernel-3.2.27-1.20120926git9245b4c.rpfr17.armv5tel conflicts with file from package raspberrypi-kernel-3.1.9-11.20120727gitf958199.rpfr17.armv5tel

[root@rberry opt]# rpm -qf /boot/kernel.img
raspberrypi-kernel-3.1.9-11.20120727gitf958199.rpfr17.armv5tel

抱歉我的英语不好))

2 个答案:

答案 0 :(得分:0)

可能存在一个打包问题,其中两个内核包“拥有”一组公共文件(在这种情况下,/boot/kernel.img由两个包声明,因此它们不能同时安装)< / p>

您目前安装了哪些内核?尝试

rpm -qa raspberry-kernel\*

如果你导致问题的3.1.9-11旁边有另一个内核,请启动它,删除麻烦的内核,然后安装新的内核更新。

如果不这样做,只需更新除内核之外的所有内容:

yum update --exclude=raspberry-kernel\*

答案 1 :(得分:0)

您尝试过

  

yum clean all

跟着

  

yum更新

我遇到了同样的问题,很快就解决了。希望它仍然会有所帮助。