When trying to upgrade to the PPA version of Nemo, I get the following dpkg error:
$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
cinnamon-translations python-requests python-urllib3
The following packages will be upgraded:
nemo nemo-data python-cupshelpers system-config-printer-gnome
Preparing to unpack .../cinnamon-translations_2.4.0-20141104040041-trusty_all.deb ...
Unpacking cinnamon-translations (2.4.0-20141104040041-trusty) ...
dpkg: error processing archive /var/cache/apt/archives/cinnamon-translations_2.4.0-20141104040041-trusty_all.deb (--unpack):
trying to overwrite '/usr/share/locale/ne/LC_MESSAGES/nemo.mo', which is also in package nemo-data 1.8.4-1.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/cinnamon-translations_2.4.0-20141104040041-trusty_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have tried the usual suggestions that I have been able to find and have even tried deleting the nemo.mo file, but nothing seems to work. Any ideas as to how to get this sorted? I am using Ubuntu 14.04 with Unity, but have Nemo set as the default default fire manager.
Answer from OP:
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.
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:
Fixing this (in most cases but probably not all) is quite simple: look for path of the file that caused the error - in my first example that would be
/var/cache/apt/archives/smplayer_0.6.9+svn3595-1ppa1~maverick1_i386.deb
, and run the following command:If
--force-overwrite
doesn't work, you can try--force-all
instead.In the above command, replace
/var/...
with the exact path to the.deb
that caused the error on your computer.Source