Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install Steam on Ubuntu 24.04 on Ampere system #2693

Closed
3 tasks done
geerlingguy opened this issue Dec 14, 2024 · 9 comments
Closed
3 tasks done

Can't install Steam on Ubuntu 24.04 on Ampere system #2693

geerlingguy opened this issue Dec 14, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@geerlingguy
Copy link

geerlingguy commented Dec 14, 2024

Confirmations

What happened?

Steam won't install

Description

I tried installing Steam using Pi-Apps, but it ran into some packaging errors. I also did a full-upgrade again today after it suggested there were updates available, and the script still failed in the same way.

What are your system specs (run the following command in your terminal)?

OS: Ubuntu 24.04.1 LTS
OS architecture: 64-bit
Last updated Pi-Apps on: 12/13/2024
Latest Pi-Apps version: 12/13/2024
Kernel: aarch64 6.8.0-50-generic
Device model: Thelio Astra
Machine-id (hashed): f73b01da9b5e7df59e7ba0e7080c28a12a0e52c4
Cpu name: Neoverse-N1
Ram size: 514.29 GB
Language: en_US.UTF-8

(Recommended) Error log? Terminal output? Debug messages?

system76@thelio-astra:~$ ~/pi-apps/manage install Steam
Installing Steam...

Installing Box86...

armhf arcitecture already added...
Will install these packages: libcal3d12t64:armhf libcups2t64:armhf libcurl4t64:armhf libgtk2.0-0t64:armhf libgtk-3-0t64:armhf libpng16-16t64:armhf libsmpeg0t64:armhf libssl3t64:armhf libc6:armhf libstdc++6:armhf libx11-6:armhf libgdk-pixbuf2.0-0:armhf libjpeg62:armhf libopenal1:armhf osspd:armhf libvorbisfile3:armhf libudev1:armhf libsdl2-2.0-0:armhf libsdl2-image-2.0-0:armhf libsdl2-net-2.0-0:armhf libsdl2-ttf-2.0-0:armhf libsdl1.2debian:armhf libsdl-mixer1.2:armhf libsdl-image1.2:armhf libsdl-net1.2:armhf libsdl-sound1.2:armhf libsdl-ttf2.0-0:armhf libssh-gcrypt-4:armhf libgssapi-krb5-2:armhf libkrb5-3:armhf mesa-va-drivers:armhf libegl1:armhf libglx-mesa0:armhf libgl1:armhf libgles2:armhf 
Creating an empty apt-package to install the necessary apt packages...
It will be named: pi-apps-5f3374a7
Depends: libc6:armhf, libcal3d12t64:armhf, libcups2t64:armhf, libcurl4t64:armhf, libegl1:armhf, libgdk-pixbuf2.0-0:armhf, libgl1:armhf, libgles2:armhf, libglx-mesa0:armhf, libgssapi-krb5-2:armhf, libgtk2.0-0t64:armhf, libgtk-3-0t64:armhf, libjpeg62:armhf, libkrb5-3:armhf, libopenal1:armhf, libpng16-16t64:armhf, libsdl1.2debian:armhf, libsdl2-2.0-0:armhf, libsdl2-image-2.0-0:armhf, libsdl2-net-2.0-0:armhf, libsdl2-ttf-2.0-0:armhf, libsdl-image1.2:armhf, libsdl-mixer1.2:armhf, libsdl-net1.2:armhf, libsdl-sound1.2:armhf, libsdl-ttf2.0-0:armhf, libsmpeg0t64:armhf, libssh-gcrypt-4:armhf, libssl3t64:armhf, libstdc++6:armhf, libudev1:armhf, libvorbisfile3:armhf, libx11-6:armhf, mesa-va-drivers:armhf, osspd:armhf
Running sudo apt update...
Hit:1 https://ryanfortner.github.io/box64-debs/debian ./ InRelease
Get:2 https://nvidia.github.io/libnvidia-container/stable/deb/arm64  InRelease [1,477 B]
Get:3 https://itai-nelken.github.io/weekly-box86-debs/debian  InRelease [2,115 B]
Hit:4 https://download.docker.com/linux/ubuntu noble InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Hit:6 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
Hit:7 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Hit:8 https://ppa.launchpadcontent.net/obsproject/obs-studio/ubuntu noble InRelease
Hit:9 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Get:10 https://ppa.launchpadcontent.net/system76-dev/stable/ubuntu noble InRelease [18.1 kB]
Fetched 21.7 kB in 1s (15.2 kB/s)
7 packages can be upgraded. Run 'apt list --upgradable' to see them.
apt update complete.
Some packages can be upgraded. Please consider running sudo apt full-upgrade.
Installing the pi-apps-5f3374a7 package...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 libcolord2:armhf : Depends: libudev1:armhf (>= 196) but it is not going to be installed
 libdbus-1-3:armhf : Depends: libsystemd0:armhf but it is not going to be installed
 libpulse0:armhf : Depends: libsystemd0:armhf but it is not going to be installed
 libspa-0.2-modules:armhf : Depends: libsystemd0:armhf but it is not going to be installed
                            Depends: libudev1:armhf (>= 183) but it is not going to be installed
 pi-apps-5f3374a7 : Depends: libudev1:armhf
