command locate not found,but can be intalled with
command locate not found,but can be intalled with
hello,我是橘子,一个笨笨的女程序员,今天说一说关于linux中locate问题,说明使用的ubuntu
从这个图片能看出来,就是出错了,我就懵了,为什么会这个样子呢,locate不是系统命令吗,原谅我英语不是很好,所以下面继续操作,个人建议切换到root命令下
1.运行sudo apt update
2.几分钟之后运行apt install mlocate
3.updatedb,测试一下就可以了
说明:可能有些小伙伴遇见这样的情况
updatedb失败所以,所以在运行一遍apt install mlocate或者apt install locate即可