安装 Steam 时出错

安装 Steam 时出错

操作系统 - Ubuntu Mate 16.04 我猜我在安装上一个软件时更改了一些存储库路径。我应该怎么做才能重置它们?

通过终端安装时:

user@user:~$ sudo apt-get install steam
[sudo] password for user: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libqt5opengl5 libqt5printsupport5 linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  steam:i386
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/874 kB of archives.
After this operation, 2,662 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package steam:i386.
(Reading database ... 269250 files and directories currently installed.)
Preparing to unpack .../steam_1%3a1.0.0.48-1ubuntu3_i386.deb ...
dpkg: error processing archive /var/cache/apt/archives/steam_1%3a1.0.0.48-1ubuntu3_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 30
Installation terminated: Steam License Agreement was DECLINED.
Errors were encountered while processing:
 /var/cache/apt/archives/steam_1%3a1.0.0.48-1ubuntu3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

通过 Software Boutique 安装时

弹出以下提示

无法下载存储库信息

details: W:The repository 'http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu xenial Release' does not have a Release file.
W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
W:See apt-secure(8) manpage for repository creation and user configuration details.
E:Failed to fetch http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found,
E:Some index files failed to download. They have been ignored, or old ones used instead.

答案1

在 Ubuntu 16.04 Xenial Xerus 上安装 STEAM 的最简单方法是使用apt-get命令直接从 Ubuntu 的多元宇宙存储库获取安装的 steam:

sudo add-apt-repository multiverse && sudo apt-get update && sudo apt-get install steam

如果这不起作用:

sudo dpkg --add-architecture i386 && sudo apt-get update

sudo apt-get install wget gdebi libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libc6:i386

下载安装程序:

wget http://media.steampowered.com/client/installer/steam.deb

在下载位置找到安装程序并使用安装 steamgdebi

希望这可以帮助。

相关内容