LukeSmithxyz / LARBS

Luke's Auto-Rice Bootstrapping Scripts: Installation Scripts for My Arch Linux Meta-Distribution
GNU General Public License v3.0
2.02k stars 797 forks source link

Failed to Install AUR Helper #559

Open whatsogingon1 opened 1 month ago

whatsogingon1 commented 1 month ago

I encountered an issue while running the installation script that prevented the installation of the AUR helper. I have tried several troubleshooting steps, but the problem persists. Here are the details of the issue:

Steps to Reproduce:

1.Run the installation script (larbs.sh).

  1. Observe the error message during the installation process.

In a completely fresh Artix installation "failed to install AUR helper" shows up. After using debug outputs i believe the error is building yay.

I've already checked permissions of the relevant files. Verified that the user has sufficient privileges (member of the wheel group). Tried reinstalling the AUR helper manually. Reviewed and adjusted the sudoers configuration. Gone on a few fresh Artix installs

I also recently just got this when I tried to do it again.

hint: Using 'master' as the name for the initial branch. This default branch name 
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will supress this warning, call: 
hint: 
hint: git config --global init.DefaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 
hint: 'development'. The just-created branch can be renamed via this command:
hint; 
hint: git branch -m <name>
Failed to install AUR helper.

I've already tried everything that is listed here on Github Publicly.

appeasementPolitik commented 1 month ago

Does #553 fix it?

The problem for me was that makepkg was complaining that it didn't work because of -D $repodir/$1", so I just removed that section in the manualinstall function, which fixed it. The user is already in the right directory at that point so that section shouldn't even be necessary anyway.