【linux】解决 iptables 出现的 Couldn‘t load match ‘string‘:No such file or directory 的问题
需要先换上 ubuntu-22 的 apt 源,然后重装。ubuntu-20 的 apt 源中只有。在 ubuntu-20.04 上使用。,此时再使用就不会出现问题了。
·
1. 发现问题
在 ubuntu-20.04 上使用 iptables 时,遇到以下报错:
iptables v1.8.4 (legacy): Couldn't load match `string':No such file or directory
Try `iptables -h' or 'iptables --help' for more information.
2. 解决问题
ubuntu-20 的 apt 源中只有 iptables-1.8.4,需要先换上 ubuntu-22 的 apt 源,然后重装 iptables:
sudo apt reinstall iptables
就可以安装上 iptables-1.8.7,此时再使用就不会出现问题了。
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐

所有评论(0)