Do you run flatpak update with or without sudo in your terminal?
linux4noobs
linux4noobs
Noob Friendly, Expert Enabling
Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.
Seeking Support?
- Mention your Linux distro and relevant system details.
- Describe what you've tried so far.
- Share your solution even if you found it yourself.
- Do not delete your post. This allows other people to see possible solutions if they have a similar problem.
- Properly format any scripts, code, logs, or error messages.
- Be mindful to omit any sensitive information such as usernames, passwords, IP addresses, etc.
Community Rules
- Keep discussions respectful and amiable. This community is a space where individuals may freely inquire, exchange thoughts, express viewpoints, and extend help without encountering belittlement. We were all a noob at one point. Differing opinions and ideas is a normal part of discourse, but it must remain civil. Offenders will be warned and/or removed.
- Posts must be Linux oriented
- Spam or affiliate links will not be tolerated.
Without.
EDIT:
Just tested sudo flatpak update
and it returned the same results as the script (duh!). Thanks for the help!
There's something valueable to learn here. Seems like flatpak installs packages per user, meaning when you do
$sudo flatpak update
it runs as the root user, which probably doesn't have any packages installed.
Kind of a weird concept if you used Windows for a long time before switching to linux, where running as admin still used the same user account just with elevated privileges iirc
Edit: According to flathub running flatpak as root installs packages systemwide, otherwise they're installed on a per user basis. You should still keep the multi user thing I mentioned in your mind if you're used to windows
I didn’t think of it like that but it makes total sense!
Then you should do the same in the script. Remove the sudo in front of flatpak update -y
.