A colisão de arquivos entre codeblocks-headers e codeblocks-dev [duplicate]

1

Sempre que tento executar sudo apt-get -f install , recebo este erro. Aqui está toda a saída de sudo apt-get -f install :

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  codeblocks-contrib codeblocks-dev gamin libcodeblocks0 libgamin0
  libwxsmithlib-dev
Recommended packages:
  valgrind
The following packages will be REMOVED:
  codeblocks-headers
The following NEW packages will be installed:
  gamin libgamin0 libwxsmithlib-dev
The following packages will be upgraded:
  codeblocks-contrib codeblocks-dev libcodeblocks0
3 upgraded, 3 newly installed, 1 to remove and 20 not upgraded.
5 not fully installed or removed.
Need to get 0 B/5,309 kB of archives.
After this operation, 1,163 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 174515 files and directories currently installed.)
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)

Alguém acha que pode me ajudar a resolver esse problema?

    
por DejectedAxe 14.05.2014 / 18:53

3 respostas

1

Os codeblock-headers estão sendo removidos, mas por alguma razão o apt-get não faz isso primeiro, você só precisa removê-lo manualmente e instalar o que você precisa instalar:

sudo apt-get remove codeblocks-headers
sudo apt-get install codeblocks-contrib

Eu relataria um bug para os mantenedores do pacote também com o problema.

    
por Braiam 15.05.2014 / 16:31
0

Tente executar:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/codeblocks-dev_13.12-3_amd64.deb

Em seguida, execute:

sudo apt-get -f install

Fonte: Como resolver "dpkg: error processing /var/cache/apt/archives/python-apport_2.0.1-0ubuntu9_all.deb"?

OR

sudo apt-get remove codeblocks-dev && sudo apt-get install -f && sudo apt-get install codeblocks-dev 
    
por Nehal J Wani 14.05.2014 / 19:03
0

o truque é quando você remove / purga um pakage!
remover ou eliminar todos eles com um cmd,

o que funcionou para mim:

sudo apt-get remove codeblocks-contrib codeblocks-dbg codeblocks-contrib-dbg

log

younes@awesomeHostName:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  codeblocks-contrib
Recommended packages:
  valgrind
The following packages will be upgraded:
  codeblocks-contrib
1 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
17 not fully installed or removed.
Need to get 0 B/3,018 kB of archives.
After this operation, 1,162 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
younes@awesomeHostName:~$ sudo apt-get remove codeblocks-contrib
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
younes@awesomeHostName:~$ sudo apt-get remove codeblocks-contrib codeblocks-dbg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 codeblocks-contrib-dbg : Depends: codeblocks-dbg (= 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).
younes@awesomeHostName:~$ sudo apt-get remove codeblocks-contrib codeblocks-dbg codeblocks-contrib-dbg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  codeblocks-contrib codeblocks-contrib-dbg codeblocks-dbg
0 upgraded, 0 newly installed, 3 to remove and 5 not upgraded.
17 not fully installed or removed.
After this operation, 365 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 114672 files and directories currently installed.)
Removing codeblocks-contrib-dbg (13.12-3) ...
Removing codeblocks-dbg (13.12-3) ...
Removing codeblocks-contrib (13.12-1) ...
Setting up libwxbase2.8-0:amd64 (2.8.12.1+dfsg-2ubuntu2) ...
Setting up libwxgtk2.8-0:amd64 (2.8.12.1+dfsg-2ubuntu2) ...
Setting up codeblocks-common (13.12-3) ...
Setting up libcodeblocks0 (13.12-3) ...
Setting up codeblocks (13.12-3) ...
Setting up codeblocks-dev (13.12-3) ...
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 libwxsmithlib0 (13.12-3) ...
Setting up libwxsmithlib-dev (13.12-3) ...
Setting up libwxsmithlib0-dev (13.12-3) ...
Setting up gamin (0.1.10-4.1ubuntu1) ...
Setting up libgamin0 (0.1.10-4.1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
younes@awesomeHostName:~$ 
    
por Jonas 05.01.2016 / 18:07