LukeSmithxyz / LARBS

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

Failed to install AUR helper #464

Closed fzxn closed 2 years ago

fzxn commented 2 years ago

Error on fresh Arch installation. Followed all steps (made sure I had an internet connection, everything updated and Arch keys refreshed)

Everything goes well until yay installation then it gives this error:

sudo: gitclonefast: command not found fatal: not a git repository (nor any parent on mount point /) Stopping at file system border (GIT_DISCOVERY_ACROSS_FILESYSTEM not set) Failed to install AUR helper.

(I'm sorry if this isn't the actual translation, locale was set to spanish in archinstall and the error was in spanish)

Edit: Tried to move the install script from /root to /, also uncommenting %wheel in the sudeors files and it still fails to install an AUR helper.

LorenzoCesana commented 2 years ago

A quick workaround is to manually install yay (https://www.makeuseof.com/install-and-use-yay-arch-linux/) and comment from line 91 to 104 (included) and line 209 (sorry for the junky workaround but I don't have time now to troubleshoot)

jdedde commented 2 years ago

@fzxn Clone this repo: git clone https://github.com/LukeSmithxyz/larbs Then roll it back to a working version: cd /path/to/larbs git checkout bacb711 Edit: Just to be crystal clear, be sure you do sh larbs.sh On the repo you just cloned. It should work now. Edit: Regarding as to what is causing the error, it seems it's due by the new way larbs is downloading programs from git repos. The script kicks out at installing yay only because is the first one that needs git and not because it's the problem itself. This can be verified by checking than even if one were to install yay beforehand, the script will fail to install the others programs that require the use of git.

fzxn commented 2 years ago

Thank you both for the workarounds. I will reinstall Arch from scratch and try a normal larbs install and then the fixes if it keeps throwing out the same errors

LukeSmithxyz commented 2 years ago

Might be solved in #466 now, but I still haven't had time to test the whole script.

fzxn commented 2 years ago

So I did a fresh Arch install and used the archinstall script (like I did before). On the Additional Packages section I added git as package to install (alongside curl and nano). Then I ran the LARBS script again and it worked! Too bad I didn't try the workarounds mentioned but I hope they do work for other users.

Solution: Installed git before running the LARBS script.