下面是出错的现象

# iptables -m RATEEST
/lib/xtables/libxt_RATEEST.so: /lib/xtables/libxt_RATEEST.so: undefined symbol: log
iptables v1.4.12: Couldn't load match `RATEEST':Success

Try `iptables -h' or 'iptables --help' for more information.

# iptables -m statistic
/lib/xtables/libxt_statistic.so: /lib/xtables/libxt_statistic.so: undefined symbol: lround
iptables v1.4.12: Couldn't load match `statistic':Success

Try `iptables -h' or 'iptables --help' for more information.

This two modules should be linked against -lm

修复该问题的方法

$ apt-get build-dep iptables
$ apt-get build-dep source
$ wget https://launchpadlibrarian.net/104349144/xtables-lm-noasneeded.patch
$ cd iptables-1.4.12
$ quilt import ../xtables-lm-noasneeded.patch
$ quilt push -a
$ dpkg-buildpackage -b
$ cd ..
$ sudo dpkg -i iptables_1.4.12-1ubuntu4_amd64.deb
$ echo "iptables hold" | sudo dpkg --set-selections

 

https://bugs.launchpad.net/ubuntu/+source/iptables/+bug/982961

dpkg的用法

http://blog.sina.com.cn/s/blog_5d82f1530100b4u6.html

相关文章:

  • 2021-12-18
  • 2022-12-23
  • 2021-10-27
  • 2022-02-09
  • 2021-10-21
  • 2022-01-19
  • 2021-05-01
  • 2021-11-28
猜你喜欢
  • 2021-11-28
  • 2022-12-23
  • 2021-04-27
  • 2021-12-05
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
相关资源
相似解决方案