[NOOB] [AUR] [QUESTION] Unable to perform git clone of aur.archlinux.org repository. Neither is yay able to connect to aur.archlinux.org
What exactly did you do ?
I was trying to download an aur package using yay.
What was the exact result ?
yay -S mdbtools
:: There are 3 providers available for mdbtools:
:: Repository AUR
- mdbtools 2) mdbtools-beta 3) mdbtools-git
Enter a number (default=1): 1
:: Checking for conflicts...
:: Checking for inner conflicts...
[Repo:1] unixodbc-2.3.9-1
[Aur:1] mdbtools-0.9.4-2
error cloning mdbtools: Cloning into 'mdbtools'...
fatal: unable to connect to aur.archlinux.org:
aur.archlinux.org[0: 2a01:4f9:c010:50::1]: errno=Permission denied
aur.archlinux.org[1: 95.216.144.15]: errno=No route to host
How did that result not meet your expectations ?
Usually it just connects and downloads the packages.
What actions did I perform for searching about the problem ?
Tried using git clone, the result is same as above.
Tried changing the network connection of my Laptop. The result is same.
Tried pinging aur.archlinux.org Was successfully able to ping.
Pacman is working perfectly.
I would be very thankful, if some help or guidance can be provided for resolving this error.
Edited 30 Sep 2021. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 2 · 75% up
- Kind
- Text
- ID
- pykayw
11 comments
The best way to build and install a package from the AUR, is to not use an AUR helper, at least until you understand the process.
If the
git clonecommand isn't working for you, try downloading the snapshot from your Web browser instead, then extract the tarball into the folder of your choice.If you haven't already, install
base-develfrom the official repos.Then open your terminal and install the package with
makepkgas follows, after downloading the snapshot:$ cd $HOME/Downloads(assuming this is where it got downloaded)$ tar xf mdbtools.tar.gz$ cd mdbtools$ makepkg -sriThe
-sflag installs any dependencies you may need from the official repos,-rremoves the dependencies you don't need afterward, and-iwill runpacman -Ufor your custom package once the compilation is complete.Once you've gotten the hang of compiling and installing packages with
makepkg, should you then consider using an AUR helper (if at all).Thanks for your kind reply. I performed the operation as you suggested and thanks to you I was able to make it work. The only problem is I am not able to clone any aur.archlinux.org git packages using https like. I keep getting this error.
fatal: unable to connect to aur.archlinux.org:aur.archlinux.org[0: 2a01:4f9:c010:50::1]: errno=Permission deniedaur.archlinux.org[1: 95.216.144.15]: errno=No route to host
I tried using http instead of https and I was able to clone. So I can't comprehend the problem.
Once again thanks for taking out time to help me. Thanks a lot.
The fact that we’re seeing mixed IPv6 (0:2a01…)and v4(95.216…) addresses in there make me think it’s dual-stack related. Try disabling IPv6 for your network interface so it has to run over v4 only?
You may want to check the subreddit for that issue; it may have already been answered.
Otherwise, feel free to post it as a new thread.
I would ditch yay and use aura.
One nice thing aura offers is the ability to snapshop your install state, and allow you to revert if need be.
And it handles both Arch (pacman) and the AUR nicely, using a similar command structure to pacman.