我试图在我的电脑上安装 Code::Blocks。我只是按照官方 wiki 操作,然后遇到了如下问题。我接下来该怎么做才能解决这些问题?
- 更新 -
抱歉没有表述清楚,wiki 来自于 Code::Blocks 官网: http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Ubuntu。Ubuntu 软件中心里的 Code::Blocks 版本太旧了,所以我没有选择它。
我按照Code::Blocks官方网站的说明成功安装了Code::Blocks并且正常运行,但是今天当我单击Code::Blocks图标时什么也没有发生,所以我尝试重新安装它。
yuyue@ThinkPad:~/Downloads/debian-stable/amd64$ sudo dpkg -i *.deb
dpkg-deb: error: `amd64.deb' is not a debian format archive
dpkg: error processing amd64.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Selecting previously unselected package codeblocks.
(Reading database ... 299683 files and directories currently installed.)
Unpacking codeblocks (from codeblocks_13.12-1_amd64.deb) ...
Preparing to replace codeblocks-common 13.12-1 (using codeblocks-common_13.12-1_all.deb) ...
Unpacking replacement codeblocks-common ...
Selecting previously unselected package codeblocks-contrib.
Unpacking codeblocks-contrib (from codeblocks-contrib_13.12-1_amd64.deb) ...
Preparing to replace codeblocks-contrib-common 13.12-1 (using codeblocks-contrib-common_13.12-1_all.deb) ...
Unpacking replacement codeblocks-contrib-common ...
Selecting previously unselected package codeblocks-contrib-dbg.
Unpacking codeblocks-contrib-dbg (from codeblocks-contrib-dbg_13.12-1_amd64.deb) ...
Selecting previously unselected package codeblocks-dbg.
Unpacking codeblocks-dbg (from codeblocks-dbg_13.12-1_amd64.deb) ...
Preparing to replace codeblocks-dev 13.12-1 (using codeblocks-dev_13.12-1_amd64.deb) ...
Unpacking replacement codeblocks-dev ...
Preparing to replace codeblocks-headers 13.12-1 (using codeblocks-headers_13.12-1_all.deb) ...
Unpacking replacement codeblocks-headers ...
Preparing to replace codeblocks-libwxcontrib0 13.12-1 (using codeblocks-libwxcontrib0_13.12-1_amd64.deb) ...
Unpacking replacement codeblocks-libwxcontrib0 ...
Preparing to replace codeblocks-wxcontrib-dev 13.12-1 (using codeblocks-wxcontrib-dev_13.12-1_amd64.deb) ...
Unpacking replacement codeblocks-wxcontrib-dev ...
Preparing to replace codeblocks-wxcontrib-headers 13.12-1 (using codeblocks-wxcontrib-headers_13.12-1_all.deb) ...
Unpacking replacement codeblocks-wxcontrib-headers ...
Preparing to replace libcodeblocks0 13.12-1 (using libcodeblocks0_13.12-1_amd64.deb) ...
Unpacking replacement libcodeblocks0 ...
Preparing to replace libwxsmithlib0 13.12-1 (using libwxsmithlib0_13.12-1_amd64.deb) ...
Unpacking replacement libwxsmithlib0 ...
Preparing to replace libwxsmithlib0-dev 13.12-1 (using libwxsmithlib0-dev_13.12-1_amd64.deb) ...
Unpacking replacement libwxsmithlib0-dev ...
Preparing to replace wxsmith-dev 13.12-1 (using wxsmith-dev_13.12-1_amd64.deb) ...
Unpacking replacement wxsmith-dev ...
Preparing to replace wxsmith-headers 13.12-1 (using wxsmith-headers_13.12-1_all.deb) ...
Unpacking replacement wxsmith-headers ...
dpkg: dependency problems prevent configuration of codeblocks:
codeblocks depends on libfontconfig1 (>= 2.9.0); however:
Version of libfontconfig1 on system is 2.8.0-3ubuntu9.1.
dpkg: error processing codeblocks (--install):
dependency problems - leaving unconfigured
Setting up codeblocks-common (13.12-1) ...
dpkg: dependency problems prevent configuration of codeblocks-contrib:
codeblocks-contrib depends on libfontconfig1 (>= 2.9.0); however:
Version of libfontconfig1 on system is 2.8.0-3ubuntu9.1.
codeblocks-contrib depends on libgamin0; however:
Package libgamin0 is not installed.
codeblocks-contrib depends on codeblocks (= 13.12-1); however:
Package codeblocks is not configured yet.
dpkg: error processing codeblocks-contrib (--install):
dependency problems - leaving unconfigured
Setting up codeblocks-contrib-common (13.12-1) ...
dpkg: dependency problems prevent configuration of codeblocks-contrib-dbg:
codeblocks-contrib-dbg depends on codeblocks-contrib (= 13.12-1); however:
Package codeblocks-contrib is not configured yet.
dpkg: error processing codeblocks-contrib-dbg (--install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of codeblocks-dbg:
codeblocks-dbg depends on codeblocks (= 13.12-1); however:
Package codeblocks is not configured yet.
dpkg: error processing codeblocks-dbg (--install):
dependency problems - leaving unconfigured
Setting up codeblocks-libwxcontrib0 (13.12-1) ...
Setting up codeblocks-wxcontrib-dev (13.12-1) ...
Setting up codeblocks-wxcontrib-headers (13.12-1) ...
Setting up libcodeblocks0 (13.12-1) ...
Setting up libwxsmithlib0 (13.12-1) ...
Setting up wxsmith-dev (13.12-1) ...
Setting up wxsmith-headers (13.12-1) ...
Setting up libwxsmithlib0-dev (13.12-1) ...
Setting up codeblocks-dev (13.12-1) ...
Setting up codeblocks-headers (13.12-1) ...
Processing triggers for shared-mime-info ...
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
amd64.deb
codeblocks
codeblocks-contrib
codeblocks-contrib-dbg
codeblocks-dbg
答案1
尝试这个:
打开终端(
ctrl+alt+t
)输入以下命令:
sudo add-apt-repository ppa:pasgui/ppa sudo apt-get update sudo apt-get install codeblocks
这应该安装 13.12 版本。