Sometimes when installing / upgrading a package, you get an error about it trying to overwrite some file which is also found in some other package and this results in a error that won't let you install / upgrade that package. I don't know about you, but I get this kind of errors quite often (most probably because I'm running bleeding-edge software but that's another story).
In most cases, such errors occur when some file was moved from one package to another in a newer version. Here is an example of such an error:
Unpacking replacement smplayer ...dpkg: error processing /var/cache/apt/archives/smplayer_0.6.9+svn3595-1ppa1~maverick1_i386.deb (--unpack): trying to overwrite '/usr/share/smplayer/translations/smplayer_eu.qm', which is also in package smplayer-translations 0.6.9-1dpkg-deb: subprocess paste killed by signal (Broken pipe)
The fix
Fixing this (in most cases but probably not all) is quite simple: look for path of the file that caused the error - in my example in the beginning of the post that would be "/var/cache/apt/archives/smplayer_0.6.9+svn3595-1ppa1~maverick1_i386.deb", an run the following command:
sudo dpkg -i --force-all /var/cache/apt/archives/smplayer_0.6.9+svn3595-1ppa1~maverick1_i386.deb
In the above command, replace "/var..." with the exact path to the .deb that caused the error on your computer. If you've installed it from a repository, the .deb is located in /var/cache/apt/archives but if not, it's wherever you've downloaded it (either way, the error should display its exact path so you don't have to look for it manually).
What the above command does is force the overwrite of the file that exists in 2 packages and caused the error. Then, to make sure all the packages have installed successfully, also run the following command:
sudo apt-get install -f(CC) www.webupd8.org 2009-2011. | Daily Ubuntu / Linux news and application reviews
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Mer ...
Det är för närvarande 1 användare som tittar på det här ämnet. (0 medlemmar och 1 gäster)
Bokmärken