VPS 安装的 rockylinux 9.4 升级没问题,安装 virtualmin 也没问题,但是在安装了第三方源(想安装php多版本)后,系统升级:
dnf update 老是报错:
Error: Problem: problem with installed package awscli-1.23.10-3.el9.noarch - package awscli-1.23.10-3.el9.noarch from @System requires python3.9dist(botocore) = 1.25.10, but none of the providers can be installed - package awscli-1.23.10-3.el9.noarch from epel requires python3.9dist(botocore) = 1.25.10, but none of the providers can be installed - cannot install both python3-botocore-1.31.62-1.el9.noarch from appstream and python3-botocore-1.25.10-1.el9.noarch from @System - cannot install both python3-botocore-1.31.62-1.el9.noarch from appstream and python3-botocore-1.25.10-1.el9.noarch from epel - cannot install the best update candidate for package python3-botocore-1.25.10-1.el9.noarch
解决:update python3-botocore --allowerasing
ast metadata expiration check: 3:28:20 ago on Wed 10 Jul 2024 02:10:42 AM PDT.
Dependencies resolved.
=============================================================================================
Package Architecture Version Repository Size
=============================================================================================
Upgrading:
python3-botocore noarch 1.31.62-1.el9 appstream 6.1 M
Removing dependent packages:
awscli noarch 1.23.10-3.el9 @epel 8.5 M
Transaction Summary
=============================================================================================
Upgrade 1 Package
Remove 1 Package
Total download size: 6.1 M
Is this ok [y/N]: y
Downloading Packages:
python3-botocore-1.31.62-1.el9.noarch.rpm 5.5 MB/s | 6.1 MB 00:01
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 5.0 MB/s | 6.1 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Upgrading : python3-botocore-1.31.62-1.el9.noarch 1/3
Erasing : awscli-1.23.10-3.el9.noarch 2/3
Cleanup : python3-botocore-1.25.10-1.el9.noarch 3/3
Running scriptlet: python3-botocore-1.25.10-1.el9.noarch 3/3
Verifying : python3-botocore-1.31.62-1.el9.noarch 1/3
Verifying : python3-botocore-1.25.10-1.el9.noarch 2/3
Verifying : awscli-1.23.10-3.el9.noarch 3/3
Upgraded:
python3-botocore-1.31.62-1.el9.noarch
Removed:
awscli-1.23.10-3.el9.noarch
Complete!
成功了,然后再升级,就可以了。