bswilson
October 25th, 2013, 07:27 PM
Friends, I cannot seem to update or remove any software from my systems due to some whacky apt-get issue related to Libreoffice. When I attempt to upgrade anything, I see the following message:
root@eminem:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libreoffice-core : Depends: libreoffice-common (> 1:4.1.2~rc3) but it is not installed
libreoffice-ogltrans : Depends: libreoffice-common but it is not installed
E: Unmet dependencies. Try using -f.
So, OK, I'll try that:
root@eminem:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
gdm libebackend-1.2-6 libedata-book-1.2-17 libedata-cal-1.2-20
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libreoffice-common
Suggested packages:
libreoffice-style-crystal libreoffice-style-hicontrast libreoffice-style-oxygen
The following NEW packages will be installed:
libreoffice-common
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
13 not fully installed or removed.
Need to get 0 B/26.9 MB of archives.
After this operation, 77.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 386232 files and directories currently installed.)
Unpacking libreoffice-common (from .../libreoffice-common_1%3a4.1.2~rc3-0ubuntu1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/libreoffice-common_1%3a4.1.2~rc3-0ubuntu1_all.deb (--unpack):
trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.0-9702
rmdir: failed to remove ‘/var/lib/libreoffice/share/prereg/’: No such file or directory
rmdir: failed to remove ‘/var/lib/libreoffice/share/’: Directory not empty
rmdir: failed to remove ‘/var/lib/libreoffice/program/’: No such file or directory
rmdir: failed to remove ‘/var/lib/libreoffice’: Directory not empty
rmdir: failed to remove ‘/var/lib/libreoffice’: Directory not empty
Processing triggers for shared-mime-info ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Processing triggers for man-db ...
Processing triggers for gnome-icon-theme ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils ...
Processing triggers for mime-support ...
Processing triggers for gnome-menus ...
Errors were encountered while processing:
/var/cache/apt/archives/libreoffice-common_1%3a4.1.2~rc3-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
No matter what I've tried, I can't fix this. I have deleted /var/cache/apt/archives/* and that doesn't do anything. I looked at /var/log/dpkg.log, and that doesn't have anything useful that I can tell.
Help?!
root@eminem:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libreoffice-core : Depends: libreoffice-common (> 1:4.1.2~rc3) but it is not installed
libreoffice-ogltrans : Depends: libreoffice-common but it is not installed
E: Unmet dependencies. Try using -f.
So, OK, I'll try that:
root@eminem:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
gdm libebackend-1.2-6 libedata-book-1.2-17 libedata-cal-1.2-20
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libreoffice-common
Suggested packages:
libreoffice-style-crystal libreoffice-style-hicontrast libreoffice-style-oxygen
The following NEW packages will be installed:
libreoffice-common
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
13 not fully installed or removed.
Need to get 0 B/26.9 MB of archives.
After this operation, 77.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 386232 files and directories currently installed.)
Unpacking libreoffice-common (from .../libreoffice-common_1%3a4.1.2~rc3-0ubuntu1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/libreoffice-common_1%3a4.1.2~rc3-0ubuntu1_all.deb (--unpack):
trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.0-9702
rmdir: failed to remove ‘/var/lib/libreoffice/share/prereg/’: No such file or directory
rmdir: failed to remove ‘/var/lib/libreoffice/share/’: Directory not empty
rmdir: failed to remove ‘/var/lib/libreoffice/program/’: No such file or directory
rmdir: failed to remove ‘/var/lib/libreoffice’: Directory not empty
rmdir: failed to remove ‘/var/lib/libreoffice’: Directory not empty
Processing triggers for shared-mime-info ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Processing triggers for man-db ...
Processing triggers for gnome-icon-theme ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils ...
Processing triggers for mime-support ...
Processing triggers for gnome-menus ...
Errors were encountered while processing:
/var/cache/apt/archives/libreoffice-common_1%3a4.1.2~rc3-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
No matter what I've tried, I can't fix this. I have deleted /var/cache/apt/archives/* and that doesn't do anything. I looked at /var/log/dpkg.log, and that doesn't have anything useful that I can tell.
Help?!