2

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

muru
  • 197,895
  • 55
  • 485
  • 740

1 Answers1

3

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.

ThunderBird
  • 1,955