apt-get: Como sobrescrever arquivos existentes de outro pacote?

4

Estou tentando instalar o Gnome3 para Natty, usando a origem deb http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu natty main , mas o seguinte erro:

$ sudo apt-get install -f
...
Unpacking replacement gnome-games-common ...
dpkg: error processing /var/cache/apt/archives/gnome-games-common_1%3a3.0.0-      0ubuntu1~build1_i386.deb (--unpack):
 trying to overwrite '/usr/share/gnome-games-common/cards/bonded.svg', which is also in     package gnome-games-extra-data 2.30.0-1ubuntu1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/gnome-games-common_1%3a3.0.0-0ubuntu1~build1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Não consigo sudo apt-get remove gnome-games-common nem gnome-games-extra-data antes de corrigir o problema acima:

$ sudo apt-get remove gnome-games-common
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:
 aisleriot : Depends: gnome-games-common (>= 1:3.0.0-0ubuntu1~build1) but it is not going to be installed
 glchess : Depends: gnome-games-common (>= 1:3.0.0-0ubuntu1~build1) but it is not going to be installed
 glines : Depends: gnome-games-common (>= 1:3.0.0-0ubuntu1~build1) but it is not going to be installed
 gnect : Depends: gnome-games-common (>= 1:3.0.0-0ubuntu1~build1) but it is not going to be installed
 gnibbles : Depends: gnome-games-common (>= 1:3.0.0-0ubuntu1~build1) but it is not going to be installed
 gnobots2 : Depends: gnome-games-common (>= 1:3.0.0-0ubuntu1~build1) but it is not going to be installed
 gnome-mahjongg : Depends: gnome-games-common (>= 1:3.0.0-0ubuntu1~build1) but it is not going to be installed
 gnome-sudoku : Depends: gnome-games-common (>= 1:2.32.1-0ubuntu5) but it is not going to be installed
 gnomine : Depends: gnome-games-common (>= 1:3.0.0-0ubuntu1~build1) but it is not going to be installed
 gnotravex : Depends: gnome-games-common (>= 1:3.0.0-0ubuntu1~build1) but it is not going to be installed
 gnotski : Depends: gnome-games-common (>= 1:3.0.0-0ubuntu1~build1) but it is not going to be installed
 gtali : Depends: gnome-games-common (>= 1:3.0.0-0ubuntu1~build1) but it is not going to be installed
 iagno : Depends: gnome-games-common (>= 1:3.0.0-0ubuntu1~build1) but it is not going to be installed
 lightsoff : Depends: gnome-games-common (>= 1:2.32.1-0ubuntu5) but it is not going to be installed
 quadrapassel : Depends: gnome-games-common (>= 1:3.0.0-0ubuntu1~build1) but it is not going to be installed
 swell-foop : Depends: gnome-games-common (>= 1:2.32.1-0ubuntu5) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

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

Gostaria de substituir o arquivo /usr/share/gnome-games-common/cards/bonded.svg , posso?

    
por Xiè Jìléi 04.05.2011 / 01:00

3 respostas

5

Tente executar:

sudo dpkg --purge gnome-games gnome-games-common gnome-games-extra-data

para remover os pacotes ofensivos. Se os pacotes se recusarem a ser removidos, você poderá executar:

sudo dpkg --force-overwrite --purge gnome-games gnome-games-common gnome-games-extra-data

Em seguida, limpe o cache do apt e reinstale-o:

sudo apt-get clean
sudo apt-get install gnome-games gnome-games-common gnome-games-extra-data
    
por Andrew Gunnerson 04.05.2011 / 05:43
1

Você deve tentar remover gnome-games-extra-data , não gnome-games-common . Eu tentei instalar o gnome-games-extra-data e atualizar o Gnome do ppa e não tive nenhum erro. Fazê-lo em ordem invertida faz com que a raiva apareça.

    
por skfd 04.05.2011 / 03:22
1

O que eu fiz foi remover cada jogo pelo nome, como sugerido acima. Isso me deu mais erros, mas listou outros aplicativos e jogos que tinham o problema de dependência. Eu removi esses também, então sudo apt-get update, e ele automaticamente me pediu para instalar o gnome-games-common. A partir daí, tudo parece estar funcionando bem.

    
por SOTEC 29.07.2011 / 19:22

Tags