Instalação do Codeblocks

0

Eu tentei instalar codeblocks seguindo as instruções em:

link

mas finalmente fez algo errado.

woelrat@ubuntu:~$ dpkg -l | grep codeb
ii  codeblocks 13.12-3 amd64        Code::Blocks integrated development environment (IDE)
ii  codeblocks-common                                     13.12-3                                             all          common files for Code::Blocks IDE
iU  codeblocks-contrib-dbg                                13.12-3                                             amd64        dummy transitional package for Code::Blocks debugging symbols
iU  codeblocks-dbg                                        13.12-3                                             amd64        Code::Blocks debugging libraries
ii  codeblocks-dev                                        13.12-1                                             amd64        Code::Blocks development libraries (SDK)
ri  codeblocks-headers                                    13.12-1                                             all          Code::Blocks development headers (SDK)
ri  codeblocks-libwxcontrib0                              13.12-1                                             amd64        Code::Blocks shared libraries for wxContribItems
ri  codeblocks-wxcontrib-dev                              13.12-1                                             amd64        Code::Blocks development libraries for wxContribItems
ii  codeblocks-wxcontrib-headers                          13.12-1                                             all          Code::Blocks development headers for wxContribItems
ii  libcodeblocks0                                        13.12-1                                             amd64        Code::Blocks shared libraries

Já experimentei sudo apt-get -f install com os seguintes erros:

Preparing to unpack .../codeblocks-dev_13.12-3_amd64.deb ...
Unpacking codeblocks-dev (13.12-3) over (13.12-1) ...
dpkg: error processing archive /var/cache/apt/archives/codeblocks-dev_13.12-3_amd64.deb (--unpack):
trying to overwrite '/usr/include/codeblocks/externaldepsdlg.h', which is also in package codeblocks-headers 13.12-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/codeblocks-dev_13.12-3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

The following packages have unmet dependencies:

codeblocks-dbg : Depends: codeblocks-contrib (= 13.12-3) but it is not going to be installed

codeblocks-headers : Depends: codeblocks-dev (>= 13.12-1) but it is not going to be installed
                  Depends: codeblocks-dev (< 13.12-1.1~) but it is not going to be installed

libwxsmithlib0 : Depends: libcodeblocks0 (= 13.12-3) but 13.12-1 is to be installed
              Recommends: codeblocks-contrib (= 13.12-3) but it is not going to be installed
libwxsmithlib0-dev : Depends: libwxsmithlib-dev (= 13.12-3) but it is not going to be installed

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Algumas dicas de como posso resolver isso? Onde preciso começar?

$ sudo apt-get install libwxsmithlib0 libwxsmithlib0-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libwxsmithlib0 is already the newest version.
libwxsmithlib0-dev is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 codeblocks-dbg : Depends: codeblocks-contrib (= 13.12-3) but it is not going to be installed
 libwxsmithlib0 : Depends: libcodeblocks0 (= 13.12-3) but 13.12-1 is to be installed
                  Recommends: codeblocks-contrib (= 13.12-3) but it is not going to be installed
 libwxsmithlib0-dev : Depends: libwxsmithlib-dev (= 13.12-3) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Ainda tenho um problema com dependências. Alguém tem uma ideia de como resolver isso?

    
por woelrat 22.10.2015 / 10:21

2 respostas

0

@woelrat obrigado pela sua resposta. Acabei de resolver meu mesmo problema.

Etapas:

  • Listar todos os pacotes relativos sobre codeblocks

    dpkg --list | grep -i codeblocks
    
  • Em seguida, remova os pacotes com dependências não atendidas

    sudo dpkg --purge codeblocks-dev
    sudo apt-get update && sudo apt-get upgrade && sudo apt-get -f install
    

Voilaaa ..

Talvez o seu centro de software tenha sido danificado por algumas falhas. Eu sugiro que você instale novamente

sudo apt-get remove -f software-center && sudo apt-get install -f software-center

Agora você pode instalar uma versão estável de codeblocks usando o software-center.

    
por talayhan 20.12.2015 / 10:04
0

Eu removi todos os pacotes individualmente. (você precisa descobrir a ordem correta!)

sudo dpkg -i packages-name.deb

necessário para forçar a remoção de um dos pacotes (Dependências estavam em um loop entre pacotes de árvore)

Codeblocks instalados com o gerenciador de software do Ubuntu. Isso foi feito em 5 minutos: -)

    
por woelrat 23.10.2015 / 11:11