如何使用 rpm-ostree 在 Airgap Fedora IOT 上安装软件包

如何使用 rpm-ostree 在 Airgap Fedora IOT 上安装软件包

我已在离线服务器上安装了 Fedora IOT 38,并且正在尝试安装 RPM 软件包。但是,我遇到了以下错误:

# rpm-ostree install k3s-selinux-1.4-1.coreos.noarch.rpm
Checking out tree 5dcb22f... done
Enabled rpm-md repositories: fedora-cisco-openh264 updates fedora
Updating metadata for 'fedora-cisco-openh264'... done
error: Updating rpm-md repo 'fedora-cisco-openh264': cannot update repo 'fedora-cisco-openh264': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-38&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]; Last error: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-38&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]

任何绕过此错误的提示。

答案1

我必须像下面这样禁用存储库并且它可以工作

sed -i "s/enabled=1/enabled=0" /etc/yum.repos.d/*.repo

相关内容