codeblocks 包损坏了,我该如何删除它以便安装软件?

codeblocks 包损坏了,我该如何删除它以便安装软件?

我最近安装了 codeblocks,从那时起我的软件中心就停止工作了,阻止我安装或卸载其他软件。所有这些都是由未满足的依赖项引起的,我尝试使用 来修复它sudo apt-get -f install。但它不起作用,如下所示:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  codeblocks
Suggested packages:
  libwxgtk2.8-dev wx-common codeblocks-contrib
The following packages will be upgraded:
  codeblocks
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,646 kB of archives.
After this operation, 897 kB disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of codeblocks:
 codeblocks depends on libcodeblocks0 (= 10.05-1); however:
  Version of libcodeblocks0 on system is 10.05-2.
 codeblocks depends on codeblocks-common (= 10.05-1); however:
  Version of codeblocks-common on system is 10.05-2.
dpkg: error processing codeblocks (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 codeblocks
E: Sub-process /usr/bin/dpkg returned an error code (1)

如果有人能帮忙,我将非常感激。提前致谢!

答案1

要修复此问题,请打开终端并输入:

sudo apt-get remove codeblocks

谢谢胡安·大卫·卡斯蒂略提供答案。

相关内容