我尝试从系统中卸载 mysql,并执行以下命令,
sudo apt remove mysql*
并收到以下回复,
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql-apt-config_0.8.12-1_all.deb
E: Unable to locate package mysql-apt-config_0.8.12-1_all.deb.1
我如何删除这些 mysql apt config deb 文件?
编辑1:
另外,当尝试
apt list -i | grep mysql
我们收到以下回复,
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
答案1
如果apt
无法为您做到这一点,可能需要使用dpkg
:
sudo dpkg --remove --force-all mysql-apt-config
从这里开始,请务必更新apt
:
$ sudo apt autoremove
$ sudo apt autoclean
希望这可以帮助