Emerge (Gentoo) 報告軟體包已安裝和未安裝

Emerge (Gentoo) 報告軟體包已安裝和未安裝

我正在嘗試將 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 ...我會再次收到已安裝該軟體包的一個版本的資訊。那麼,該軟體包是否已安裝?以及如何解決這個衝突呢?或是萬一包資訊損壞了,有辦法修復嗎?

相關內容