首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何修复破损的LibreOffice包?

如何修复破损的LibreOffice包?
EN

Ask Ubuntu用户
提问于 2012-12-15 18:48:22
回答 3查看 28.1K关注 0票数 4

我有“损坏的包”,但是当我试图在中修复它们时,我会得到以下错误消息:

代码语言:javascript
复制
dpkg: unrecoverable fatal error, aborting:
 files list file for package `libreoffice-calc' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install.  Trying to recover:
dpkg: dependency problems prevent configuration of libreoffice-writer:
 libreoffice-writer depends on libreoffice-core (= 1:3.6.2~rc2-0ubuntu4); however:
  Version of libreoffice-core on system is 1:3.6.2~rc2-0ubuntu3.
 libreoffice-writer depends on libreoffice-base-core (= 1:3.6.2~rc2-0ubuntu4); however:
  Version of libreoffice-base-core on system is 1:3.6.2~rc2-0ubuntu3.

dpkg: error processing libreoffice-writer (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing libreoffice-base-core (--configure):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting configuration.
dpkg: dependency problems prevent configuration of libreoffice-calc:
 libreoffice-calc depends on libreoffice-core (= 1:3.6.2~rc2-0ubuntu4); however:
  Version of libreoffice-core on system is 1:3.6.2~rc2-0ubuntu3.
 libreoffice-calc depends on libreoffice-base-core (= 1:3.6.2~rc2-0ubuntu4); however:
  Version of libreoffice-base-core on system is 1:3.6.2~rc2-0ubuntu3.

dpkg: error processing libreoffice-calc (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libreoffice-writer
 libreoffice-base-core
 libreoffice-calc

sudo apt-get install -f命令提供了以下内容:

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libreoffice-base-core libreoffice-core libreoffice-draw libreoffice-gnome
  libreoffice-gtk libreoffice-impress libreoffice-math python-uno
Suggested packages:
  libreoffice-base libreoffice-evolution
The following packages will be upgraded:
  libreoffice-base-core libreoffice-core libreoffice-draw libreoffice-gnome
  libreoffice-gtk libreoffice-impress libreoffice-math python-uno
8 upgraded, 0 newly installed, 0 to remove and 196 not upgraded.
3 not fully installed or removed.
Need to get 0 B/36.8 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: unrecoverable fatal error, aborting:
 files list file for package `libreoffice-calc' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)

使用sudo apt-get purge libreoffice*,然后是sudo apt-get install libreoffice,请告诉我:

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libreoffice : Depends: libreoffice-core (= 1:3.6.2~rc2-0ubuntu4) but 1:3.6.2~rc2-0ubuntu3 is to be installed
               Depends: libreoffice-base but it is not going to be installed
               Depends: ttf-dejavu but it is not going to be installed
               Depends: libreoffice-java-common (>= 1:3.6.2~rc2~) but it is not going to be installed
 libreoffice-calc : Depends: libreoffice-core (= 1:3.6.2~rc2-0ubuntu4) but 1:3.6.2~rc2-0ubuntu3 is to be installed
                    Depends: libreoffice-base-core (= 1:3.6.2~rc2-0ubuntu4) but 1:3.6.2~rc2-0ubuntu3 is to be installed
 libreoffice-writer : Depends: libreoffice-core (= 1:3.6.2~rc2-0ubuntu4) but 1:3.6.2~rc2-0ubuntu3 is to be installed
                      Depends: libreoffice-base-core (= 1:3.6.2~rc2-0ubuntu4) but 1:3.6.2~rc2-0ubuntu3 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我不知道该怎么办。

EN

回答 3

Ask Ubuntu用户

发布于 2012-12-15 19:20:27

尝试做sudo apt-get purge libreoffice*

那就做sudo apt-get install libreoffice

如果它发现依赖问题:

类型

sudo apt-get purge libreoffice*

sudo add-apt-repository ppa:libreoffice/ppa

sudo apt-get update

sudo apt-get install libreoffice

票数 6
EN

Ask Ubuntu用户

发布于 2013-07-17 06:08:19

当我从dpkg中得到一个致命的错误时,我发现了这个问题,它具有相同的症状-空列表文件。。。https://serverfault.com/questions/430682/dpkg-warning-files-list-file-for-package-x-missing

我还对var/lib的列表文件进行了rm‘编辑。

rm /var/lib/dpkg/info/my_missing_pacage.list。

然后重新安装

wajig重新安装突触

我喜欢wajig --把记忆中很少用到的对dkpg和apt的调用的工作都拿走了。

票数 0
EN

Ask Ubuntu用户

发布于 2013-09-23 11:53:29

这为我解决了这个问题:

sudo apt-得到清除libreoffice*

出现了一个说明缺少依赖项的抱怨,并建议运行。

sudo apt-获取-f安装

我做到了。然后再一次:

sudo apt-得到清除libreoffice*

其次是:

sudo apt-获取安装libreoffice

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/229393

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档