我无法从终端或 ubuntu 软件中心安装 codeblocks ID

我无法从终端或 ubuntu 软件中心安装 codeblocks ID

当我尝试安装 codeblocks ID 时我发现了这一点:

mohamed@MoHy:~$ sudo apt-get install codeblocks
[sudo] password for mohamed: 
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:i386 : Depends: libcodeblocks0:i386 but it is not going to be installed
                   Depends: codeblocks-common:i386 (= 13.12-3) but it is not installable
                   Recommends: gcc:i386 but it is not going to be installed or
                               g++:i386 but it is not going to be installed
                   Recommends: gdb:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

答案1

参照您所说的,它现在有效:

sudo dpkg --add-architecture i386
sudo apt -get update
sudo apt-get install codeblocks

就是这样!:)

相关内容