我的软件包管理 (apt) 出了大问题。我尝试安装该multiscan:i386
软件包,但从那时起,当我使用处理软件包管理的命令时,我总是会遇到错误。
我不知道这是否重要,但我有一个 i7-4720HQ、Ubuntu 17.10.1、64 位架构,并且我通常安装 amd64 包。
me@LINUX:~$ sudo apt remove multiscan
[sudo] password for me:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
multiscan:i386
0 upgraded, 0 newly installed, 1 to remove and 1647 not upgraded.
1 not fully installed or removed.
After this operation, 98.3 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 459704 files and directories currently installed.)
Removing multiscan:i386 (0.8.5-1) ...
install-info: No dir file specified; try --help for more information.
dpkg: error processing package multiscan:i386 (--remove):
subprocess installed pre-removal script returned error exit status 1
install-info: No dir file specified; try --help for more information.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
multiscan:i386
答案1
我做到了:
me@LINUX:~$ sudo rm /var/lib/dpkg/info/multiscan.postinst -f
me@LINUX:~$ sudo rm /var/lib/dpkg/info/multiscan.md5sums -f
me@LINUX:~$ sudo rm /var/lib/dpkg/info/multiscan.list -f
me@LINUX:~$ sudo rm /var/lib/dpkg/info/multiscan.prerm -f
me@LINUX:~$ sudo dpkg --remove --force-remove-reinstreq multiscan
(Lese Datenbank ... 459694 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von multiscan:i386 (0.8.5-1) ...