站长视角
用户至上

Debian 系统安装openssh-server : Depends: libwrap0 but it is not installable 解决方法

优质广告位招租,欢迎联系站长

Debian 安装 openssh-server 遇到的问题,分享下解决方法。如果是 Debian 初始化安装后出现的问题,使用第一个方法解決。若是系统用过一阵子才突然出现,则用第二个方法(也适用于 Ubuntu)。

openssh-server 安装报错信息:

[email protected]:~# apt-get install openssh-server
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: libwrap0 (>= 7.6-4~) but it is not installable
E: Unable to correct problems, you have held broken packages.

方法一

因为系统软件源未配置或错误导致,这种情况不单安装 openssh-server 有问题,其它软件也不可安装。

解决方法是正确配置软件安装源,具体请参考这篇文章,里面有详细介绍如何正确配置系统软件源。

方法二

尝试修复系统依赖损坏,删除 apt 缓存和列表目录文件,然后重建软件包索引。

apt-get install -f
apt-get clean
rm -rf /var/lib/apt/lists/*
apt-get update
赞(0)
版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权, 转载请注明出处。
文章名称:《Debian 系统安装openssh-server : Depends: libwrap0 but it is not installable 解决方法》
文章链接:https://cnidc.co/19451.html
【声明】:国外主机测评仅分享信息,不参与任何交易,也非中介,所有内容仅代表个人观点,均不作直接、间接、法定、约定的保证,读者购买风险自担。一旦您访问国外主机测评,即表示您已经知晓并接受了此声明通告。
【关于安全】:任何 IDC商家都有倒闭和跑路的可能,备份永远是最佳选择,服务器也是机器,不勤备份是对自己极不负责的表现,请保持良好的备份习惯。
香港110M(含10M CN2)大带宽独服限量促销,香港E3-8G-1T硬盘-3IP,月付仅799!

登录

找回密码

注册