update-alternatives:错误:未注册的arptables的/ usr / sbin / arptables-legacy;没有设置 [英] update-alternatives: error: alternative /usr/sbin/arptables-legacy for arptables not registered; not setting

查看:837
本文介绍了update-alternatives:错误:未注册的arptables的/ usr / sbin / arptables-legacy;没有设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Buster主机上安装了Debian 10(Buster)KVM客户机。尝试在遵循 Debian Wiki <的VM上切换到旧版 iptables / a>

I've Debian 10 (Buster) KVM guest machines on a Buster host. Trying to switch to the legacy iptables on VMs following Debian wiki

update-alternatives --set iptables /usr/sbin/iptables-nft
update-alternatives --set ip6tables /usr/sbin/ip6tables-nft
update-alternatives --set arptables /usr/sbin/arptables-nft
update-alternatives --set ebtables /usr/sbin/ebtables-nft

其他三项成功的同时, arptables 更新失败,消息

While other three succeeds, arptables update fails with the message

update-alternatives: error: alternative /usr/sbin/arptables-legacy for arptables not registered; not setting

是否有解决方法?

如果您感到好奇,则来宾计算机是使用kubeadm启动的Kubernetes(v1.18)集群的节点。网络插件是 Calico 。除 MetalLB 控制器错误外,所有内容均使用默认的 nftables 设置

If you're curious, guest machines are nodes of a Kubernetes (v1.18) cluster initiated with kubeadm. Network plugin is Calico. Everything works with default nftables settings except that MetalLB controller errors

 1 reflector.go:125] pkg/mod/k8s.io/client-go@v0.0.0-20190620085101-78d2af792bab/tools/cache/reflector.go:98: Failed to list *v1.ConfigMap: Get https://10.96.0.1:443/api/v1/namespaces/metallb-system/configmaps?fieldSelector=metadata.name%3Dconfig&limit=500&resourceVersion=0: dial tcp 10.96.0.1:443: i/o timeout

何时我从来宾VM ping 10.96.0.1 ,我得到

When I ping 10.96.0.1 from guest VM, I get

PING 10.96.0.1 (10.96.0.1) 56(84) bytes of data.
From 94.157.208.1 icmp_seq=1 Packet filtered
From 94.157.208.1 icmp_seq=2 Packet filtered
...

--- 10.96.0.1 ping statistics ---
7 packets transmitted, 0 received, +7 errors, 100% packet loss, time 15ms


推荐答案

首先,您需要安装旧版软件包:

At first you need to install legacy packages:

sudo apt-get install -y iptables arptables ebtables

然后更新替代方法:

sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
sudo update-alternatives --set arptables /usr/sbin/arptables-legacy
sudo update-alternatives --set ebtables /usr/sbin/ebtables-legacy

这篇关于update-alternatives:错误:未注册的arptables的/ usr / sbin / arptables-legacy;没有设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