我刚刚从 Fedora 39 升级到 Fedora 40,但问题仍然存在。
当我尝试安装某些包时,出现错误,提示无法连接到镜像服务器。
我认为我以某种方式破坏了信任网站或类似东西的证书。
你知道我该如何解决这个问题吗?
示例命令输出:
[user@g6 test]$ virtualbox
bash: virtualbox: command not found...
Install package 'VirtualBox' to provide command 'virtualbox'? [N/y] y
* Waiting in queue...
* Loading list of packages....
* Downloading details about the software repositories....
* Loading list of packages....
The following packages have to be installed:
VirtualBox-7.0.16-1.fc40.x86_64 A general-purpose full virtualizer for PC hardware
VirtualBox-kmodsrc-7.0.16-1.fc40.noarch VirtualBox kernel module source code
VirtualBox-server-7.0.16-1.fc40.x86_64 core part (host server) for VirtualBox
akmod-VirtualBox-7.0.16-1.fc40.x86_64 Akmod package for VirtualBox kernel module(s)
liblzf-3.6-28.fc40.x86_64 Small data compression library
Proceed with changes? [N/y] y
* Waiting in queue...
* Waiting for authentication...
* Waiting in queue... Failed to install packages: Curl error (7): Couldn't connect to server for https://mirrors.fedoraproject.org/metalink?repo=fedora-40&arch=x86_64 [Failed to connect to 127.0.0.1 port 27015 after 0 ms: Couldn't connect to server]
答案1
它可以是/etc/hosts
将 Fedora 网页重定向到本地 IP 地址的文件。只需删除错误地重定向所有通信的条目即可。