我正在尝试将 Gentoo 安装从 2018 年底升级到当前版本(2020 年 3 月)。我正在按照给出的指示进行操作这里。
我有一个主机安装,其中包含最新(2020 年 3 月)的 Gentoo 系统,并从那里我将旧安装安装在<old-inst>
.我正在尝试使用以下命令进行升级:
emerge --ask --verbose --verbose-conflicts --update --deep --newuse --root=<old-inst> --config-root=<old-inst> @world --backtrack=20000
这在已安装的软件包和更新将安装的软件包之间产生了一些冲突。我通过删除旧包并尝试使用上面的命令再次更新来解决这些问题。我的计划是在更新成功运行后再次安装已删除的软件包。
这个策略对很多冲突都有效,但现在我遇到了一个无法解决的冲突。以下是来自的信息emerge --update ...
:
!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:
dev-python/cffi:0
(dev-python/cffi-1.11.4:0/1.11.4::gentoo, installed) USE="-doc -test" PYTHON_TARGETS="python2_7 python3_6" pulled in by
>=dev-python/cffi-1.8:0/1.11.4=[python_targets_python2_7(-),-python_single_target_python2_7(-),python_targets_python3_6(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-)] required by (dev-python/cryptography-2.8-r1:0/0::gentoo, installed) USE="-idna -libressl -test" PYTHON_TARGETS="python2_7 python3_6 (-pypy3) (-python3_7) (-python3_8)"
^^^^^^^^^^
>=dev-python/cffi-1.1:0/1.11.4=[python_targets_python2_7(-),-python_single_target_python2_7(-),python_targets_python3_6(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)] required by (dev-python/bcrypt-3.1.6:0/0::gentoo, installed) USE="-test" PYTHON_TARGETS="python2_7 python3_6 (-python3_7)"
^^^^^^^^^^
dev-python/cffi:0/1.11.4=[python_targets_python3_6(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)] required by (dev-python/pyzmq-16.0.2:0/0::gentoo, installed) USE="(-doc) -test" PYTHON_TARGETS="python3_6 (-python3_7)"
^^^^^^^^^^
(dev-python/cffi-1.13.2:0/1.13.2::gentoo, ebuild scheduled for merge) USE="-doc -test" PYTHON_TARGETS="python2_7 python3_6 (-python3_7) (-python3_8)" pulled in by >=dev-python/cffi-1.1:0/1.13.2=[python_targets_python2_7(-),-python_single_target_python2_7(-),python_targets_python3_6(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)] required by (dev-python/bcrypt-3.1.6:0/0::gentoo, installed in '/systemrescuecd/customcd/files/') USE="-test" PYTHON_TARGETS="python2_7 python3_6 (-python3_7)"
^^^^^^^^^^
dev-python/cffi:0/1.13.2=[python_targets_python2_7(-),python_targets_python3_6(-),-python_single_target_python2_7(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)] required by (dev-python/pyzmq-16.0.2:0/0::gentoo, installed in '/systemrescuecd/customcd/files/') USE="(-doc) -test" PYTHON_TARGETS="python2_7 python3_6 (-python3_7)"
如果我正确解释此信息,则至少dev-python/cffi
会安装两个不同版本的软件包:例如, version1.13.2
是由 package 拉取的dev-python/bcrypt
,并且 version1.11.4
已安装。所以我的计划是dev-python/cffi
先删除包,然后再试emerge --update ...
一次。所以我做了
emerge --ask --root=<old-inst> --config-root=<old-inst> -C dev-python/cffi
但emerge报告说该软件包没有安装,这让我很困惑。如果我随后尝试,emerge --update ...
我会再次收到已安装该软件包的一个版本的信息。那么,该软件包是否已安装?以及如何解决这个冲突呢?或者万一包信息损坏了,有办法修复吗?