Xenial 中的 CodeBlocks

Xenial 中的 CodeBlocks

我是 Linux 新手,无法在 xenial 中安装 codeblocks。出现以下错误:

The following packages have unmet dependencies:

codeblocks: 
    Depends: libcodeblocks0 (= 16.01~ubuntu16.04.1) but 16.01~ubuntu16.04.1 is to be installed
    Depends: libgcc1 (>= 1:3.0) but 1:6.0.1-0ubuntu1 is to be installed
    Depends: libwxbase2.8-0 (>= 2.8.12.1+dfsg2) but it is not going to be installedcd
    Depends: libwxgtk2.8-0 (>= 2.8.12.1+dfsg2) but it is not going to be installed
    Depends: codeblocks-common (= 16.01~ubuntu16.04.1) but 16.01~ubuntu16.04.1 is to be installed

我已经安装了wx3.0版本。

谢谢

答案1

Xenial 转储了 wxWidgets 2.8,它甚至不在存储库中。code::blocks 将无法在其上运行,除非提供使用 3.0 编译的版本(并且 Jen 的版本将无法运行,它需要比存储库中可用的库更新的库)或重新添加 2.8。

答案2

您可以尝试以下两种方法来解决此问题:

  1. 运行以下命令,修复(并安装)缺失的软件包代码块依靠:

    sudo apt-get install -f
    
  2. 使用此命令手动安装缺失的软件包:

    sudo apt-get install libcodeblocks0 libgcc1 libwxbase2.8 libwxgtk2.8 codeblocks-common
    

有关 apt-get 命令的更多信息可以阅读手册:

man apt-get

我希望这可以帮到你。

相关内容