【已解决】dpkg: 警告: 无法找到软件包 mysql-apt-config 的...
Tofloor
poster avatar
thepoy
deepin
2020-01-30 22:44
Author
本帖最后由 thepoy 于 2020-1-30 14:50 编辑

之前装mysql时,在官网下载了deb包,安装一直卡在一半多,于是一气之下强制关闭了deb安装器,现在apt install 任何包都会有一个警告:dpkg: 警告: 无法找到软件包 mysql-apt-config 的文件名列表文件,现假定该软件包目前没有任何文件被安装在系统里。



实在是碍眼,怎解决这个警告呢?



Reply Favorite View the author
All Replies
avatar
139******14
deepin
2020-01-31 18:37
#1
用docker载入比较干净
Reply View the author
avatar
thepoy
deepin
2020-01-31 20:31
#2
https://bbs.deepin.org/post/188336
用docker载入比较干净

现在用的就是docker
Reply View the author
avatar
bigben446
deepin
2022-06-06 07:17
#3

dpkg: 警告: 无法找到软件包 XXX 的文件名列表文件,现假定该软件包目前没有任何文件被安装在系统里。

目前的解决办法就是重新安装对应软件包:

sudo apt reinstall xxx

如果过多此类警告,可以一键重新安装所有软件(需要花费大量时间):

sudo apt-get --reinstall install dpkg --get-selections | grep '[[:space:]]install' | cut -f1

Reply View the author