常见的报错可以尝试 sudo apt install openssh-server -f 如果还继续出错,可能是Ubuntu自带openssh-client与要安装的不匹配 尝试卸载openssh-client后再安装openssh-server