"dpkg: trying to overwrite '.../gsettings/gnome-settings-daemon.convert also in package gnome-settings-daemon" when upgrading to Trusty
Solution 1:
First of all, I tried to edit your question and make from it a canonical question for the following error:
Unpacking package_name ...
dpkg: error processing archive /path/to/archive_name.deb (--unpack):
trying to overwrite 'file_name', which is also in package another_package_name
My answer will be for this general case, but also for your particular case:
-
You can solve your problem by running:
sudo dpkg -i --force-overwrite /path/to/archive_name.deb
-
In your particular case:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/gnome-settings-daemon-schemas_3.8.6.1-0ubuntu11_all.deb
-
-
If somehow the first step doesn't work, run also:
sudo dpkg -i --force-all /path/to/archive_name.deb
-
In your particular case:
sudo dpkg -i --force-all /var/cache/apt/archives/gnome-settings-daemon-schemas_3.8.6.1-0ubuntu11_all.deb
-
-
Finally, run again:
sudo apt-get -f install
- If you have the same problem with another package, start again with first step.
Source
Solution 2:
This error is produced because before the installation you didn't removed/purged the gnome ppa along with the packages. This is evident since those package gnome-settings-daemon 3.10.2-0ubuntu1~saucy6 is not present in saucy repositories, but in gnome PPA's.
You can try removing one by one using dpkg all those packages ending in saucy:
sudo dpkg --remove package
remove all the PPA repositories and use aptitude remove '?version(*saucy*)'
(if you have synaptic, that's another option) if you have it installed, downgrade it, or reinstall your system.
Solution 3:
This issue happened to me recently as well. Not only had to remove the Gnome repository I manually added to stay on the bleeding edge, but also purge all the Gnome packages that could have gotten in the way (i.e. came from that repository) and then, after apt-get update
installed gnome-shell
version from the Trusty repos, which of course, brought in all its dependencies, including gnome-settings-daemon-schemas
. Hope, your mileage won't vary too much.