E: Unable to correct problems, you have held broken packages.
Apt finished.
Failed to install the packages!
The APT reported these errors:
E: Unable to correct problems, you have held broken packages.

Failed to install Box86!
◢◣Need help? Copy the ENTIRE terminal output or take a screenshot.
Please ask on Github: https://github.com/Botspot/pi-apps/issues/new/choose
Or on Discord: https://discord.gg/RXSTvaUvuu

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.


WARNING: apt does not have a stable CLI interface. Use with caution in scripts.


WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Box86 failed to install somehow!

Failed to install Steam!
◢◣Need help? Copy the ENTIRE terminal output or take a screenshot.
Please ask on Github: https://github.com/Botspot/pi-apps/issues/new/choose
Or on Discord: https://discord.gg/RXSTvaUvuu

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.


WARNING: apt does not have a stable CLI interface. Use with caution in scripts.


WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Note: I had originally tried installing Steam with Pi-Apps. Then ran into the above issues. So then I tried installing following Ampere's guide, and that had a similar issue when it came to box86's install_steam.sh script, so I tried Pi-Apps again. Might have screwed up some repos along the way...

I had originally considered I may have been on a 16 or 64K PAGE_SIZE, but I'm not, I'm back on the normal kernel:

system76@thelio-astra:~$ getconf PAGESIZE
4096
@Botspot
Copy link
Owner

Botspot commented Dec 14, 2024

It seems the real problem here is Box86 installation. Box86 from Pi-Apps is precompiled and uses multiarch to install many armhf packages for maximum compatibility with software you may want to run.

Here is the script that installs Box86 on ARM64 systems: https://github.com/Botspot/pi-apps/blob/master/apps/Box86/install-64
I recommend you start on line 61 and proceed with checking which armhf packages are installable, and which ones were causing these issues. This may boil down to packages in Ubuntu not supporting multiarch well. Once you figure out which armhf packages were preventing successful installation, try modifying the Box86 script in your local ~/pi-apps/apps/Box86 folder to remove the offending packages, then install Steam again. Report back on the results and if Steam works with the problematic armhf packages missing, then we could edit the script to make those ones optional.

@geerlingguy
Copy link
Author

geerlingguy commented Dec 14, 2024

mesa-va-drivers:armhf - works
libcal3d12t64:armhf - works

libcups2t64:armhf - doesn't work (see below)
The following packages have unmet dependencies:
 libdbus-1-3:armhf : Depends: libsystemd0:armhf but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

libcurl4t64:armhf - works

