sudo dnf update
我正在尝试使用和升级新安装的 Fedora 30 sudo dnf upgrade
,但遇到了问题,以下是部分输出:
....
[MIRROR] util-linux-2.33.2-2.fc30.x86_64.rpm: Curl error (28): Timeout was reached for http://mirror.cse.iitk.ac.in/fedora/linux/updates/30/Everything/x86_64/Packages/u/util-linux-2.33.2-2.fc30.x86_64.rpm [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds]
(474/479): util-linux-2.33.2-2.fc30.x86_64.rpm 12 kB/s | 2.4 MB 03:15
(475/479): vid.stab-1.1.0-11.20190213gitaeabc8d.fc30.x86_64.rpm 22 kB/s | 45 kB 00:02
(476/479): vim-minimal-8.1.1713-1.fc30.x86_64.rpm 100 kB/s | 563 kB 00:05
(477/479): selinux-policy-targeted-3.14.3-42.fc30.noarch.rpm 17 kB/s | 14 MB 14:43
(478/479): virtualbox-guest-additions-6.0.10-1.fc30.x86_64.rpm 84 kB/s | 1.3 MB 00:15
(479/479): linux-firmware-20190717-99.fc30.noarch.rpm 24 kB/s | 61 MB 44:06
----------------------------------------------------------------------------------------------------
Total 54 kB/s | 209 MB 66:24
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
file /usr/share/man/man5/idmapd.conf.5.gz from install of nfs-utils-1:2.4.1-0.fc30.x86_64 conflicts with file from package libnfsidmap-1:2.3.3-7.rc2.fc30.x86_64
Error Summary
-------------
安装操作系统时没有任何问题。
这是我的系统信息:
/:-------------:\ joe@fedora
:-------------------:: ----------
:-----------/shhOHbmp---:\ OS: Fedora 30 (Workstation Edition) x86_64
/-----------omMMMNNNMMD ---: Host: Dell System XPS L502X
:-----------sMMMMNMNMP. ---: Kernel: 5.0.9-301.fc30.x86_64
:-----------:MMMdP------- ---\ Uptime: 3 mins
,------------:MMMd-------- ---: Packages: 1883 (rpm)
:------------:MMMd------- .---: Shell: bash 5.0.7
:---- oNMMMMMMMMMNho .----: Resolution: 1366x768
:-- .+shhhMMMmhhy++ .------/ DE: GNOME 3.32.1
:- -------:MMMd--------------: Theme: Adwaita [GTK2/3]
:- --------/MMMd-------------; Icons: Tela [GTK2/3]
:- ------/hMMMy------------: Terminal: gnome-terminal
:-- :dMNdhhdNMMNo------------; CPU: Intel i5-2410M (4) @ 2.900GHz
:---:sdNMMMMNds:------------: GPU: Intel 2nd Generation Core Processor Family
:------:://:-------------:: GPU: NVIDIA GeForce GT 525M
:---------------------:// Memory: 2183MiB / 11899MiB
感谢所有帮助。
答案1
我已经尝试过解决方法,但没有帮助 ( dnf update -y libnfsidmap nfs-utils
)
我做了另一个解决方法,让我升级除 之外的所有内容nfs-utils
,步骤如下:
- 编辑该文件
/etc/dnf/dnf.conf
并添加行:exclude=nfs-utils
。您的文件应该类似于:
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
exclude=nfs-utils
- 正常升级:
sudo dnf update -y
答案2
有时会发生存储库中存在冲突的情况。尝试例如dnf upgrade --exclude <offending-packages>
。检查 dnf 的联机帮助页,您可以要求尝试最佳选项、删除妨碍的软件包等等。大多数情况下,问题会在一天或几个小时内消失。升级后,当遗留旧包时,我遇到了这样的问题,这些包不再受支持,但会阻止其他包。只要摆脱污垢即可。如果数据库被扰乱,也可能会发生这种情况,例如 dnf 运行崩溃并且没有清除旧版本。运行dnf list installed
(从内存中,机器现在不在手边),对其进行排序并查找重复项。删除旧的重复项(需要完整的 rpm 名称),可能使用 rpm 命令。