我对此程序有问题,无法卸载。每当我尝试删除或清除它时,都会显示此输出:
luis@Luis-PC:~/Downloads$ sudo apt purge 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-contrib : Depends: libwxsmithlib0 (= 20.03) but 20.03-3 is to be installed
Depends: codeblocks (= 20.03) but it is not going to be installed
Recommends: valgrind but it is not going to be installed
Recommends: cppcheck but it is not going to be installed
Recommends: cscope but it is not going to be installed
Recommends: cccc but it is not going to be installed
codeblocks-dev : Depends: libcodeblocks0 (= 20.03) but 20.03-3 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
步骤:
列出有关代码块的所有相关数据包
dpkg --list | grep -i codeblocks
然后删除软件包具有未满足的依赖性
sudo dpkg --purge codeblocks-dev
sudo apt-get update && sudo apt-get upgrade && sudo apt-get -f install
sudo apt-get remove -f software-center && sudo apt-get install -f software-center
现在您可以使用软件中心来安装稳定版本的代码块。