Steam Deck

Steam Deck

9ice Mar 27, 2022 @ 7:48pm
sudo: apt-get: command not found
I'm trying to set up ipvanish on my steam deck, but when IO reach the sudo section, it spits out "sudo: apt-get: command not found"
Here's the command I'm trying to run on it: "sudo apt-get install -y openvpn network-manager-openvpn network-manager-openvpn-gnome"
Originally posted by Der tüddelige Fußgänger:
Simply said. Apt is for debian and ubuntu

What you have to do is "sudo pacman -S firefox".
But it's a little bit more complicated to work with the read only partition so I'd recommend sticking with the app store
< >
Showing 1-15 of 18 comments
Hatchetforce Mar 27, 2022 @ 7:50pm 
You have to set a password before you can use sudo commands.

Here: https://help.steampowered.com/en/faqs/view/671A-4453-E8D2-323C

The default deck user is shipped with no password. This is a secure setting that prevents access via ssh, and can't be used to run commands via sudo.

If you’d like to set a password in order to run sudo commands, open a terminal window and set a secure password using the passwd command. At that point you will be able to use sudo anywhere elevation is required.
Last edited by Hatchetforce; Mar 27, 2022 @ 7:51pm
@R+5 Mar 27, 2022 @ 7:51pm 
avoid apt-get. steam os v3 is based in arch-linux: apt-get isnt there by default (thats for ubuntu-based os)

check how to install things in manjaro if you want to risk using command line (you will be using pacman and yay package managers mostly)

https://archlinux.org/packages/?q=openvpn

first you need to install yay with pacman, and then you will use yay to install openvpn. you should know its risky to make changes to the os, and that installing openvpn may risk having issues with connectivity.

you can try one of this:

sudo pacman -S yay sudo pacman -S openvpn

sudo pacman -S yay yay -S openvpn

yay is more useful to manage and autoinstall all dependencies from packages in the aur, which sometimes may work better than those available via pacman (ie will help you reduce the amount of manual changes)
Last edited by @R+5; Mar 27, 2022 @ 8:03pm
9ice Mar 27, 2022 @ 7:55pm 
Originally posted by Hatchetforce:
You have to set a password before you can use sudo commands.

Here: https://help.steampowered.com/en/faqs/view/671A-4453-E8D2-323C

The default deck user is shipped with no password. This is a secure setting that prevents access via ssh, and can't be used to run commands via sudo.

If you’d like to set a password in order to run sudo commands, open a terminal window and set a secure password using the passwd command. At that point you will be able to use sudo anywhere elevation is required.
I did, that's not the issue, should have clarified that the message comes after I put in the password I set
Hatchetforce Mar 27, 2022 @ 7:57pm 
Do other sudo apt get commands fail or just this package?
9ice Mar 27, 2022 @ 7:57pm 
Originally posted by Hatchetforce:
Do other sudo apt get commands fail or just this package?
all of them fail
Hatchetforce Mar 27, 2022 @ 8:01pm 
What about other sudo commands? If other sudo commands fail it may be a permissions issue. If you type sudo apt-get update it should ask you for your password to update repositories. That is a harmless way to check both sudo functionality and your password
@R+5 Mar 27, 2022 @ 8:02pm 
dude, apt-get isnt for arch.
Hatchetforce Mar 27, 2022 @ 8:06pm 
Originally posted by @R+5:
dude, apt-get isnt for arch.
Thanks for that info. Most of my time was, a long time ago, on Ubuntu :P
Hatchetforce Mar 27, 2022 @ 8:07pm 
Originally posted by @R+5:
dude, apt-get isnt for arch.
Does Arch and Steam OS use pacman instead?

EDIT: Just found this:
https://www.digitalocean.com/community/tutorials/how-to-use-arch-linux-package-management
Last edited by Hatchetforce; Mar 27, 2022 @ 8:08pm
@R+5 Mar 27, 2022 @ 8:12pm 
you can install apt-get, but is not something you want to do or use to install and manage packages in arch-based os. it can be messy, because it wasnt meant to be used with it.
Marlock Mar 27, 2022 @ 8:14pm 
there is an extra issue to remember:

SteamOS 3 on the Steam Deck ships as a read-only system, so using any package management will either fail (or maybe have only temporary results if it's at least the right one)

...unless the user enables developer mode, which is not ideal...

...or unless you use flatpaks (available by default in the Deck's desktop mode) or .appimage (works from any user folder so doesn't require write access to the read-only system parts)
Last edited by Marlock; Mar 27, 2022 @ 8:15pm
@R+5 Mar 27, 2022 @ 8:15pm 
Originally posted by Hatchetforce:
Does Arch and Steam OS use pacman instead?

yep, check my first answer. you can use manjaro tutorials as reference when you want to do things in desktop mode, but im not sure how risky it is, since the os wasnt meant to be modded heavily.
@R+5 Mar 27, 2022 @ 8:18pm 
Originally posted by Marlock:

...or unless you use flatpaks (available by default in the Deck's desktop mode) or .appimage (works from any user folder so doesn't require write access to the read-only system parts)

i will also advice against discovery and flatpaks: flatpaks may work, but will eat your disk space fast. AppImages, even if they are large files, can be placed in external disks and dont need to be integrated to the os, unless you want to.

i ignore if theres something like openvpn available as appimage, but i guess that may be available as flatpak
Last edited by @R+5; Mar 27, 2022 @ 8:19pm
◢ k r i s ◤ Mar 27, 2022 @ 8:55pm 
Archlinux has a very well documented wiki. If you're going to go hunting around the Internet for how to do Archlinux things on SteamOS, you should really always start with the !aw first.
https://wiki.archlinux.org/title/OpenVPN
SteamOS already deviates so much from Archlinux with it's read-only filesystem and intended purposes - the last thing you need to be doing is reading random articles that assume you're using Ubuntu or CentOS or something other than Arch - OR antiquated articles from 2013 about how to use pacman.
https://wiki.archlinux.org/title/Pacman
The author of this thread has indicated that this post answers the original topic.
Simply said. Apt is for debian and ubuntu

What you have to do is "sudo pacman -S firefox".
But it's a little bit more complicated to work with the read only partition so I'd recommend sticking with the app store
< >
Showing 1-15 of 18 comments
Per page: 1530 50

Date Posted: Mar 27, 2022 @ 7:48pm
Posts: 18