我无法使用 apt-get 安装软件包。我收到以下错误:
trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.1-9764
rmdir: failed to remove ‘/var/lib/libreoffice/share/prereg/’: No such file or directory
rmdir: failed to remove ‘/var/lib/libreoffice/share/’: No such file or directory
rmdir: failed to remove ‘/var/lib/libreoffice/program/’: No such file or directory
rmdir: failed to remove ‘/var/lib/libreoffice’: No such file or directory
rmdir: failed to remove ‘/var/lib/libreoffice’: No such file or directory
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for gnome-icon-theme (3.10.0-0ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1) ...
Errors were encountered while processing:
/var/cache/apt/archives/libreoffice-common_1%3a4.2.6.3-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
对于我尝试安装的每个包。
我尝试关注以下讨论: http://ubuntuforums.org/showthread.php?t=1889732 安装 libreoffice 4-0 时出错
但没有成功。
有人可以帮忙吗?
好的,谢谢。我通过运行解决了这个问题:
sudo apt-get remove --purge libreoffice-core libreoffice-common python3-uno libreoffice-*
由于某种原因,单独删除每个包失败了,但在同一命令中却成功了
答案1
楼主自己解决了这个问题在问题中:
我通过运行解决了:
sudo apt-get remove --purge libreoffice-core libreoffice-common python3-uno libreoffice-*
由于某种原因,单独删除每个包失败了,但在同一命令中却成功了