我尝试安装 tar.xg 格式的 codeblocks,但安装不成功,之后我无法从系统中清除或删除 codeblocks 包,甚至无法安装新软件,我尝试了论坛中所有可能的解决方案,但当我尝试安装任何东西时仍然显示
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
codeblocks : Depends: codeblocks-common (= 20.03-3) but it is not going to be installed
Depends: libcodeblocks0 (>= 20.03) but it is not going to be installed
Depends: libtinyxml2.6.2v5 but it is not going to be installed
Recommends: xterm
libwxsmithlib0 : Depends: libcodeblocks0 (= 20.03) but it is not going to be installed
Depends: libwxgtk3.0-0v5 (>= 3.0.2+dfsg) but it is not installable
Recommends: codeblocks-contrib (= 20.03) but it is not going to be installed
wxsmith-dev : Depends: libcodeblocks0 (= 20.03) but it is not going to be installed
答案1
您是否考虑过从以下行获取You might want to run 'apt --fix-broken install' to correct these.
解决方案?尝试sudo apt --fix-broken install
另外,您是否尝试过查看该软件包是否可作为 .deb 文件使用或在存储库中?sudo apt install packageName
您是否安装了系统无法处理的更高版本的软件包?请尝试https://pkgs.org并找到您需要的包的特定版本。
例如,假设包 A 是版本 1.0,包 B 和 C(依赖项)也是版本 1.0,但您安装了包 A 的较新版本,并且它需要包 B 和 C 是相同的版本,但您无法升级系统(如果它已经是最新的)那么您可能应该降级包 A。
如果您不明白我上面所说的内容,请告诉我。