首页 > 系统相关 >ERROR: Couldn't determine iptables version

ERROR: Couldn't determine iptables version

时间:2023-01-31 22:25:20浏览次数:34  
标签:iptables Couldn A31BQ38 version usr determine ERROR

 

001、ubuntu中安装ssh服务时遇到如下报错:ERROR: Couldn't determine iptables version

 

 

002、解决方法

root@DESKTOP-A31BQ38:~# update-alternatives --list iptables
/usr/sbin/iptables-legacy
/usr/sbin/iptables-nft

 

 

root@DESKTOP-A31BQ38:~# sudo update-alternatives --set iptables /usr/sbin/iptables-legacy

 

 

003、测试效果(已经不再提示刚才的报错)

root@DESKTOP-A31BQ38:~# sudo apt install openssh-server -y

 

 

 

参考:https://www.cnblogs.com/gooutlook/p/11119811.html

 

标签:iptables,Couldn,A31BQ38,version,usr,determine,ERROR
From: https://www.cnblogs.com/liujiaxin2018/p/17081003.html

相关文章