CentOS8 Cockpit 使用代理功能

问题描述

我刚刚在全新的 CentOS 8 上安装了 Cockpit。现在我正在尝试使用软件更新功能。 系统无法访问互联网,只能通过 HTTP/HTTPS 代理。 我修改了yum.conf/dnf.conf:

[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
proxy=https://xxx.xxx.xxx.xxx:3128

还有 /etc/profile:

PROXY_URL="https://xxx.xxx.xxx.xxx:3128"
export http_proxy="$PROXY_URL"
export https_proxy="$PROXY_URL"
export ftp_proxy="$PORXY_URL"

所以 dnf/yum 工作正常。

在驾驶舱中我仍然收到此错误

无法更新 repo 'epel-modular':无法下载 repomd.xml:无法 下载repodata/repomd.xml:所有镜像都试过了;最后一个错误:卷曲 错误 (7):无法连接到服务器 https://mirrors.fedoraproject.org/metalink?repo=epel-modular-8&arch=x86_64&infra=stock&content=centos [无法连接到 mirrors.fedoraproject.org 端口 443:连接 拒绝]

有什么方法可以告诉 cockpit 使用代理还是我遗漏了什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)