AUR Permission denied (publickey)

Hello everyone,

When I try to install anything from AUR with yay I get this Error:

And when I use paru i get this error:

Can anyone please help me wit this?

Edit: it is fresh install of EndeavourOS

1 Like

Try updating the arch mirrors first from the Welcome app.

1 Like

Hi, tried few times from different countries already.

1 Like

It looks like you are failing to connect to the AUR to download the PKGBUILD. That doesn’t look like a mirror issue to me.

Please don’t post screenshots of text output. Instead, copy/paste the text.

1 Like

Sorry:

:: Downloading PKGBUILDs…
error: command failed: /home/krzys/.cache/paru/clone: git clone --no-progress – ssh://aur@aur.archlinux.org/libpamac-git:
Cloning into ‘libpamac-git’…
aur@aur.archlinux.org: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Check you ~/.gitconfig. Looks like you are forcing git to clone via ssh rather than https or so.
For cloning via ssh, you need an AUR user account with a public key specified.

I do not have such file / directory.

What was your “paru command”? Did you accidentally use lowercase -s instead of -S maybe ?

1 Like

Why would it access to the AUR be so if it’s a fresh install of EOS?

Yes, I was just reading, some guy make same stupid mistake BUT I have another problem now. Paru instead of installing is just printing text in terminal:

: Proceed to review? [Y/n]: y

:: Downloading PKGBUILDs…
PKGBUILDs up to date
/home/krzys/.cache/paru/clone/auto-cpufreq/auto-cpufreq.service
[Unit]
Description=auto-cpufreq - Automatic CPU speed & power optimizer for Linux
After=network.target network-online.target

[Service]
Type=simple
User=root
ExecStart=/usr/bin/auto-cpufreq --daemon
[Install]
WantedBy=multi-user.target

/home/krzys/.cache/paru/clone/auto-cpufreq/auto-cpufreq.install
post_install() {
# This is needed on SELinux enabled systems (see also ConditionPathExists i>
touch /var/log/auto-cpufreq.log

echo ''
echo 'Enable auto-cpufreq daemon service at boot:'
echo 'systemctl enable --now auto-cpufreq'
echo ''
echo 'To view live log, run:'
echo 'auto-cpufreq --stats'
echo ''

}

post_upgrade() {
echo ‘’
echo ‘Reload systemd manager configuration:’
echo ‘systemctl daemon-reload’
echo ‘’
echo ‘Restart auto-cpufreq daemon service:’
echo ‘systemctl restart auto-cpufreq’
echo ‘’
}

post_remove() {
# Remove auto-cpufreq log file
rm /var/log/auto-cpufreq.log

# Remove auto-cpufreq's cpufreqctl binary
rm /usr/bin/cpufreqctl

# Restore original cpufreqctl binary if backup was made
if [ -f "/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
    mv /usr/bin/cpufreqctl.auto-cpufreq.bak /usr/bin/cpufreqctl
fi

}

/home/krzys/.cache/paru/clone/auto-cpufreq/.gitignore
*.tar
.tar.
*.jar
*.exe
*.msi
*.zip
*.tgz
*.log
.log.
*.sig

pkg/
src/

*.crt

Vim

Swap

[.].s[a-v][a-z]
!
.svg # comment out if you don’t need vector files
[.
]*.sw[a-p]
[.]s[a-rt-v][a-z]
[.
]ss[a-gi-z]
[._]sw[a-p]

Session

Session.vim
Sessionx.vim

Temporary

.netrwhist
*~

Auto-generated tag files

tags

Persistent undo

[._]*.un~

/home/krzys/.cache/paru/clone/auto-cpufreq/PKGBUILD

Maintainer: Zhanibek Adilbekov zhanibek.adilbekov@pm.me

pkgname=auto-cpufreq
pkgver=1.9.8
pkgrel=1
pkgdesc=“Automatic CPU speed & power optimizer”
arch=(‘any’)
url=“https://github.com/AdnanHodzic/auto-cpufreq”
license=(‘LGPL3’)
depends=(‘python-setuptools’ ‘python-distro’ ‘python-psutil’ ‘python-click’ 'dm>
optdepends=(
‘cpufreqctl: CPU Power Manager’
‘gnome-shell-extension-cpufreq: CPU Power Manager for GNOME Shell’
‘thermald: recommended to have running alongside by upstream’
)
makedepends=(‘python-pip’ ‘python-wheel’)
install=“$pkgname.install”
source=(“$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz” "$pkgname.servi>
src/

*.crt

Vim

Swap

[.].s[a-v][a-z]
!
.svg # comment out if you don’t need vector files
[.
]*.sw[a-p]
[.]s[a-rt-v][a-z]
[.
]ss[a-gi-z]
[._]sw[a-p]

Session

Session.vim
Sessionx.vim

Temporary

.netrwhist
*~

Auto-generated tag files

tags

Persistent undo

:

That is the review of the files. You can press q to exit when you are done reviewing.

Wow sorry. I was using paru yesterday. I had to had some massive brain fog today. Thank you very much for your help.

1 Like

@Primera

Welcome to the EndeavourOS forum. I hope you enjoy your time here.

Glad you got your problem resolved.

Pudge

Please in the future provide the ENTIRE terminal output and your entire input. It’s much easier to help and make sure you’re running the correct command.

Glad it’s solved.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.