【问题标题】:how to install nftables and its dependencies inside docker container?如何在 docker 容器中安装 nftables 及其依赖项?
【发布时间】:2021-08-14 23:29:46
【问题描述】:

我有一个带有一个控制平面和两个工作节点的 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).

【问题讨论】:

  • 你试过apt --fix-broken install吗?

标签: docker kubernetes kind


【解决方案1】:

错误提示 nftables 已安装。 修复你的 apt 包,然后尝试卸载并安装 nftables

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-01-22
    • 2019-02-14
    • 1970-01-01
    • 1970-01-01
    • 2018-11-11
    • 2016-07-26
    • 2016-02-28
    相关资源
    最近更新 更多