如何在20.04焦点中安装Steam

use*_*730 5 steam

steam-installer尝试使用 Ubuntu 软件进行安装,得到了这个非常有用的错误:

\n

在此输入图像描述

\n

然后我尝试了命令行:

\n
$ sudo apt install steam-installer\n\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n steam-installer : Depends: steam (= 1:1.0.0.61-2ubuntu3)\nE: Unable to correct problems, you have held broken packages.\n
Run Code Online (Sandbox Code Playgroud)\n

所以steam-installer依赖steam,无法解决!什么?Ubuntu Steam 软件包是否已损坏?

\n

更新:

\n
$ sudo apt update\nHit:1 http://mx.archive.ubuntu.com/ubuntu focal InRelease                                                           \nHit:2 http://mx.archive.ubuntu.com/ubuntu focal-updates InRelease                                                   \nHit:3 http://security.ubuntu.com/ubuntu focal-security InRelease\nHit:4 http://mx.archive.ubuntu.com/ubuntu focal-backports InRelease\nReading package lists... Done\nBuilding dependency tree       \nReading state information... Done\n6 packages can be upgraded. Run \'apt list --upgradable\' to see them.\n$ sudo apt upgrade\nReading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nCalculating upgrade... Done\nThe following packages will be upgraded:\n  libssl1.1 openssl python3-software-properties software-properties-common software-properties-gtk\n  ubuntu-advantage-tools\n6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 2\xe2\x80\xaf902 kB of archives.\nAfter this operation, 13.3 kB of additional disk space will be used.\nDo you want to continue? [Y/n] \nGet:1 http://mx.archive.ubuntu.com/ubuntu focal-updates/main amd64 libssl1.1 amd64 1.1.1f-1ubuntu2.10 [1\xe2\x80\xaf322 kB]\nGet:2 http://mx.archive.ubuntu.com/ubuntu focal-updates/main amd64 openssl amd64 1.1.1f-1ubuntu2.10 [620 kB]\nGet:3 http://mx.archive.ubuntu.com/ubuntu focal-updates/main amd64 ubuntu-advantage-tools amd64 27.4.2~20.04.1 [859 kB]\nGet:4 http://mx.archive.ubuntu.com/ubuntu focal-updates/main amd64 software-properties-common all 0.99.9.8 [10.6 kB]\nGet:5 http://mx.archive.ubuntu.com/ubuntu focal-updates/main amd64 software-properties-gtk all 0.99.9.8 [66.0 kB]\nGet:6 http://mx.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-software-properties all 0.99.9.8 [24.9 kB]\nFetched 2\xe2\x80\xaf902 kB in 4s (661 kB/s)                      \nPreconfiguring packages ...\n(Reading database ... 418427 files and directories currently installed.)\nPreparing to unpack .../0-libssl1.1_1.1.1f-1ubuntu2.10_amd64.deb ...\nUnpacking libssl1.1:amd64 (1.1.1f-1ubuntu2.10) over (1.1.1f-1ubuntu2.9) ...\nPreparing to unpack .../1-openssl_1.1.1f-1ubuntu2.10_amd64.deb ...\nUnpacking openssl (1.1.1f-1ubuntu2.10) over (1.1.1f-1ubuntu2.9) ...\nPreparing to unpack .../2-ubuntu-advantage-tools_27.4.2~20.04.1_amd64.deb ...\nUnpacking ubuntu-advantage-tools (27.4.2~20.04.1) over (27.4.1~20.04.1) ...\nPreparing to unpack .../3-software-properties-common_0.99.9.8_all.deb ...\nUnpacking software-properties-common (0.99.9.8) over (0.98.9.5) ...\nPreparing to unpack .../4-software-properties-gtk_0.99.9.8_all.deb ...\nUnpacking software-properties-gtk (0.99.9.8) over (0.98.9.5) ...\nPreparing to unpack .../5-python3-software-properties_0.99.9.8_all.deb ...\nUnpacking python3-software-properties (0.99.9.8) over (0.98.9.5) ...\nSetting up libssl1.1:amd64 (1.1.1f-1ubuntu2.10) ...\nSetting up python3-software-properties (0.99.9.8) ...\nSetting up ubuntu-advantage-tools (27.4.2~20.04.1) ...\nSetting up openssl (1.1.1f-1ubuntu2.10) ...\nSetting up software-properties-common (0.99.9.8) ...\nSetting up software-properties-gtk (0.99.9.8) ...\nProcessing triggers for dbus (1.12.16-2ubuntu2.1) ...\nProcessing triggers for shared-mime-info (1.15-1) ...\nProcessing triggers for desktop-file-utils (0.24-1ubuntu3) ...\nProcessing triggers for mime-support (3.64ubuntu1) ...\nProcessing triggers for hicolor-icon-theme (0.17-2) ...\nProcessing triggers for gnome-menus (3.36.0-1ubuntu1) ...\nProcessing triggers for libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.4) ...\nProcessing triggers for libc-bin (2.31-0ubuntu9.3) ...\nProcessing triggers for man-db (2.9.1-1) ...\n
Run Code Online (Sandbox Code Playgroud)\n

更新2:

