ERROR: Couldn't determine iptables version
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