libgtk2.0-0t64:armhf - doesn't work (see below)
The following packages have unmet dependencies:
 libdbus-1-3:armhf : Depends: libsystemd0:armhf but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

libgtk-3-0t64:armhf - doesn't work (see below)
The following packages have unmet dependencies:
 libcolord2:armhf : Depends: libudev1:armhf (>= 196) but it is not going to be installed
 libdbus-1-3:armhf : Depends: libsystemd0:armhf but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

libpng16-16t64:armhf - works

libsmpeg0t64:armhf - doesn't work (see below)
The following packages have unmet dependencies:
 libpulse0:armhf : Depends: libdbus-1-3:armhf (>= 1.9.14) but it is not installable
                   Depends: libsystemd0:armhf but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

libssl3t64:armhf - works (already installed)

Then the install_packages command, all succeed except:

libudev1:armhf
...
The following packages have unmet dependencies:
 apt : Depends: libapt-pkg6.0t64 (>= 2.7.14build2) but it is not going to be installed
 init : PreDepends: systemd-sysv
 shim-signed : Depends: grub-efi-amd64-signed (>= 1.191~) but it is not installable or
                        grub-efi-arm64-signed (>= 1.191~) but it is not going to be installed or
                        base-files (< 12.3)
               Depends: grub-efi-amd64-signed (>= 1.187.2~) but it is not installable or
                        grub-efi-arm64-signed (>= 1.187.2~) but it is not going to be installed
               Depends: grub2-common (>= 2.04-1ubuntu24)
 util-linux : PreDepends: libudev1 (>= 183) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

libsdl2-2.0-0:armhf libsdl2-image-2.0-0:armhf libsdl2-net-2.0-0:armhf 
...
The following packages have unmet dependencies:
 libpulse0:armhf : Depends: libdbus-1-3:armhf (>= 1.9.14) but it is not installable
                   Depends: libsystemd0:armhf but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

libsdl1.2debian:armhf libsdl-mixer1.2:armhf libsdl-image1.2:armhf libsdl-net1.2:armhf libsdl-sound1.2:armhf
...
The following packages have unmet dependencies:
 libfluidsynth3:armhf : Depends: libdbus-1-3:armhf (>= 1.9.14) but it is not installable
 libpulse0:armhf : Depends: libdbus-1-3:armhf (>= 1.9.14) but it is not installable
                   Depends: libsystemd0:armhf but it is not going to be installed
 libspa-0.2-modules:armhf : Depends: libdbus-1-3:armhf (>= 1.9.14) but it is not installable
                            Depends: libsystemd0:armhf but it is not going to be installed
                            Depends: libudev1:armhf (>= 183) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

libsdl-ttf2.0-0:armhf
...
The following packages have unmet dependencies:
 libpulse0:armhf : Depends: libdbus-1-3:armhf (>= 1.9.14) but it is not installable
                   Depends: libsystemd0:armhf but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Will try updating the script to remove those packages and see how things work!

@geerlingguy
Copy link
Author

geerlingguy commented Dec 14, 2024

After removing all the above packages from the box86 install script, I get:

system76@thelio-astra:~/pi-apps/apps$ ~/pi-apps/manage install Steam
Installing Steam...

Installing Box86...

