在软件包目录修复之前,无法安装或删除该项目

在软件包目录修复之前,无法安装或删除该项目

安装 Microsoft Windows 兼容层(元包)后,我收到错误

Item cannot be installed or removed until the package catalogue is repaired. Do you want 
to repair it

在此处输入图片描述

好的,我想...我只需单击“修复”即可完成。 执行此操作后,我收到另一个错误。

在此处输入图片描述

全文如下:

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 ... 212945 files and directories currently installed.)
Unpacking libasound2:i386 (from .../libasound2_1.0.25-1ubuntu10_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libasound2_1.0.25-1ubuntu10_i386.deb (--unpack):
 './usr/share/alsa/cards/ICE1712.conf' is different from the same file on the system
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libasound2_1.0.25-1ubuntu10_i386.deb
Error in function: 
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)
dpkg: dependency problems prevent configuration of wine1.4-i386:i386:
 wine1.4-i386:i386 depends on libasound2 (>= 1.0.23); however:
  Package libasound2:i386 is not installed.
dpkg: error processing wine1.4-i386:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wine1.4:
 wine1.4 depends on wine1.4-i386 (= 1.4-0ubuntu4); however:
  Package wine1.4-i386 is not installed.
  Package wine1.4-i386:i386 is not configured yet.
dpkg: error processing wine1.4 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wine:
 wine depends on wine1.4; however:
  Package wine1.4 is not configured yet.
dpkg: error processing wine (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wine1.4-common:
 wine1.4-common depends on wine1.4 (= 1.4-0ubuntu4); however:
  Package wine1.4 is not configured yet.
dpkg: error processing wine1.4-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wine1.4-amd64:
 wine1.4-amd64 depends on wine1.4-common (= 1.4-0ubuntu4); however:
  Package wine1.4-common is not configured yet.
dpkg: error processing wine1.4-amd64 (--configure):
 dependency problems - leaving unconfigured

因此我单击“确定”,然后返回到上一个屏幕(“无法安装此项目...”)

我点击“取消”,然后转到屏幕右上角的红色圆圈,并尝试从那里更新,但收到此错误

在此处输入图片描述

之后我就遇到了这些错误

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

所以现在我无法在系统上添加或删除任何程序。有人知道如何修复这个问题吗?

答案1

打开终端并输入:

sudo apt-get clean
sudo apt-get -f install
sudo apt-get autoremove
sudo apt-get autoclean

答案2

打开终端并输入:

sudo apt-get -f install

这是一种尝试修复损坏的依赖关系的方法,错误代码中的某些行表明存在需要修复的损坏的依赖关系。

答案3

上述两种回答都不起作用,你必须首先

sudo apt-get update 

然后重复

sudo apt-get -f install 

答案4

这应该可以解决问题:

mv /usr/share/alsa/cards/ICE1712.conf /var/backup/usr/share/alsa/cards/ICE1712.conf

该文件与 dpkg 记住的文件不同,因此失败。移开该文件应该可以解决问题。

相关内容