首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >程序“iptables”目前尚未安装

程序“iptables”目前尚未安装
EN

Ask Ubuntu用户
提问于 2014-07-29 23:13:57
回答 3查看 26.4K关注 0票数 1

我是新手,所以我先道歉。

我正在尝试安装DansGuardian (我相信我已经安装了)并开始工作。为了让它正常工作,我需要通过iptables过滤应用程序的IP流量。在“让DansGuardian在Ubuntu上工作”页面中有适当的命令。我的问题是,系统告诉我,iptables目前还没有安装--这是错误的。我知道它是Ubuntu的主要防火墙服务。

我试过:

代码语言:javascript
复制
xyzzy@ubuntu:/usr/sbin$ iptables

The program 'iptables' is currently not installed.  
You can install it by typing:
sudo apt-get install iptables

所以:

代码语言:javascript
复制
sudo apt-get install iptables
Reading package lists... Done

Building dependency tree

Reading state information... Done

iptables is already the newest version.

The following package was automatically installed and is no longer required:

  thunderbird-globalmenu

Use 'apt-get autoremove' to remove them.

0 upgraded, 0 newly installed, 0 to remove and 342 not upgraded.

结果却被告知,我正在运行的版本是最新版本。

飞碟在跑。

EN

回答 3

Ask Ubuntu用户

回答已采纳

发布于 2014-07-30 00:36:35

对kraxor对原来问题的评论是肯定的:

您应该尝试通过执行以下命令重新安装iptables

代码语言:javascript
复制
sudo apt-get --reinstall install iptables
票数 2
EN

Ask Ubuntu用户

发布于 2014-07-30 00:39:22

一个接一个地试试

代码语言:javascript
复制
sudo apt-get remove iptables

sudo apt-get update

sudo apt-get install iptables

现在应该管用了。

票数 1
EN

Ask Ubuntu用户

发布于 2015-07-21 09:38:23

使用以下命令:

代码语言:javascript
复制
sudo apt-get update
sudo apt-get install iptables-persistent

它将为您安装iptables-persistent包。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/504351

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档