0

我有一个带有一个控制平面和两个工作节点的 KIND 集群。在工作节点上,我想安装和调试 nftables。

当我尝试列出规则时,我看到以下错误

root@worker:/# nft list ruleset
nft: error while loading shared libraries: libnftables.so.1: cannot open shared object file: No such file or directory

当我尝试安装 nftables 及其依赖项时,我看到以下错误。

root@-worker:/# apt-get install nftables
Reading package lists... Done
Building dependency tree
Reading state information... Done
nftables is already the newest version (0.9.8-3).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 nftables : Depends: libnftables1 (= 0.9.8-3) but it is not installable
            Depends: libedit2 (>= 3.1-20130611-0) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
4

1 回答 1

0

错误说 nftables 已经安装。修复您的 apt 软件包,然后尝试卸载并安装 nftables

修复 apt : apt-get update –fix-missing

于 2021-05-26T20:03:56.940 回答