Tente isto:
-
Abra um terminal (
ctrl+alt+t
) -
Digite estes comandos:
sudo add-apt-repository ppa:pasgui/ppa sudo apt-get update sudo apt-get install codeblocks
Isso deve instalar a versão 13.12.
Eu estava tentando instalar o Code :: Blocks no meu PC. Eu apenas segui o wiki oficial e depois encontrei um problema como abaixo. O que devo fazer para resolver esses problemas?
- Atualizações -
Desculpe por não narrar claramente, o wiki é do site oficial da Code :: Blocks: link . A versão do Code :: Blocks no Ubuntu Software Center é muito antiga, por isso não escolhi.
Eu usei as instruções do site oficial da Code :: Blocks para instalar o Code :: Blocks com sucesso e ele roda normalmente, mas hoje quando eu cliquei no ícone Code :: Blocks nada aconteceu, e é por isso que eu tentei reinstalá-lo.
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
Tente isto:
Abra um terminal ( ctrl+alt+t
)
Digite estes comandos:
sudo add-apt-repository ppa:pasgui/ppa
sudo apt-get update
sudo apt-get install codeblocks
Isso deve instalar a versão 13.12.