早教吧 育儿知识 作业答案 考试题库 百科 知识分享

用sudoapt-getinstallssh出现错误该怎么办?est2@ubuntu:/etc/init.d$sudoapt-getinstallsshReadingpackagelists...DoneBuildingdependencytreeReadingstateinformation...DoneSomepackagescouldnotbeinstalled.Thismaymeanth

题目详情
用sudo apt-get install ssh出现错误该怎么办?
est2@ubuntu:/etc/init.d$ sudo apt-get install ssh
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:
ssh : Depends: openssh-server (>= 1:6.6p1-2ubuntu1)
E: Unable to correct problems, you have held broken packages.
▼优质解答
答案和解析
可能存在一些依赖问题或者软件源出了问题。
先把软件源换到ubuntu官方源,
然后update,upgrade,将所有已经安装的软件更新一下,
然后apt-get -f install修复一下破损的依赖关系。
最后再来试试安装openssh