'tentando sobrescrever o arquivo já no pacote shotwell-common' durante a instalação do shotwell do PPA

12

Estou tentando atualizar minha versão do Shotwell. Bem, meu sistema Ubuntu é. Eu estou recebendo o seguinte erro do apt-get. Alguém pode me dizer como resolvê-lo? Eu tentei algumas coisas diferentes, agora pedindo ajuda.

root@nathanr-XPS-630i:/home/nathanr# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  shotwell
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.8 MB of archives.
After this operation, 25.5 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ppa.launchpad.net/yorba/ppa/ubuntu/ saucy/main shotwell i386 0.15.1-1~saucy1 [10.8 MB]
Fetched 10.8 MB in 2min 16s (79.5 kB/s)                                                                                                                                                
(Reading database ... 316303 files and directories currently installed.)
Preparing to replace shotwell 0.15.0-0ubuntu1 (using .../shotwell_0.15.1-1~saucy1_i386.deb) ...
Unpacking replacement shotwell ...
dpkg: error processing /var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb (--unpack):
 trying to overwrite '/usr/share/icons/hicolor/24x24/apps/shotwell.svg', which is also in package shotwell-common 0.15.0-0ubuntu1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
No apport report written because MaxReports is reached already                                                              Processing triggers for     software-center ...
INFO:softwarecenter.db.update:translation information in database is up-to-date
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
 /var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Alguma sugestão do que preciso fazer?

    
por Lionslair 15.01.2014 / 13:35

3 respostas

14

Experimente este comando no terminal

sudo dpkg -i --force-overwrite /var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb

Este erro ocorre quando algum arquivo foi movido de um pacote para outro em uma versão mais recente.

No seu caso, dpkg tentando extrair o arquivo shotwell.svg de /var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb para /usr/share/icons/hicolor/24x24/apps/ directory.Mas já havia um arquivo shotwell.svg nesse diretório.Então, esse tipo de erro ocorre.

Ao executar o comando dpkg -i --force-overwrite , o arquivo shotwell.svg localizado anteriormente foi forçado a ser substituído pelo arquivo do /var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb durante a instalação.

Aqui está a fonte .

    
por Avinash Raj 15.01.2014 / 14:26
2

Tente estes comandos,

sudo dpkg -r shotwell-common
sudo apt-get install shotwell

apt-get pode ou não funcionar neste caso de remover shotwell-common package.

    
por Avinash Raj 16.01.2014 / 15:48
1

Você deve relatar essas coisas ao proprietário do PPA. Ele não está separando arquivos específicos que não são de arquitetura ou definindo que o shotwell quebra / tem conflitos com o pacote shotwell-common.

A maneira correta de fazer isso é remover o pacote shotwell-common do repositório e depois instalar o do ppa:

sudo apt-get purge shotwell-common
sudo apt-get install shotwell

Isso evitará dores de cabeça durante a atualização de pacotes.

➜  ~  apt-cache policy shotwell-common
shotwell-common:
  Installed: 0.14.1-3
  Candidate: 0.14.1-3
  Version table:
 *** 0.14.1-3 0
        500 http://ftp.us.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
➜  ~  sudo dpkg -i Downloads/shotwell*
[sudo] password for braiam: 
(Reading database ... 188756 files and directories currently installed.)
Preparing to unpack .../shotwell_0.15.1-1~saucy1_i386.deb ...
Unpacking shotwell (0.15.1-1~saucy1) over (0.14.1-3) ...
dpkg: error processing archive Downloads/shotwell_0.15.1-1~saucy1_i386.deb (--install):
 trying to overwrite '/usr/share/icons/hicolor/24x24/apps/shotwell.svg', which is also in package shotwell-common 0.14.1-3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for menu (2.1.46) ...
Errors were encountered while processing:
 Downloads/shotwell_0.15.1-1~saucy1_i386.deb
➜  ~  sudo apt-get --reinstall install shotwell-common=0.14.1-3 shotwell=0.14.1-3       
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 12 not upgraded.
Need to get 3,901 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://ftp.us.debian.org/debian/ testing/main shotwell-common all 0.14.1-3 [1,965 kB]
Get:2 http://ftp.us.debian.org/debian/ testing/main shotwell i386 0.14.1-3 [1,936 kB]
Fetched 3,901 kB in 24s (157 kB/s)                                             
(Reading database ... 188756 files and directories currently installed.)
Preparing to unpack .../shotwell-common_0.14.1-3_all.deb ...
Unpacking shotwell-common (0.14.1-3) over (0.14.1-3) ...
Preparing to unpack .../shotwell_0.14.1-3_i386.deb ...
Unpacking shotwell (0.14.1-3) over (0.14.1-3) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for gnome-menus (3.8.0-2) ...
Processing triggers for mime-support (3.54) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for libglib2.0-0:i386 (2.36.4-1) ...
Processing triggers for man-db (2.6.5-3) ...
Processing triggers for menu (2.1.46) ...
Setting up shotwell-common (0.14.1-3) ...
Setting up shotwell (0.14.1-3) ...
Processing triggers for menu (2.1.46) ...
➜  ~  sudo apt-get remove shotwell-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgee2 libgexiv2-2 libraw9
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  shotwell shotwell-common
0 upgraded, 0 newly installed, 2 to remove and 12 not upgraded.
After this operation, 12.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 188756 files and directories currently installed.)
Removing shotwell (0.14.1-3) ...
Removing shotwell-common (0.14.1-3) ...
Processing triggers for menu (2.1.46) ...
Processing triggers for man-db (2.6.5-3) ...
Processing triggers for libglib2.0-0:i386 (2.36.4-1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for gnome-menus (3.8.0-2) ...
Processing triggers for mime-support (3.54) ...
➜  ~  sudo dpkg -i Downloads/shotwell*.deb                      
Selecting previously unselected package shotwell.
(Reading database ... 188477 files and directories currently installed.)
Preparing to unpack .../shotwell_0.15.1-1~saucy1_i386.deb ...
Unpacking shotwell (0.15.1-1~saucy1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for man-db (2.6.5-3) ...
Processing triggers for libglib2.0-0:i386 (2.36.4-1) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for gnome-menus (3.8.0-2) ...
Processing triggers for mime-support (3.54) ...
Processing triggers for menu (2.1.46) ...
➜  ~  
    
por Braiam 16.01.2014 / 15:44

Tags