LibreOffice Base 和未满足的依赖项

LibreOffice Base 和未满足的依赖项

我的 LibreOffice Base 数据库突然被锁定,无法编辑。此外,每当我尝试将照片插入数据库帖子时,LibreOffice Base 都会退出。我已经在关系数据库中工作了几个月,没有对设计进行任何更改,只是填充了它。

我尝试删除 LibreOffice Base 以便能够重新安装该软件。通过软件中心无法做到这一点。以下是错误消息:

installArchives() failed: dpkg: error processing libx11-6 (--configure):
 libx11-6:amd64 2:1.4.99.1-0ubuntu2.1 cannot be configured because libx11-6:i386 is in a different version (2:1.4.99.1-0ubuntu2.2)
dpkg: error processing libx11-6:i386 (--configure):
 libx11-6:i386 2:1.4.99.1-0ubuntu2.2 cannot be configured because libx11-6:amd64 is in a different version (2:1.4.99.1-0ubuntu2.1)
Errors were encountered while processing:
 libx11-6
 libx11-6:i386
Error in function: 
dpkg: error processing libx11-6 (--configure):
 libx11-6:amd64 2:1.4.99.1-0ubuntu2.1 cannot be configured because libx11-6:i386 is in a different version (2:1.4.99.1-0ubuntu2.2)
dpkg: error processing libx11-6:i386 (--configure):
 libx11-6:i386 2:1.4.99.1-0ubuntu2.2 cannot be configured because libx11-6:amd64 is in a different version (2:1.4.99.1-0ubuntu2.1)

软件中心询问我是否要尝试修复错误或取消。选择修复会导致相同的菜单一次又一次地弹出,询问我是否要修复错误或取消。

我跑过的apt-get install -f次数已经不记得了。结果如下:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.38-8-generic libraw5 linux-headers-2.6.38-8 libplot2c2 libpano13-bin libqjson0 libpano13-2 libzthread-2.3-2
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libx11-6
The following packages will be upgraded:
  libx11-6
1 upgraded, 0 newly installed, 0 to remove and 63 not upgraded.
2 not fully installed or removed.
Need to get 0 B/763 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: error processing libx11-6 (--configure):
 libx11-6:amd64 2:1.4.99.1-0ubuntu2.1 cannot be configured because libx11-6:i386 is in a different version (2:1.4.99.1-0ubuntu2.2)
dpkg: error processing libx11-6:i386 (--configure):
 libx11-6:i386 2:1.4.99.1-0ubuntu2.2 cannot be configured because libx11-6:amd64 is in a different version (2:1.4.99.1-0ubuntu2.1)
Errors were encountered while processing:
 libx11-6
 libx11-6:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)

我也尝试过apt-get update,,,所有方法均无济于事。apt-get autoremoveapt-get autoclean

在我这个新手看来,这个问题似乎与 libx11-6 有关,其中某些文件的版本错误,很明显这并apt-get install -f不能解决问题。如何修复它?

答案1

您似乎安装了冲突的 libx11-6 版本。当它们不一致时,它会停止整个安装过程。您需要执行以下任一操作:

删除 i386 版本的 libx11-6 ( apt-get remove libx11-6:i386)。如果 32 位应用程序依赖于它,则可能不可以选择此选项。

升级 libx11-6 的 amd64 版本(apt-get upgrade libx11-6)。如果没有可用的升级,则可能没有此选项。

降级 libx11-6 的 i386 版本(如果没有 Synaptic,我从未这样做过)。这是最后的手段。

完成上述操作之一后,安装应该可以正常进行。这也可能导致 LibreOffice 出现问题,但我不知道。

相关内容