终端和软件中心错误,请帮忙

终端和软件中心错误,请帮忙

每当我这样做

sudo apt-get autoremove

我收到此错误输出:

abs@abs-Ubuntu:~$ sudo apt-get autoremove
[sudo] password for abs: 
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.
 liboxideqt-qmlplugin : Depends: liboxideqtcore0 (= 1.9.5-0ubuntu0.15.04.1) but 1.5.5-0ubuntu1 is installed
 liboxideqtcore0 : Depends: oxideqt-codecs (= 1.5.5-0ubuntu1) but 1.9.5-0ubuntu0.15.04.1 is installed or
                            oxideqt-codecs-extra (= 1.5.5-0ubuntu1) but it is not installed
 liboxideqtquick0 : Depends: liboxideqtcore0 (= 1.9.5-0ubuntu0.15.04.1) but 1.5.5-0ubuntu1 is installed
E: Unmet dependencies. Try using -f.
abs@abs-Ubuntu:~$ 

如果我这样做:(sudo apt-get autoremove -f正如它所说):

abs@abs-Ubuntu:~$ sudo apt-get autoremove -f
[sudo] password for abs: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  liboxideqtcore0
The following packages will be upgraded:
  liboxideqtcore0
1 to upgrade, 0 to newly install, 0 to remove and 266 not to upgrade.
2 not fully installed or removed.
Need to get 0 B/27.8 MB of archives.
After this operation, 2,621 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 205974 files and directories currently installed.)
Preparing to unpack .../liboxideqtcore0_1.9.5-0ubuntu0.15.04.1_i386.deb ...
Unpacking liboxideqtcore0:i386 (1.9.5-0ubuntu0.15.04.1) over (1.5.5-0ubuntu1) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/liboxideqtcore0_1.9.5-0ubuntu0.15.04.1_i386.deb (--unpack):
 cannot copy extracted data for './usr/lib/i386-linux-gnu/libOxideQtCore.so.0' to '/usr/lib/i386-linux-gnu/libOxideQtCore.so.0.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
 /var/cache/apt/archives/liboxideqtcore0_1.9.5-0ubuntu0.15.04.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
abs@abs-Ubuntu:~$

我不知道这是否有关联,但每当我进入Ubuntu 软件中心弹出一个窗口,提示:“无法安装新软件,因为当前安装的软件存在问题。您想立即修复此问题吗?”如果我点击“修复”并输入密码进行身份验证,它会显示“包操作失败”,这是详细信息部分的输出:

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 ... 205974 files and directories currently installed.)
Preparing to unpack .../liboxideqtcore0_1.9.5-0ubuntu0.15.04.1_i386.deb ...
Unpacking liboxideqtcore0:i386 (1.9.5-0ubuntu0.15.04.1) over (1.5.5-0ubuntu1) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/liboxideqtcore0_1.9.5-0ubuntu0.15.04.1_i386.deb (--unpack):
 cannot copy extracted data for './usr/lib/i386-linux-gnu/libOxideQtCore.so.0' to '/usr/lib/i386-linux-gnu/libOxideQtCore.so.0.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
 /var/cache/apt/archives/liboxideqtcore0_1.9.5-0ubuntu0.15.04.1_i386.deb
Error in function: 
dpkg: dependency problems prevent configuration of liboxideqtquick0:i386:
 liboxideqtquick0:i386 depends on liboxideqtcore0 (= 1.9.5-0ubuntu0.15.04.1); however:
  Version of liboxideqtcore0:i386 on system is 1.5.5-0ubuntu1.

dpkg: error processing package liboxideqtquick0:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of liboxideqt-qmlplugin:i386:
 liboxideqt-qmlplugin:i386 depends on liboxideqtcore0 (= 1.9.5-0ubuntu0.15.04.1); however:
  Version of liboxideqtcore0:i386 on system is 1.5.5-0ubuntu1.
 liboxideqt-qmlplugin:i386 depends on liboxideqtquick0 (= 1.9.5-0ubuntu0.15.04.1); however:
  Package liboxideqtquick0:i386 is not configured yet.

dpkg: error processing package liboxideqt-qmlplugin:i386 (--configure):
 dependency problems - leaving unconfigured

请帮忙,我不知道该如何解决这个问题。提前致谢。

答案1

liboxideqtcore0您的 APT 缓存中的版本已损坏。

要修复此问题,请将其删除:

sudo rm /var/cache/apt/archives/liboxideqtcore0_1.9.5-0ubuntu0.15.04.1_i386.deb

然后再次运行sudo apt-get install -f

sudo apt-get install -f

这将强制apt-get下载另一个版本(希望没有损坏)liboxideqtcore0,该版本应该可以顺利安装。

相关内容