Codeblocks 的问题

Codeblocks 的问题

我安装了 Codeblocks 17.12-1,但在生成文件后它没有响应。所以我想从终端尝试 Codeblocks 16.01,但它显示错误。

:~$ sudo apt install codeblocks
[sudo] password for salil: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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: 
codeblocks : Depends: codeblocks-common (= 16.01+dfsg-2.1) but it is not 
going to be installed
E: Unable to correct problems, you have held broken packages.
:~$ 

答案1

删除 codeblocks-common。

sudo apt-get remove codeblocks-common

然后

sudo apt install -f 
sudo apt-get update.

现在尝试重新安装。现在应该可以正常工作了。

相关内容