有一次我愚蠢地尝试手动从我的 Ubuntu16.10 yakkety 中删除 Virtualbox,结果完全删除了 /usr/lib/virtualbox/。然后我意识到我需要清除的包名为 virtualbox-5.1:i386,于是尝试
$ sudo dpkg -P virtualbox-5.1:i386
稳定地给予
dpkg: error processing package virtualbox-5.1:i386 (--purge):
subprocess installed pre-removal script returned error exit status 1
/var/lib/dpkg/info/virtualbox-5.1.postinst: 95: /var/lib/dpkg/info
/virtualbox-5.1.postinst: /usr/lib/virtualbox/prerm-common.sh: not found
/var/lib/dpkg/info/virtualbox-5.1.postinst: 96: /var/lib/dpkg/info
/virtualbox-5.1.postinst: /usr/lib/virtualbox/postinst-common.sh: not found
Errors were encountered while processing:
virtualbox-5.1:i386
我无法恢复现有版本,也无法编写新版本。请您提供任何建议。