Ubuntu - Cannot install via apt-get


I cannot install via apt-get as I get the message,

E: Package ssh has no installation candidate

When running apt-get install [package name] you get,

root@ubuntu:~$ sudo apt-get install ssh
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ssh 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 ssh has no installation candidate


root@ubuntu:~$ sudo apt-get install update

Once the update has finished then re-try your apt-get install [package name]

About the Author


R Donato

Rick Donato is the Founder and Chief Editor of He currently works as an SDN/NFV Solutions Architect and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001