'tentativo di sovrascrivere il file già nel pacchetto comune shotwell' durante l'installazione di shotwell dal PPA

12

Sto cercando di aggiornare la mia versione di Shotwell. Bene, il mio sistema Ubuntu è. Sto ottenendo il seguente errore apt-get. Qualcuno può dirmi come risolverlo? Ho provato diverse cose quindi ora chiedo aiuto.

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)

Qualche suggerimento su cosa devo fare?

    
posta Lionslair 15.01.2014 - 13:35
fonte

3 risposte

14

Prova questo comando sul terminale,

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

Questo errore si verifica quando alcuni file sono stati spostati da un pacchetto a un altro in una versione più recente.

Nel tuo caso dpkg cerca di estrarre shotwell.svg file da /var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb a /usr/share/icons/hicolor/24x24/apps/ directory.Ma c'era già un file shotwell.svg in quella directory.Questo tipo di errore si verifica.

Eseguendo il comando dpkg -i --force-overwrite , il file precedentemente posizionato shotwell.svg è stato forzatamente sovrascritto dal file da /var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb durante l'installazione.

Ecco la fonte .

    
risposta data Avinash Raj 15.01.2014 - 14:26
fonte
2

Prova questi comandi,

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

apt-get potrebbe o non potrebbe funzionare in questo caso di rimozione del pacchetto shotwell-common .

    
risposta data Avinash Raj 16.01.2014 - 15:48
fonte
1

Dovresti segnalare tali cose al proprietario del PPA. Non separa i file specifici dell'architettura o l'impostazione delle interruzioni di shotwell / ha dei conflitti con il pacchetto comune shotwell.

Il modo corretto per farlo è rimuovere il repository shotwell-common package, quindi installare quello dal ppa:

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

Ciò impedirà il mal di testa durante l'aggiornamento dei pacchetti.

➜  ~  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) ...
➜  ~  
    
risposta data Braiam 16.01.2014 - 15:44
fonte

Leggi altre domande sui tag