每当我尝试打开软件中心时,它都会显示一条消息:
无法安装新软件,因为当前安装的软件有问题。是否要立即修复此问题?
我单击了修复,但是当它尝试安装包时显示此错误:
installArchives() failed: (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 333396 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a4.3.3-0ubuntu1_all.deb ...
Unpacking libreoffice-common (1:4.3.3-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a4.3.3-0ubuntu1_all.deb (--unpack):
trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.1.1-9775
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 mime-support (3.55ubuntu1.1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu2) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
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-icon-theme (3.12.0-1ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for man-db (2.7.0.2-2) ...
Errors were encountered while processing:
/var/cache/apt/archives/libreoffice-common_1%3a4.3.3-0ubuntu1_all.deb
Error in function:
dpkg: dependency problems prevent configuration of libreoffice-l10n-en-gb:
libreoffice-l10n-en-gb depends on libreoffice-common; however:
Package libreoffice-common is not installed.
dpkg: error processing package libreoffice-l10n-en-gb (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-l10n-en-za:
libreoffice-l10n-en-za depends on libreoffice-common; however:
Package libreoffice-common is not installed.
dpkg: error processing package libreoffice-l10n-en-za (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-l10n-ar:
libreoffice-l10n-ar depends on libreoffice-common; however:
Package libreoffice-common is not installed.
dpkg: error processing package libreoffice-l10n-ar (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-help-en-gb:
libreoffice-help-en-gb depends on libreoffice-l10n-en-gb; however:
Package libreoffice-l10n-en-gb is not configured yet.
dpkg: error processing package libreoffice-help-en-gb (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-help-en-us:
libreoffice-help-en-us depends on libreoffice-l10n-en-us; however:
Package libreoffice-l10n-en-us is not installed.
dpkg: error processing package libreoffice-help-en-us (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-core:
libreoffice-core depends on libreoffice-common (>> 1:4.3.3); however:
Package libreoffice-common is not installed.
dpkg: error processing package libreoffice-core (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-uno:
python3-uno depends on libreoffice-core (= 1:4.3.3-0ubuntu1); however:
Package libreoffice-core is not configured yet.
dpkg: error processing package python3-uno (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-math:
libreoffice-math depends on libreoffice-core (= 1:4.3.3-0ubuntu1); however:
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-math (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-writer:
libreoffice-writer depends on libreoffice-core (= 1:4.3.3-0ubuntu1); however:
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-writer (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mythes-en-us:
mythes-en-us depends on libreoffice-core | openoffice.org-core (>= 1.9) | language-support-writing-en; however:
Package libreoffice-core is not configured yet.
Package openoffice.org-core is not installed.
Package language-support-writing-en is not installed.
dpkg: error processing package mythes-en-us (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-base-core:
libreoffice-base-core depends on libreoffice-core (= 1:4.3.3-0ubuntu1); however:
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-base-core (--configure):
dependency problems - leaving unconfigured
我已经尝试过这些帖子:
还有另外三个链接,但由于表单上的声誉问题,我无法将它们放上去 :(
我知道问题出在 libreoffice 软件包中,但我无法对它们做任何事情,无法安装它们所需的内容或删除它们。尝试了自动删除,但由于依赖关系而无法完成,因为这里的问题是某些东西在没有依赖项的情况下安装(不知道这是怎么发生的)。非常感谢任何一瞥或建议,因为如果没有任何效果,我将被迫格式化我的电脑 :( 这个问题将是第二个将我推向这个极限的问题。提前致谢。
答案1
OpenOffice 和 LibreOffice 的打包方式似乎阻碍了两者的和谐共存。我建议您选择其中之一并删除另一个。
答案2
正如 Karel 在评论中所说,解决方案就在这个链接中: dpkg 错误
我完全按照上面说的做了,但我浏览了 /var/cache/apt/archives/ 来检查哪些软件包导致了问题,并做了和他一样的事情,但更改了软件包的名称,一切顺利
再次感谢 Karel