aura icon indicating copy to clipboard operation
aura copied to clipboard

`aura` returns `Permission denied (publickey)` when fetching packages from AUR

Open christarazi opened this issue 2 years ago • 2 comments

aura >>= Building python-pipenv-git...
Cloning into bare repository '/var/cache/aura/vcs/python-pipenv-git/python-pipenv-git/python-pipenv-git'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
==> ERROR: Failure while downloading python-pipenv-git git repo
    Aborting...

aura >>= There was a makepkg failure.

I am running aura like

sudo -E aura --hotedit --aursync --delmakedeps --noconfirm --sysupgrade

If I run ssh -vT [email protected] in my regular shell, I can see that GitHub accepts the authentication. If I do env -i -- ssh -vT [email protected], then I get the same message as the above.

It seems that aura is clobbering other environment variables which are relevant to my SSH authentication. Any advice here?

christarazi avatar Nov 20 '23 20:11 christarazi

Hi, thanks for the report. sudo -E has traditionally not worked very well. As an initial experiment, would you be willing to try the alpha of the next major version of Aura? It handles sudo in a different way, likely avoiding environment variable problems related to git.

Note that an explicit sudo isn't necessary with the new version. The equivalent command would be:

aura --aursync --delmakedeps --sysupgrade

or just

aura -Aua

Looking at aura -Ah it seems I haven't yet ported --noconfirm for -A. I will make that a priority.

fosskers avatar Nov 21 '23 01:11 fosskers

I just released 4.0.0-alpha10 which provides --noconfirm for -A.

fosskers avatar Nov 26 '23 09:11 fosskers

Hi there, as this should not longer be occurring, I'm going to close this issue. Aura 4 will be released soon.

fosskers avatar Jun 27 '24 20:06 fosskers