我从头到尾都遵循了本指南(包括删除 Libre):http://tecadmin.net/install-apache-openoffice-on-ubuntu-debian/#
当我进行到第 3 步(桌面集成)的后半部分时,出现以下错误:
jdave@eng-tp06-l:~/en-US/DEBS/desktop-integration$ sudo dpkg -i openoffice4.1-debian-menus_4.1.2-9782_all.deb
(Reading database ... 286456 files and directories currently installed.)
Preparing to unpack openoffice4.1-debian-menus_4.1.2-9782_all.deb ...
Unpacking openoffice-debian-menus (4.1.2-9782) ...
dpkg: error processing archive openoffice4.1-debian-menus_4.1.2-9782_all.deb (--install):
trying to overwrite '/usr/bin/soffice', which is also in package libreoffice-common 1:5.1.4-0ubuntu1
/usr/bin/gtk-update-icon-cache
gtk-update-icon-cache: Cache file created successfully.
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160701-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Errors were encountered while processing:
openoffice4.1-debian-menus_4.1.2-9782_all.deb
使用网站上提供的命令也会导致文件丢失错误,这就是我修改它以使用文件夹中的完整包名称的原因。我刚开始使用 Ubuntu,所以我需要一些帮助。
答案1
Libre 是导致此问题的原因。我以为我已经删除了它,但仍然有一些残留。为了删除它们,我使用了
sudo apt-get remove --purge libreoffice-common
然后再次尝试上一个命令并且成功了!