Debian

Debian ‘bullseye’ - 由於 gnustep-base-runtime 未滿足的依賴關係而無法升級

  • July 27, 2020

由於未滿足的依賴關係,升級我的**Debian ‘bullseye’**發行版不起作用。

Operating System: Debian GNU/Linux bullseye/sid
         Kernel: Linux 5.6.0-2-686-pae
   Architecture: x86

當我嘗試通過使用來升級我的系統時,我apt update得到apt upgrade

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
gnustep-base-runtime : Depends: gnustep-base-common (= 1.27.0-3) but 1.26.0-7 is to be installed
libgnustep-base1.27 : Depends: gnustep-base-common (= 1.27.0-3) but 1.26.0-7 is to be installed
E: Broken packages

有誰知道如何解決這個問題?

由於從 1.26 到 1.27 的測試剛剛gnustep-base過渡,涉及從 升級libgnustep-base1.26libgnustep-base1.27,因此您需要在升級期間允許刪除包:使用

apt full-upgrade

而不是apt upgrade.

請檢查您的源列表中是否有任何損壞或不受支持的軟體源。然後執行。

未滿足依賴關係的一個可能原因是軟體包數據庫損壞,和/或某些軟體包未正確安裝。

清除檢索到的封包件的本地儲存庫。

sudo apt-get autoclean

解決依賴問題

sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get -f install

更新系統包和升級軟體包

sudo apt-get update
sudo apt-get upgrade

最後執行一個完整的升級來解決你的問題。

sudo apt-get full-upgrade

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