\n
$ sudo apt install steam\nReading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n steam:i386 : Depends: libgl1-mesa-dri:i386 (>= 17.3) but it is not going to be installed or\n                       libtxc-dxtn0:i386 but it is not installable\n              Depends: libgl1-mesa-glx:i386 but it is not going to be installed\n              Depends: libgpg-error0:i386 (>= 1.10) but it is not going to be installed\n              Depends: libudev1:i386 but it is not going to be installed\n              Depends: libxcb-dri3-0:i386 (>= 1.11.1) but it is not going to be installed\n              Depends: libxinerama1:i386 (>= 2:1.1.1) but it is not going to be installed\n              Depends: libc6:i386 (>= 2.15) but it is not going to be installed\n              Depends: libstdc++6:i386 (>= 4.8) but it is not going to be installed\n              Depends: libx11-6:i386 but it is not going to be installed\n              Recommends: libxss1:i386 but it is not going to be installed\n              Recommends: mesa-vulkan-drivers:i386 but it is not going to be installed\nE: Unable to correct problems, you have held broken packages.\n
Run Code Online (Sandbox Code Playgroud)\n

来源.列表:

\n
#deb cdrom:[Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/ focal main restricted\n\n# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to\n# newer versions of the distribution.\ndeb http://mx.archive.ubuntu.com/ubuntu/ focal main restricted\n# deb-src http://mx.archive.ubuntu.com/ubuntu/ focal main restricted\n\n## Major bug fix updates produced after the final release of the\n## distribution.\ndeb http://mx.archive.ubuntu.com/ubuntu/ focal-updates main restricted\n# deb-src http://mx.archive.ubuntu.com/ubuntu/ focal-updates main restricted\n\n## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu\n## team. Also, please note that software in universe WILL NOT receive any\n## review or updates from the Ubuntu security team.\ndeb http://mx.archive.ubuntu.com/ubuntu/ focal universe\n# deb-src http://mx.archive.ubuntu.com/ubuntu/ focal universe\ndeb http://mx.archive.ubuntu.com/ubuntu/ focal-updates universe\n# deb-src http://mx.archive.ubuntu.com/ubuntu/ focal-updates universe\n\n## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu \n## team, and may not be under a free licence. Please satisfy yourself as to \n## your rights to use the software. Also, please note that software in \n## multiverse WILL NOT receive any review or updates from the Ubuntu\n## security team.\ndeb http://mx.archive.ubuntu.com/ubuntu/ focal multiverse\n# deb-src http://mx.archive.ubuntu.com/ubuntu/ focal multiverse\ndeb http://mx.archive.ubuntu.com/ubuntu/ focal-updates multiverse\n# deb-src http://mx.archive.ubuntu.com/ubuntu/ focal-updates multiverse\n\n## N.B. software from this repository may not have been tested as\n## extensively as that contained in the main release, although it includes\n## newer versions of some applications which may provide useful features.\n## Also, please note that software in backports WILL NOT receive any review\n## or updates from the Ubuntu security team.\ndeb http://mx.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse\n# deb-src http://mx.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse\n\n## Uncomment the following two lines to add software from Canonical\'s\n## \'partner\' repository.\n## This software is not part of Ubuntu, but is offered by Canonical and the\n## respective vendors as a service to Ubuntu users.\n# deb http://archive.canonical.com/ubuntu focal partner\n# deb-src http://archive.canonical.com/ubuntu focal partner\n\ndeb http://security.ubuntu.com/ubuntu focal-security main restricted\n# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted\ndeb http://security.ubuntu.com/ubuntu focal-security universe\n# deb-src http://security.ubuntu.com/ubuntu focal-security universe\ndeb http://security.ubuntu.com/ubuntu focal-security multiverse\n# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse\n\n# This system was installed using small removable media\n# (e.g. netinst, live or single CD). The matching "deb cdrom"\n# entries were disabled at the end of the installation process.\n# For information about how to configure apt package sources,\n# see the sources.list(5) manual.\n
Run Code Online (Sandbox Code Playgroud)\n

我想我从来没有摆弄过这个。

\n

Org*_*ble 4

你正在走一条只会导致痛苦的路。

从Steam网站下载并安装官方包。https://store.steampowered.com/

当您这样做时,它将安装该软件包steam-launcher并添加 ppasteampowered.org

第一次运行时,将安装一堆其他软件包:

Steam 需要安装以下附加软件包: libc6:amd64 libc6:i386 libegl1:amd64 libegl1:i386 libgbm1:amd64 libgbm1:i386 libgl1-mesa-dri:amd64 libgl1-mesa-dri:i386 libgl1:amd64 libgl1:i386 steam-libs- amd64:amd64 steam-libs-i386:i386 xdg-desktop-portal xdg-desktop-portal-gtk xterm

这些软件包有很多依赖项也需要安装。

既没有安装steam也没有steam-installer安装!

未来的更新将通过软件包系统自动处理。

  • 不,Ubuntu 软件没有损坏,问题不在于它对快照的关注。问题是商店本身是快照的,因此默认情况下,它只能访问用户的空间。当您选择直接从浏览器打开 .deb 时,而不是将其下载到“下载”文件夹中,浏览器会将其下载到快照无法访问的临时文件夹,因此会出错。 (3认同)