fir3net
PPS-Firenetbanner-780.5x190-30-03-17

Ubuntu - Cannot install via apt-get

Issue

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

Solution 

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

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

About the Author

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001