armhf arcitecture already added...
Will install these packages: libcal3d12t64:armhf libcurl4t64:armhf libpng16-16t64:armhf libssl3t64:armhf libc6:armhf libstdc++6:armhf libx11-6:armhf libgdk-pixbuf2.0-0:armhf libjpeg62:armhf libopenal1:armhf osspd:armhf libvorbisfile3:armhf libsdl1.2debian:armhf libssh-gcrypt-4:armhf libgssapi-krb5-2:armhf libkrb5-3:armhf mesa-va-drivers:armhf libegl1:armhf libglx-mesa0:armhf libgl1:armhf libgles2:armhf 
Creating an empty apt-package to install the necessary apt packages...
It will be named: pi-apps-5f3374a7
Depends: libc6:armhf, libcal3d12t64:armhf, libcurl4t64:armhf, libegl1:armhf, libgdk-pixbuf2.0-0:armhf, libgl1:armhf, libgles2:armhf, libglx-mesa0:armhf, libgssapi-krb5-2:armhf, libjpeg62:armhf, libkrb5-3:armhf, libopenal1:armhf, libpng16-16t64:armhf, libsdl1.2debian:armhf, libssh-gcrypt-4:armhf, libssl3t64:armhf, libstdc++6:armhf, libvorbisfile3:armhf, libx11-6:armhf, mesa-va-drivers:armhf, osspd:armhf
...
Installing the pi-apps-5f3374a7 package...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 libdbus-1-3:armhf : Depends: libsystemd0:armhf but it is not going to be installed
 libpulse0:armhf : Depends: libsystemd0:armhf but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Apt finished.
Failed to install the packages!

Maybe I missed one...

@geerlingguy
Copy link
Author

Yep! Missed removing libsdl1.2debian:armhf... Steam install process is getting further now, but hitting:

Installed Box64 successfully.
Will install these packages: libnss3:armhf libnm0:armhf libdbus-glib-1-2:armhf libnspr4:armhf libgudev-1.0-0:armhf libxtst6:armhf libsm6:armhf libice6:armhf libusb-1.0-0:armhf libnss3 libnm0 libdbus-glib-1-2 libudev1 libnspr4 libgudev-1.0-0 libxtst6 libsm6 libice6 libusb-1.0-0 libibus-1.0-dev 
Creating an empty apt-package to install the necessary apt packages...
It will be named: pi-apps-81a311c2
Depends: libdbus-glib-1-2, libdbus-glib-1-2:armhf, libgudev-1.0-0, libgudev-1.0-0:armhf, libibus-1.0-dev, libice6, libice6:armhf, libnm0, libnm0:armhf, libnspr4, libnspr4:armhf, libnss3, libnss3:armhf, libsm6, libsm6:armhf, libudev1, libusb-1.0-0, libusb-1.0-0:armhf, libxtst6, libxtst6:armhf
Running sudo apt update...
...
apt update complete.
Some packages can be upgraded. Please consider running sudo apt full-upgrade.
Installing the pi-apps-81a311c2 package...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 libdbus-1-3:armhf : Depends: libsystemd0:armhf but it is not installable
 libgudev-1.0-0:armhf : Depends: libudev1:armhf (>= 251) but it is not installable
 libnm0:armhf : Depends: libudev1:armhf (>= 183) but it is not installable
 libusb-1.0-0:armhf : Depends: libudev1:armhf (>= 183) but it is not installable
E: Unable to correct problems, you have held broken packages.
Apt finished.
Failed to install the packages!
The APT reported these errors:
E: Unable to correct problems, you have held broken packages.

Failed to install Steam!

The package hunt progresses...

@geerlingguy
Copy link
Author

In the Steam install-64 script, here were the trouble packages:

libgudev-1.0-0:armhf
libdbus-glib-1-2:armhf
libnm0:armhf
libusb-1.0-0:armhf

After removing those packages:

...
After this operation, 4,206 kB of additional disk space will be used.
Get:1 file:/tmp/pi-apps-local-packages ./ steam-launcher 1:1.0.0.81 [4,016 kB]
Get:2 /tmp/pi-apps-81a311c2.deb pi-apps-81a311c2 all 1.0 [652 B]
(dpkg-preconfigure:31402): Gtk-WARNING **: 13:57:40.969: cannot open display: 
debconf: unable to initialize frontend: Gnome
debconf: (DISPLAY problem?)
debconf: falling back to frontend: Dialog
(Reading database ... 221347 files and directories currently installed.)
Unpacking steam-launcher (1:1.0.0.81) ...
Unpacking pi-apps-81a311c2 (1.0) over (1.0) ...
Apt finished.
Package installation complete.
#!/bin/bash
export STEAMOS=1
export STEAM_RUNTIME=1
export DBUS_FATAL_WARNINGS=0
BOX64_LOG=1 BOX86_LOG=1 BOX64_TRACE_FILE=stderr BOX86_TRACE_FILE=stderr BOX64_EMULATED_LIBS=libmpg123.so.0 /usr/lib/steam/bin_steam.sh -no-cef-sandbox steam://open/minigameslist "$@"

