题主在使用ubuntu安装openssh-server时,国外源使用不了,更新完国内源也不行 ,update一直过不去,之前也碰到这个问题,今天看到一位博主的文章http://t.csdnimg.cn/dn8Czhttp://t.csdnimg.cn/dn8Cz终于解决了。在此记录一下(做个笔记,不是抄袭)
The following packages have unmet dependencies: openssh-server : Depends: openssh-client (= 1:8.2p1-4ubuntu0.11) but 1:7.6p1-4ubuntu0.3 is to be installed Depends: libcrypt1 (>= 1:4.1.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
使用命令lsb_release -a 查看codename,我之前使用的是facal.......
原来的源文件:
deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
更改后的源文件:
安装成功
ubuntu各个版本的源如下:
Ubuntu 12.04 (LTS)代号为precise。
Ubuntu 14.04 (LTS)代号为trusty。
Ubuntu 15.04 代号为vivid。
Ubuntu 15.10 代号为wily。
Ubuntu 16.04 (LTS)代号为xenial。
Ubuntu 18.04 (LTS)代号为bionic。
Ubuntu 20.04 (LTS)代号为focal。