升级我的Debian“靶心”由于未满足依赖性,分发无法正常工作。
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
由于刚刚有一个gnustep-base
测试从 1.26 过渡到 1.27,涉及从libgnustep-base1.26
到 的升级libgnustep-base1.27
,您需要允许在升级过程中删除软件包:使用
apt full-upgrade
代替apt upgrade
。
答案2
请检查您的源列表中是否有任何损坏或不受支持的软件源。然后跑。
未满足依赖关系的一个可能原因可能是包数据库已损坏,和/或某些包未正确安装。
清除检索到的包文件的本地存储库。
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