• Hello and welcome! Register to enjoy full access and benefits:

    • Advertise in the Marketplace section for free.
    • Get more visibility with a signature link.
    • Company/website listings.
    • Ask & answer queries.
    • Much more...

    Register here or log in if you're already a member.

  • 🎉 WHV has crossed 10,000 monthly views and 50,000 clicks per month, as per Google Analytics! Thank you for your support! 🎉

daniel6

Newbie
Messages
15
Reaction score
0
Points
1
Balance
$0.4USD
Hi, I installed Ubuntu 20, and when I ran "sudo apt install openssh-server", I got an error:

Bash:
root@daniel:/etc/ssh# sudo apt install openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openssh-server 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 'openssh-server' has no installation candidate

I am using Ubuntu 20.04. How do I solve the error: "E: Package 'openssh-server' has no installation candidate"?

What could be the issue? Please help.
 

benclark

Newbie
Messages
23
Reaction score
4
Points
3
Balance
$7.9USD
Run the command below to resolve your issue:
Code:
sudo apt update

Then, install the OpenSSH server package:
Code:
sudo apt install openssh-server

I think your package list is outdated. Once you run apt update, it will refresh the package list and repositories.
 
Top