this post was submitted on 06 Jul 2023
10 points (100.0% liked)

Linux

1259 readers
91 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I have a Steam Deck and I've been trying to install packages from AUR and have gotten nothing but endless errors trying to do so. The dependencies I want to install have dependencies which have dependencies which have dependencies.

So I've been having so many issues trying to install packages from AUR(or anywhere that isn't the discover store via konsole). I'm coming from Windows where everything is a simple GUI installer and everything is easy to install.

My experience with Linux has unfortunately been a bit of a nightmare. I'll search for a thread on how to install something, and generally the thread responses will have something akin to "just install it with yay or paru, then type this command".

In my experience it has never been that simple. Installing yay or paru first have multiple dependencies, which I'll run into numerous pacman errors, keyring errors, needing to add repos, etc.

Even worse, those dependencies have dependencies, which frequently then have a third or fourth level of recursion where those dependencies also have dependencies.

Something that I expected to take 2-5 minutes becomes a three to four hour nightmare of googling to find the various commands needed to get those installed, and then I'll hit an issue where something like an invalid signature prevents a fourth level dependency required to install the original package without a solution that I can find, which basically means I just wasted 3-4 hours of my time.

And that has happened at least 5 times at this point with various software/programs.

So, a Decky plugin which adds all the required repos, installs a GUI AUR package manager such as Pamac, updates and verifies all the package keyring files needed to install something from AUR, installs all the possible dependencies that could be needed for AUR packages, installs the needed base devel packages(using this command: pacman -S --needed git base-devel), fixes signature has unknown trust issues;

Optionally removes the requirement/need to type sudo in front of any command(which has to be toggled with multiple warnings to prevent inexperienced users from wantonly enabling it), runs: gpg --refresh-keys), runs these commands(pacman-key --init, pacman-key --populate, pacman-key --refresh-keys, pacman -Sy archlinux-keyring) and anything else needed to update the pacman keyring and keep it updated, removes the need to type -S after pacman to install packages from Konsole, easily toggles disabling the Steam OS read only file system;

Integrates the first togglable functionality in this repo's addon which prevents packages from being lost when Steam OS is updated, installs fakeroot using this command(sudo pacman -S fakeroot) and installs all the optional AUR helpers from AUR would genuinely be amazing and save me endless amounts of frustration.

This would simplify installing Linux packages so, so, so much and allow the experience to be much closer to Windows. I currently dual boot Windows because Linux is just such a nightmare for me to work with.

Even installing Pamac has basically been impossible for me(the AUR GUI package manager) due to the four levels of dependencies which have resulted in numerous errors and extra commands needed to run along the way, which has as mentioned before hit me with an unfixable error.

I would be ever so grateful if someone would develop a tool to get all of these automatically installed while avoiding all of the errors.

you are viewing a single comment's thread
view the rest of the comments
[–] circuitfarmer@lemmy.sdf.org 1 points 1 year ago* (last edited 1 year ago)

It seems like you're having a lot of issues -- it really shouldn't be working that way. Here's how I do it on desktop; should work on the Deck.

Do a pacman -Syu as others have suggested before installing anything new.

From terminal (X used for AUR package name):

  • Install auracle with pacman -S auracle; it's a utility to search and install from AUR easily.

  • auracle clone X will clone the project in the working directory.

  • auracle buildorder X will give you a list of dependencies needed to build it. If things say satisfied, you already have them.

  • install the dependencies with pacman -S. You can get fancy by echoing them to a file and using something like sed, or you can just type them manually.

  • cd into the directory you cloned and build the package with makepkg.

  • once done, hit up arrow until you see your installation line for those dependencies with pacman. Change that -S to a -Rs (remove them plus any dependencies installed with them).

  • install the package you just built with pacman -U name-of-package.zst.

  • profit

If this doesn't work for you, check where it doesn't work. It sounds like you may have an issue with pacman rather than the AUR.