我正在使用 Ubuntu 13.10 并升级到 Gnome 3.10。但是当我尝试安装时,ubuntu-gnome-desktop
我收到 Libreoffice 错误。我使用的是 Openoffice(安装 Openoffice 时我删除了 Libreoffice),我收到以下错误消息。
Errors were encountered while processing:
/var/cache/apt/archives/libreoffice-common_1%3a4.1.3-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我已经尝试sudo apt-get -f install
安装libreoffice-common
但出现以下错误
dpkg: error processing /var/cache/apt/archives/libreoffice-common_1%3a4.1.3-0ubuntu1_all.deb (--unpack):
trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.0-9714
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 man-db ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
Processing triggers for gnome-icon-theme ...
Processing triggers for hicolor-icon-theme ...
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 gnome-menus ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils ...
Processing triggers for mime-support ...
Errors were encountered while processing:
/var/cache/apt/archives/libreoffice-common_1%3a4.1.3-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我也尝试过手动删除/usr/bin/soffice
, openoffice
&ubuntu-gnome-desktop
但问题仍然存在。autoremove
, autoclean
&clean
似乎也无济于事。
答案1
尝试openoffice-debian-menus
通过运行以下命令来清除,
sudo dpkg --purge openoffice-debian-menus
然后运行以下命令,
sudo apt-get -f install
答案2
我试过
sudo aptitude purge libreoffice*.*
然后通过 Synaptic 重新安装 Libreoffice