我尝试安装 openoffice.org 软件包,但出现错误。现在我无法修复、删除或安装任何东西。xubuntu 的软件中心给出了这个错误日志。似乎没有什么可以解决这个问题。我尝试了 apt-get install -f,但也没有解决问题。有什么建议吗?
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 ... 184189 files and directories currently installed.)
Unpacking libreoffice-common (from .../libreoffice-common_1%3a3.5.4-0ubuntu1.1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/libreoffice-common_1%3a3.5.4-0ubuntu1.1_all.deb (--unpack):
trying to overwrite '/usr/bin/soffice', which is also in package openoffice.org-debian-menus 3.2-9502
No apport report written because MaxReports is reached already
rmdir: erro ao remover /var/lib/libreoffice/share/prereg/: Ficheiro ou directoria inexistente
rmdir: erro ao remover /var/lib/libreoffice/share/: Directoria no vazia
rmdir: erro ao remover /var/lib/libreoffice/program/: Ficheiro ou directoria inexistente
rmdir: erro ao remover /var/lib/libreoffice: Directoria no vazia
rmdir: erro ao remover /var/lib/libreoffice: Directoria no vazia
Processing triggers for desktop-file-utils ...
Processing triggers for shared-mime-info ...
Processing triggers for gnome-icon-theme ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/libreoffice-common_1%3a3.5.4-0ubuntu1.1_all.deb
dpkg: dependency problems prevent configuration of libreoffice-java-common:
libreoffice-java-common depends on libreoffice-common; however:
Package libreoffice-common is not installed.
dpkg: error processing libreoffice-java-common (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-filter-mobiledev:
libreoffice-filter-mobiledev depends on libreoffice-java-common; however:
Package libreoffice-java-common is not configured yet.
dpkg: error processing libreoffice-filter-mobiledev (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-base:
libreoffice-base depends on libreoffice-java-common (>= 1:3.5.4~); however:
Package libreoffice-java-common is not configured yet.
dpkg: error processing libreoffice-base (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-core:
libreoffice-core depends on libreoffice-common (>> 1:3.5.4); however:
Package libreoffice-common is not installed.
dpkg: error processing libreoffice-core (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-style-human:
libreoffice-style-human depends on libreoffice-core; however:
Package libreoffice-core is not configured yet.
dpkg: error processing libreoffice-style-human (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-math:
libreoffice-math depends on libreoffice-core (= 1:3.5.4-0ubuntu1.1); however:
Package libreoffice-core is not configured yet.
dpkg: error processing libreoffice-math (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-impress:
libreoffice-impress depends on libreoffice-core (= 1:3.5.4-0ubuntu1.1); however:
Package libreoffice-core is not configured yet.
dpkg: error processing libreoffice-impress (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-style-tango:
libreoffice-style-tango depends on libreoffice-core; however:
Package libreoffice-core is not configured yet.
dpkg: error processing libreoffice-style-tango (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice:
libreoffice depends on libreoffice-core (= 1:3.5.4-0ubuntu1.1); however:
Package libreoffice-core is not configured yet.
libreoffice depends on libreoffice-impress; however:
Package libreoffice-impress is not configured yet.
libreoffice depends on libreoffice-math; however:
Package libreoffice-math is not configured yet.
libreoffice depends on libreoffice-base; however:
Package libreoffice-base is not configured yet.
libreoffice depends on libreoffice-filter-mobiledev; however:
Package libreoffice-filter-mobiledev is not configured yet.
libreoffice depends on libreoffice-java-common (>= 1:3.5.4~); however:
Package libreoffice-java-common is not configured yet.
dpkg: error processing libreoffice (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-writer:
libreoffice-writer depends on libreoffice-core (= 1:3.5.4-0ubuntu1.1); however:
Package libreoffice-core is not configured yet.
dpkg: error processing 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 mythes-en-us (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-help-zh-cn:
libreoffice-help-zh-cn depends on libreoffice-writer | language-support-translations-zh; however:
Package libreoffice-writer is not configured yet.
Package language-support-translations-zh is not installed.
dpkg: error processing libreoffice-help-zh-cn (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-base-core:
libreoffice-base-core depends on libreoffice-core (= 1:3.5.4-0ubuntu1.1); however:
Package libreoffice-core is not configured yet.
dpkg: error processing libreoffice-base-core (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-gnome:
libreoffice-gnome depends on libreoffice-core (= 1:3.5.4-0ubuntu1.1); however:
Package libreoffice-core is not configured yet.
dpkg: error processing libreoffice-gnome (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-help-pt-br:
libreoffice-help-pt-br depends on libreoffice-writer | language-support-translations-pt; however:
Package libreoffice-writer is not configured yet.
Package language-support-translations-pt is not installed.
dpkg: error processing libreoffice-help-pt-br (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-emailmerge:
libreoffice-emailmerge depends on libreoffice-core; however:
Package libreoffice-core is not configured yet.
dpkg: error processing libreoffice-emailmerge (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-help-en-gb:
libreoffice-help-en-gb depends on libreoffice-writer | language-support-translations-en; however:
Package libreoffice-writer is not configured yet.
Package language-support-translations-en is not installed.
dpkg: error processing libreoffice-help-en-gb (--configure):
dependency problems - leaving unconfigured
答案1
为了解决这个问题,你可以:
1-使用突触并完全删除损坏的软件包然后重新安装
2-尝试命令
sudo dpkg --configure -a
然后尝试
sudo apt-get install -f
答案2
试试这个。打开终端类型
sudo apt-get 更新 sudo apt-get 安装 -f sudo apt-get 自动删除 sudo apt-get clean
root@nuno-P5KC:~# sudo apt-get install -f 马上查看包裹清单... 依赖关系的构建 立即查看当前状态... 纠正依赖关系...Feito 下列包已自动安装,因此无需: Linux 头文件 3.2.0-29-通用 Linux 头文件 3.2.0-29 使用“apt-get autoremove”来卸载操作系统。 下列包请额外安装: libreoffice-通用 甜帕克: libreoffice 风格-hicontrast libreoffice 风格-crystal libreoffice 风格-oxygen 接下来安装以下新包: libreoffice-通用 0 个更新包、1 个新安装包、0 个卸载包和 8 个未更新包。 24 个包无法全部安装或移除。 需要获得 20.9 MB 的档案。 完成此操作后,您将使用 52.7 MB 的磁盘空间。 是否继续 [Y/n]? 获取:1 http://pt.archive.ubuntu.com/ubuntu/ precise-updates/main libreoffice-common all 1:3.5.4-0ubuntu1.1 [20,9 MB] 10 秒内下载 20.9 MB (1944 kB/s) (查看数据库...184189 个文件和当前安装的目录。) 解压缩 libreoffice-common (从 .../libreoffice-common_1%3a3.5.4-0ubuntu1.1_all.deb) ... dpkg: 处理 /var/cache/apt/archives/libreoffice-common_1%3a3.5.4-0ubuntu1.1_all.deb (--unpack) 时出错: 当尝试创建 '/usr/bin/soffice' 时,它也位于 openoffice.org-debian-menus 3.2-9502 包中 rmdir: 错误,删除程序“/var/lib/libreoffice/share/prereg/”:文件或目录不存在 rmdir: 错误由删除程序 «/var/lib/libreoffice/share/» 产生:无法删除的目录 rmdir: 错误,删除程序“/var/lib/libreoffice/program/”:文件或目录不存在 rmdir: 错误由清除程序 «/var/lib/libreoffice» 删除: 无法找到目录 rmdir: 错误由清除程序 «/var/lib/libreoffice» 删除: 无法找到目录 桌面文件实用程序的“触发器”处理器...... 共享 mime 信息的“触发器”处理器…… gnome-icon-theme 的‘触发器’处理器... hicolor-icon-theme 的‘触发器’处理... man-db 的‘触发器’处理器...... 过程中发现的错误有: /var/cache/apt/archives/libreoffice-common_1%3a3.5.4-0ubuntu1.1_all.deb E: 子进程 /usr/bin/dpkg 返回错误代码 (1)