0

我有 RaspberryPI 模型 B 和 Fedora Raspberry Remix 17 RC2(安装于 2012 年 9 月)。昨天,我确实尝试了 yum update。但我做不到。为什么?

[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

对不起,我的英语不好 ))

4

2 回答 2

0

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

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

rpm -qa raspberry-kernel\*

如果除了3.1.9-11导致问题的内核之外还有另一个内核,请启动它,删除有问题的内核,然后安装新的内核更新。

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

yum update --exclude=raspberry-kernel\*
于 2012-10-24T09:12:02.103 回答
0

你有没有尝试过

百胜清洁所有

其次是

百胜更新

我遇到了同样的问题,并在一分钟内解决了它。希望它仍然可以提供帮助。

于 2019-03-06T14:59:14.343 回答