ubuntu iptables bug的修复方法

简介: 下面是出错的现象 # iptables -m RATEEST/lib/xtables/libxt_RATEEST.so: /lib/xtables/libxt_RATEEST.so: undefined symbol: logiptables v1.

下面是出错的现象

# 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

相关文章
|
9天前
|
Ubuntu
Ubuntu下载ISO镜像的方法
步骤 1:访问Ubuntu官方网站 打开浏览器,输入Ubuntu的官方网址:https://cn.ubuntu.com/download/desktop 接着,点击“Ubuntu Desktop”或你需要的Ubuntu版本。
65 6
|
2月前
|
监控 Ubuntu 安全
debian或Ubuntu中开启ssh允许root远程ssh登录的方法
在Debian或Ubuntu系统中启用root用户的SSH远程登录需要编辑SSH配置文件、设置root密码并重启SSH服务。虽然这可以在某些情况下提供便利,但必须注意安全性,通过使用强密码、限制IP访问、使用SSH密钥认证等方法来保护服务器的安全。
821 5
|
4月前
|
Ubuntu
Ubuntu修复-boot满了导致apt坏掉的问题
Ubuntu修复-boot满了导致apt坏掉的问题
|
5月前
|
Ubuntu 应用服务中间件 网络安全
Ubuntu 22.04环境下为Odoo开启80端口的方法
通过以上步骤,你应该能够在Ubuntu 22.04环境下为Odoo开启80端口。访问你的域名时,Nginx会将请求代理到Odoo,允许你通过80端口访问Odoo应用。
220 1
|
5月前
|
监控 Ubuntu Python
代码实现Ubuntu系统参数监控的方法
通过这种方式,你可以方便地对Ubuntu系统的关键参数进行实时监控,对系统性能分析和资源管理具有重要意义。
59 0
|
6月前
|
存储 Ubuntu Go
在Ubuntu 16.04上安装Go 1.6的方法
在Ubuntu 16.04上安装Go 1.6的方法
77 1
|
6月前
|
存储 Ubuntu Go
在Ubuntu 18.04上安装Go的方法
在Ubuntu 18.04上安装Go的方法
87 1
|
6月前
|
存储 Ubuntu Linux
在Ubuntu 14.04上安装Go 1.6的方法
在Ubuntu 14.04上安装Go 1.6的方法
100 1
|
6月前
|
Ubuntu Linux 持续交付
在Ubuntu 16.04上安装Docker Compose的方法
在Ubuntu 16.04上安装Docker Compose的方法
174 1
|
6月前
|
Ubuntu
ubuntu引导修复
ubuntu引导修复
84 0