Iptables-persistent package fails to install on Ubuntu 12.04

From Notes_Wiki
Revision as of 10:48, 29 April 2015 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>Troubleshooting_Ubuntu_specific_issues|Troubleshooting Ubuntu specific issues</yambe:breadcrumb> =iptables-persistent package fails to install on Ubuntu 12.0...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>Troubleshooting_Ubuntu_specific_issues|Troubleshooting Ubuntu specific issues</yambe:breadcrumb>

iptables-persistent package fails to install on Ubuntu 12.04

To reproduce the problem (at least at the time of writing) use:

  1. sudo apt-get update
  2. sudo apt-get -y install iptables-persistent

To solve the problem use:

sudo sed -i 's/\(modprobe -q ip6\?table_filter\)/\1 || true/g' /var/lib/dpkg/info/iptables-persistent.postinst; sudo apt-get install iptables-persistent

Learned from https://forum.linode.com/viewtopic.php?t=9070&p=58732