„Cannot run as root user“ Error

I installed Steam on my Raspi but now, if I try to run it, I get an Error witch says „Cannot run as root user“. If i am using another User, I get

bin_steam.sh[1797]: Setting up Steam content in /root/.local/share/Steam
mkdir: cannot create directory ‘/root’: Permission denied

Anyone ideas what i could try to fix?

Required Information

  • DietPi version | G_DIETPI_VERSION_CORE=9
    G_DIETPI_VERSION_SUB=0
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’
  • Distro version | bookworm 0
  • Kernel version | Linux DietPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
  • Architecture | arm64
  • SBC model | rpi4b

Additional Information (if applicable)

  • Software title | Steam
  • Software was installed newly.

How did you install it?
You can try to modify the bin_steam.sh script to change the path to something the non-root user can write to.

I first tried installing from the default repo, but that wouldn’t work.
So I tried Installing it via importing the Steam repository:

curl -s http://repo.steampowered.com/steam/archive/stable/steam.gpg | sudo tee /usr/share/keyrings/steam.gpg > /dev/null

echo deb [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] Steam for Linux - launcher stable steam | sudo tee /etc/apt/sources.list.d/steam.list

sudo apt update

sudo apt install \steam-launcher

I will try to modify the bin_steam.sh.
Thank you for the suggestion.

Edit: now I get different issues with Steam. It’s not worth the hustle for me. But still thank you for helping. :slight_smile:

I wondered that Steam is now available on ARM, but it is not. This is the problem here.

At least from our side we have it available on AMRv7 (32bit) only, software ID 156. However, it would require Box86 on ARM based systems.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.