今天我尝试安装 steam。Multiverse 存储库从一开始就可用。但使用命令sudo apt install steam
我得到的是
sudo apt-get install steam
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package steam 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 'steam' has no installation candidate
我一直在尝试安装 steam-installer,但是它需要安装,steam
所以无法工作。
我尝试过sudo dpkg --add-architecture i386
,但是也没有成功。
当然我用过sudo apt update
但是也没有帮助。
我该怎么办?当我尝试安装 wine 时也出现了非常类似的问题,我也无法安装。
以下是我从中获得的信息grep ^deb -r /etc/apt/ --include=*.list
:
/etc/apt/sources.list.d/phoerious-ubuntu-keepassxc-focal.list:deb http://ppa.launchpad.net/phoerious/keepassxc/ubuntu focal main
/etc/apt/sources.list.d/slack.list:deb https://packagecloud.io/slacktechnologies/slack/debian/ jessie main
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu focal main universe restricted multiverse
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu/ focal-security universe multiverse restricted main
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu focal-updates universe multiverse restricted main
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu focal-backports universe multiverse restricted main
答案1
在聊天过程中我们发现了以下情况:
由于某种原因,
sudo dpkg --add-architecture i386
第一次没有成功。所以我们运行了多次。为了重现结果,我们删除了本地软件列表,
sudo rm /var/lib/apt/lists/*
然后sudo apt-get update
再次运行。我们发现系统有两个适用于 amd64 的不同版本的 libc6 包(2.31-0ubuntu9.2来自官方存储库)和 i386(2.31-0ubuntu9.3来自一些本地来源),所以我们通过
sudo apt-get install libc6=2.31-0ubuntu9.2 libc6:i386=2.31-0ubuntu9.2
最后我们安装了 Steam
sudo apt-get install aptitude sudo aptitude install steam:i386