rm -f /home/${USER}/Desktop/steam.desktop
Steam should be able to launch right now from the menu, but if it fails, try rebooting.

Installed Steam successfully.

@geerlingguy
Copy link
Author

I'm not in front of the computer and forgot to plug in my KVM, so I ran steam, and that seemed to work at least somewhat... but can't finish launching until I'm back in front of it or I plug in my display adapter :)

src/steamexe/updateui_xwin.cpp (341) : Could not open connection to X
src/steamexe/updateui_xwin.cpp (341) : Could not open connection to X
src/steamexe/main.cpp (1299) : failed to initialize update status ui, or create initial window
src/steamexe/main.cpp (1299) : failed to initialize update status ui, or create initial window
execl failed, errno 2

I'll make a diff of the changes I made so they can be documented here and no package is missed!

@geerlingguy
Copy link
Author

geerlingguy commented Dec 15, 2024

Steam is loading now:

Screenshot 2024-12-14 at 5 58 22 PM

However, when trying to launch after that first self-update:

Using native(wrapped) libjpeg.so.8
Using native(wrapped) libresolv.so.2
Look for __dn_expand in loaded elfs
Found symbol with version GLIBC_2.4, value = 0xebb2bb19
Look for __res_nquery in loaded elfs
Found symbol with version GLIBC_2.4, value = 0xebb30ff5
Error: Symbol XESetCopyEventCookie not found, cannot apply R_386_JMP_SLOT 0x6375a00c (0x1736) in /home/system76/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXi.so.6
Error: Symbol _XUnknownNativeEvent not found, cannot apply R_386_JMP_SLOT 0x6375a014 (0x1756) in /home/system76/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXi.so.6
Error: Symbol XESetWireToEventCookie not found, cannot apply R_386_JMP_SLOT 0x6375a030 (0x17c6) in /home/system76/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXi.so.6
Error: relocating Plt symbols in elf libXi.so.6
Error initializing needed lib libXi.so.6
Error loading one of needed lib
Error initializing needed lib libgdk-x11-2.0.so.0
Error loading one of needed lib
Error initializing needed lib libgtk-x11-2.0.so.0
Error loading one of needed lib
Error initializing needed lib libindicator.so.7
Error loading one of needed lib
Error initializing needed lib libappindicator.so.1
Warning: Cannot dlopen("libappindicator.so.1"/0x304ecafc, 102)
Error: PltResolver: Symbol dlmopen(ver 27: dlmopen@GLIBC_2.3.4) not found, cannot apply R_386_JMP_SLOT 0x306c9b98 (0x300294d6) in /home/system76/.local/share/Steam/ubuntu12_32/steam
Sigfault/Segbus while quitting, exiting silently

@geerlingguy
Copy link
Author

Well, in the process of trying to install a new copy of Ubuntu 24.04 Desktop, I now have a system that won't boot into Ubuntu, heh. Tried a full wipe of the disk and everything, but the installer fails halfway through, and results in a partition that doesn't boot. Working through that with Ampere/System76 now.

@geerlingguy
Copy link
Author

After finally getting a fresh new install of Ubuntu 24.04 set up... I can now install Steam directly, without having to mess with any packages, using Pi-Apps.

So... PEBKAC, but still—not sure why this happened in the first place. I was using a pre-installed version of Ubuntu from System76, maybe one of their packages/repos had tampered with something critical to all the armhf stuff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants