'versucht die Datei bereits im shotwell-common-Paket zu überschreiben' während der Installation von shotwell vom PPA

12

Ich versuche meine Version von Shotwell zu aktualisieren. Nun, mein Ubuntu-System ist. Ich erhalte den folgenden apt-get-Fehler. Kann mir jemand sagen, wie ich es lösen kann? Ich habe ein paar verschiedene Dinge ausprobiert und bitte jetzt um Hilfe.

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)

Irgendwelche Vorschläge, was ich tun muss?

    
Lionslair 15.01.2014, 13:35
quelle

3 Antworten

14

Versuchen Sie diesen Befehl am Terminal,

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

Dieser Fehler tritt auf, wenn eine Datei in einer neueren Version von einem Paket in ein anderes verschoben wurde.

In Ihrem Fall versucht dpkg , shotwell.svg file aus /var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb nach /usr/share/icons/hicolor/24x24/apps/ directory zu extrahieren. Aber es gab bereits eine shotwell.svg -Datei in diesem Verzeichnis. Diese Art von Fehler tritt auf.

Beim Ausführen des Befehls dpkg -i --force-overwrite wurde die zuvor gefundene Datei shotwell.svg während der Installation von der Datei /var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb zwangsweise überschrieben.

Hier ist die Quelle .

    
Avinash Raj 15.01.2014 14:26
quelle
2

Probieren Sie diese Befehle aus,

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

apt-get kann oder kann in diesem Fall nicht funktionieren, wenn shotwell-common package entfernt wird.

    
Avinash Raj 16.01.2014 15:48
quelle
1

Sie sollten solche Dinge dem PPA-Besitzer melden. Er trennt keine nicht-architekturspezifischen Dateien oder legt fest, dass shotwell Konflikte mit dem shotwell-common-Paket hat / hat.

Die richtige Vorgehensweise ist das Entfernen des Repository-Shotwell-common-Pakets und das Installieren des Pakets aus dem ppa:

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

Dies verhindert Kopfschmerzen beim Aktualisieren von Paketen.

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

Tags und Links