Skip to content

[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

  1. 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.

2 points11 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
2 · 75% up
Kind
Text
ID
pykayw

Author

1
posts
3
comments
0
media
View profile

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 clone command 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-devel from the official repos.

Then open your terminal and install the package with makepkg as follows, after downloading the snapshot:

$ cd $HOME/Downloads (assuming this is where it got downloaded)
$ tar xf mdbtools.tar.gz
$ cd mdbtools
$ makepkg -sri

The -s flag installs any dependencies you may need from the official repos, -r removes the dependencies you don't need afterward, and -i will run pacman -U for 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).

0 points

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.

3 points

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?

1 points

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.

1 points

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.

-6 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.