由于 32 位库“缺失”,无法安装 steam

由于 32 位库“缺失”,无法安装 steam

我刚刚安装了 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 还很陌生,只知道最基础的知识。我发现安装这些库可以解决这个问题,但我还没有找到任何方法。

答案1

这不是“缺少库”的问题,而是“存储库镜像失效”的问题 - 也就是说,np.archive.ubuntu.com目前镜像服务器已失效。因此,您的系统无法获取更新的软件包列表来确定您所需的软件包是否可用。

临时解决方法

以管理员身份进入您的/etc/apt/sources.list文件(例如使用终端上的命令行编辑器),并将所有引用替换为pkexec gedit /etc/apt/sources.list指向Canonical /Ubuntu 上的主要存档镜像。sudo nano /etc/apt/sources.listnp.archive.ubuntu.comarchive.ubuntu.com

然后运行sudo apt update并尝试再次安装 Steam。它应该可以正常工作,但它不会是更“区域性”的镜像,因此您的下载速度可能会有所降低。


np.archive.ubuntu.com 上的修复已完成,感谢 Mirrors 团队!

目前,有问题的镜像已重定向到主存档镜像,因为区域镜像指向的唯一镜像已失效。截至 UTC 时间 13:45 左右编辑此帖子,此操作应在过去 25 分钟左右生效。因此,除非您的系统中存在任何过时的 DNS 解析记录,否则np.archive.ubuntu.com现在应该指向正常工作的镜像。

(历史信息仍保留在下面。)

https://rt.ubuntu.com/Ticket/Display.html?id=35715在 Ubuntu RT 票务系统上(感谢镜像团队向我推荐这个),np.archive.ubuntu.com 镜像(实际上从 ubuntu.ntc.net.np 运行)已经停机一天多了。

我今天催促了镜像人员,他们将在白天的某个时间点将此 DNS 重新指向 Ubuntu 命名空间中的存档镜像,但目前还没有预计到达时间。

相关内容