Score:0

mlocate has no installation candidate

cn flag

I just upgraded to ubuntu 20.4. Trying to install locate resulted as follows :

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
us flag
Run `sudo apt update` and try again.
guiverc avatar
cn flag
It's there though you didn't provide architecture, so refer @ArchismanPanigrahi's comment (`mlocate | 0.26-3ubuntu3 | focal | source, amd64, arm64, armhf, ppc64el, riscv64, s390x`)
Adam Nitzan avatar
cn flag
Thanks a lot. "sudo apt update" solved the issue
N0rbert avatar
zw flag
Does this answer your question? [How do I restore the default repositories?](https://askubuntu.com/questions/124017/how-do-i-restore-the-default-repositories)
karel avatar
sa flag
Does this answer your question? ["Unable to locate package" while trying to install packages with APT](https://askubuntu.com/questions/378558/unable-to-locate-package-while-trying-to-install-packages-with-apt)
Score:0
ru flag

Before installing a package in Ubuntu it is advisable to get an updated list of packages from the Internet by running the command sudo apt update or sudo apt-get update.

So you should proceed as follows:

$ sudo apt update
$ sudo apt install mlocate

or

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

Hopefully, your issue should be handled.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.