在Ubuntu上卸载软件时遇到题目所述提示,导致无法卸载。
例如:
$ sudo apt-get remove -y mlnx-ofed-kernel-utils ofed-scripts
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package mlnx-ofed-kernel-dkms needs to be reinstalled, but I can't find an archive for it.
解决方法:
$ sudo dpkg --remove --force-all mlnx-ofed-kernel-dkms
$ sudo apt-get update
再卸载就可以了