Ubuntu: openssh-server package not available on 12.04.2



Question:

I have just done a fresh install of 12.04.2 and found out that i could not ssh to this PC. I tried to install openssh-server but it said that "Package openssh-server is not available..." What is missing?


Solution:1

In the Ubuntu Software Center search for openssh-server or else open the terminal and type:

sudo apt-get install openssh-server  

If that doesn't work, open the Ubuntu Software Center and browse to Edit -> Software Sources -> Ubuntu Software tab, and make sure that you have at least the main, universe and multiverse repositories marked with a check mark.


Solution:2

Go to the Ubuntu Software Centre and browse to the Edit -> Software Sources -> Ubuntu Software tab. Then select Other -> Select Best Server under Download From.

Afterwards run in a terminal (Ctrl+Alt+T):

sudo apt-get update && sudo apt-get install openssh-server

Follow the on-screen instructions. This will resolve the issue.


Solution:3

I was following the advice to remove and re-install openssh-server via CLI, but got an error saying the package was not available.

Update apt-get then tried again with success.

So, the sequence that succeeded was:

sudo apt-get remove openssh-client openssh-server  sudo apt-get update  sudo apt-get install openssh-server  


Solution:4

I had the same problem because in installed Ubuntu on a virtual machine, but i didn't connect it to internet because i used a private switch. I just changed the switch and connect it to internet with a private switch. After that i changed the sources code and chose one for my case (Germany). Now it working. You can try the same and i hope everything gonna for you too. (Don't forget to run the update)

Cheers


Solution:5

If all else fails you can find the package available for your distribution via the under-utilized Ubuntu Package Search

In your case it will be found here.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »