I freshly installed ubuntu , didnt expected this. and it has never happened before atleast for ubuntu 20.04.1 LTS . I did ran sudo apt update then I tried to install.
$ sudo apt install openssh-server -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
openssh-server : Depends: openssh-client (= 1:8.2p1-4)
Depends: openssh-sftp-server
Recommends: ssh-import-id but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I installed ssh-import-id and then tried to installed openss-sftp-server but I still get thsi depends error.
sudo apt update
needs to be run) OR you have incomplete sources, unless it's broken packages as the error states. Have you triedsudo apt -f install
? or another --fix-broken option. – guiverc Dec 20 '20 at 21:39-f
flag – Ciasto piekarz Dec 20 '20 at 21:51