Update the Package Index in Ubuntu
In Ubuntu, the package index is managed by the Advanced Packaging Tool (APT).
The index of all the available packages from the repositories is defined in the file /etc/apt/sources.list file.
To update this package index, use the following command.
# sudo apt-get update
That is it.