mlocate 没有安装候选项

mlocate 没有安装候选项

我刚刚升级到 ubuntu 20.4。尝试安装locate结果如下:

sudo apt install mlocate
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package mlocate is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mlocate' has no installation candidate

答案1

在 Ubuntu 中安装软件包之前,建议通过运行命令sudo apt update或从互联网获取更新的软件包列表sudo apt-get update

因此您应该按如下方式进行:

$ sudo apt update
$ sudo apt install mlocate

或者

$ sudo apt-get update
$ sudo apt-get install mlocate

希望您的问题能够得到处理。

相关内容