[Seek Help] 关于apt-file的问题
Tofloor
poster avatar
gschelpus
deepin
2021-04-12 05:53
Author

前几天装的deepin20.2(Debian Testing用户),习惯性的安装了apt-file以防止有文件缺失的情况发生,更新也完成了(sudo apt-file update)

为啥老说数据库没有嘞?

ps:尽管我找着包了,但还是很奇怪为啥用不了apt-file..

Reply Favorite View the author
All Replies
Ziggy
deepin
2021-04-12 07:35
#1

这个组件功能是需要另行下载的,可以用apt search等确认系统是否有这个包

Reply View the author
littlebat
deepin
2021-04-12 21:42
#2

看提示,需要 apt-file update 建立本地缓存才行

Reply View the author
gschelpus
deepin
2021-04-13 16:20
#3
Ziggy

这个组件功能是需要另行下载的,可以用apt search等确认系统是否有这个包

都下载安装好了,使用却出了问题

Reply View the author
gschelpus
deepin
2021-04-13 16:22
#4
littlebat

看提示,需要 apt-file update 建立本地缓存才行

看图片嘛,下载安装都好了,更新本地缓存也完成了,还是不行的

Reply View the author
gschelpus
deepin
2021-04-13 16:34
#5

看嘛,已经安装好了,apt search也能找到apt-file,也能看到是已安装的

可是我的意思是根据引入的文件来搜索软件包,apt-file就是完成这个功能的

Reply View the author
gschelpus
deepin
2021-04-13 16:37
#6

就像是在debian那样..

Reply View the author
littlebat
deepin
2021-04-13 23:46
#7

好像是 Deepin 仓库源不支持 apt-file,参见5年前的帖子:Deepin源不支持 apt-file文件查找功能 https://bbs.deepin.org/zh/post/40803

实在想使用的话,我有一个临时的方案可以考虑,在 /etc/apt/sources.list.d/ 下放入一个 Debian 的源,使用完了重命名一下 Debian 源后缀就可以忽略它了。

 

Reply View the author
gschelpus
deepin
2021-04-14 04:15
#8
littlebat

好像是 Deepin 仓库源不支持 apt-file,参见5年前的帖子:Deepin源不支持 apt-file文件查找功能 https://bbs.deepin.org/zh/post/40803

实在想使用的话,我有一个临时的方案可以考虑,在 /etc/apt/sources.list.d/ 下放入一个 Debian 的源,使用完了重命名一下 Debian 源后缀就可以忽略它了。

 

确实如此,换成debian buster 源就能正常使用apt-file了

看来是deepin官方还是没有支持apt-file吧,我猜这里的缓存还是debian的...

Reply View the author