Kubuntu 18.10 libqt5core5a 更新问题

Kubuntu 18.10 libqt5core5a 更新问题

我想要一个解决我所面临的问题的方法libqt5core5a更新我的机器。每当我尝试通过 Discover、Muon 或 Konsole 进行更新时,我都会收到以下错误

"E: Sub-process /usr/bin/dpkg returned an error code (1)" 

在我的字符串末尾。当我尝试通过直接运行更新时也会发生这种情况sudo apt-get install。请参阅下面的完整详细信息(Konsole 脚本):

Need to get 0 B/2,050 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y

(Reading database ... 270556 files and directories currently installed.)
Preparing to unpack .../libqt5core5a_5.11.1+dfsg-7ubuntu3_amd64.deb ...
Unpacking libqt5core5a:amd64 (5.11.1+dfsg-7ubuntu3) over (5.11.1+dfsg-7ubuntu1) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/libqt5core5a_5.11.1+dfsg-7ubuntu3_amd64.deb (--unpack):
 cannot copy extracted data for './usr/lib/x86_64-linux-gnu/libQt5Core.so.5.11.1' to '/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.11.1.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
 /var/cache/apt/archives/libqt5core5a_5.11.1+dfsg-7ubuntu3_amd64.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

你应该删除损坏的“下载”包

sudo rm /var/cache/apt/archives/libqt5core5a_5.11.1+dfsg-7ubuntu3_amd64.deb

或者删除所有下载的软件包

sudo apt-get clean

然后恢复升级过程

sudo dpkg --configure -a
sudo apt-get upgrade

相关内容