文章目录

  • 缘由
    最近弄php服务器相关的,发现WSL安装22.04版本的ubuntu 在安装lnmp的时候会报iptables的错
iptables/1.8.7 Failed to initialize nft: Protocol not supported
或
iptables v1.8.7 (nf_tables): CHAIN_ADD failed (No such file or directory)
  • 原因
    ubuntu 22.04默认使用nftables作为防火墙,而非iptables。

  • 解决方法

sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