Arch-Linux

pacman 問題:“錯誤:準備交易失敗”

  • June 26, 2021

嘗試更新我的包數據庫:

$ sudo pacman -Syu
[sudo] password for pietrom: 
:: Synchronizing package databases...
core is up to date
extra                                    1770.5 KiB   259K/s 00:07 [######################################] 100%
community                                   5.3 MiB   150K/s 00:36 [######################################] 100%
multilib is up to date
:: Starting full system upgrade...
warning: fontconfig: local (2:2.13.91+23+g65087ac-1) is newer than extra (2:2.13.1+12+g5f5ec56-2)
warning: lib32-systemd: local (243.9-1) is newer than multilib (242.135-1)
warning: python-pip: local (19.2.3-1.4) is newer than extra (19.2.3-1)
warning: systemd: local (243.9-1) is newer than core (242.135-1)
warning: systemd-libs: local (243.9-1) is newer than core (242.135-1)
warning: systemd-sysvcompat: local (243.9-1) is newer than core (242.135-1)
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing pamac-common (9.0.0-3) breaks dependency 'pamac-common<9.0.0' required by pamac-qt

除了有關已安裝的較新版本的警告之外,還有什麼是以及如何修復最後一個錯誤?

我要更新的是我的 LLVM/clang 版本(從 8 到 9),我沒有用 Pacman 做。

pacman告訴你它不能更新系統,因為它不能在不破壞依賴關係的情況下更新包。

您安裝了一個名為pamac-qt. 此軟體包被列為“實驗性”,它與 pamac 9 API 不兼容。您需要將其替換為pamac-gtk.

這應該可以解決您的問題:

pacman -S pamac-gtk
pacman -R pamac-qt

解決此問題的最佳解決方案是手動刪除所有損壞的依賴項,然後重新執行sudo pacman -Syu命令。有用!

引用自:https://unix.stackexchange.com/questions/546595