![无法安装 deb 包](https://linux22.com/image/937922/%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%20deb%20%E5%8C%85.png)
今天早上我尝试安装应用程序 slimbookamdcontroller,但安装不顺利,出现了这个错误。所以,当我尝试安装任何其他 deb 包时,我都会收到同样的错误。我试过了sudo apt --fix-broken install
,但错误是一样的。有没有什么办法可以解决这个问题?谢谢
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
slimbookamdcontroller stremio
0 upgraded, 0 newly installed, 2 to remove and 5 not upgraded.
2 not fully installed or removed.
After this operation, 6672 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 195768 files and directories currently installed.)
Removing slimbookamdcontroller (0.2) ...
/var/lib/dpkg/info/slimbookamdcontroller.postrm: 9: cd: can't cd to /usr/share/s
limbookamdcontroller/
dpkg: error processing package slimbookamdcontroller (--remove):
installed slimbookamdcontroller package post-removal script subprocess returned
error exit status 2
dpkg: too many errors, stopping
Errors were encountered while processing:
slimbookamdcontroller
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
执行此命令sudo ls -l /var/lib/dpkg/info | grep -i <package name>
并删除所有文件后,一切正常......