我刚刚安装了 Ubuntu 20.04.1 LTS 并安装了 Steam 启动器。当我运行它时,它会弹出。
Steam needs to install these additional packages:
libgl1-mesa-dri:i386, libgl1:i386, libc6:i386
[sudo] password for pukar:
..........W: Failed to fetch http://np.archive.ubuntu.com/ubuntu/dists/focal/InRelease Could not connect to np.archive.ubuntu.com:80 (120.89.98.2), connection timed out
W: Failed to fetch http://np.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Unable to connect to np.archive.ubuntu.com:http:
W: Failed to fetch http://np.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease Unable to connect to np.archive.ubuntu.com:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libc6:i386 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libcrypt1
Package libgl1:i386 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package libgl1-mesa-dri:i386 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libgl1-mesa-dri:i386' has no installation candidate
E: Package 'libgl1:i386' has no installation candidate
E: Package 'libc6:i386' has no installation candidate
Press return to continue:
我对 Linux 真的很陌生,只知道非常基础的知识。我发现安装这些库可以解决它,但我还没有找到任何方法。
这不是“缺少库”问题,而是“死存储库镜像”问题 - 即,
np.archive.ubuntu.com
现在指向死镜像服务器。因此,您的系统无法获取更新的软件包列表来确定您需要的软件包是否实际可用。临时解决方法:
以管理员身份进入您的
/etc/apt/sources.list
文件(例如使用pkexec gedit /etc/apt/sources.list
或sudo nano /etc/apt/sources.list
使用终端上的命令行编辑器),并用指向 Canonical/Ubuntu 的主存档镜像的所有引用np.archive.ubuntu.com
替换archive.ubuntu.com
。然后运行你的
sudo apt update
,然后再次尝试安装 Steam。然后它应该可以工作,尽管它不会是一个更“区域”的镜像,因此您的下载可能会在一定程度上变慢。对 np.archive.ubuntu.com 的修复已经完成,感谢 Mirrors 团队!
有问题的镜像现在被重定向到主存档镜像,因为区域镜像指向的唯一镜像已死。这应该在世界标准时间 ~13:45 对这篇文章进行编辑后的 25 分钟内生效。因此,除非系统中存在任何陈旧的 DNS 解析记录,
np.archive.ubuntu.com
否则现在应该指向工作镜像。(历史信息保留在下面。)
根据Ubuntu RT 票务系统上的https://rt.ubuntu.com/Ticket/Display.html?id=35715(感谢 Mirrors 团队将我推荐给我),np.archive.ubuntu.com 镜像(实际上是从 ubuntu.ntc.net.np 运行的)已经停机超过一天。
我今天刺激了 Mirrors 的人,他们将在一天中的某个时间将 DNS 重新指向 Ubuntu 命名空间中的存档镜像,目前还没有 ETA。