Fedora
dnf:如何判斷導致依賴關係中斷的原因?
有時在執行 a 時,
dnf upgrade
我會被告知由於依賴關係損壞,它正在跳過包。它會告訴我哪些包被跳過,但不告訴我為什麼它們被跳過。我如何找出“為什麼”?
使用相當不明顯的
--best
選項。從手冊頁:-b, --best Try the best available package versions in transactions. Specif‐ ically during dnf upgrade, which by default skips over updates that can not be installed for dependency reasons, the switch forces DNF to only consider the latest packages. When running into packages with broken dependencies, DNF will fail giving a reason why the latest version can not be installed.