Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
christarazi opened this issue Nov 20, 2023 · 2 comments

Comments

@christarazi
Copy link

aura >>= Building python-pipenv-git...
Cloning into bare repository '/var/cache/aura/vcs/python-pipenv-git/python-pipenv-git/python-pipenv-git'...
git@github.com: 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 git@github.com in my regular shell, I can see that GitHub accepts the authentication. If I do env -i -- ssh -vT git@github.com, 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?

@fosskers
Copy link
Owner

fosskers commented Nov 21, 2023

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants