Can't download keyrings. key cannot be looked up remotely

Just moved from windows to manjaro and i cant seem to get package manager to work.

apps seem to download until it gets to the keys part and it fails.
i figured it was a keyring issue
i followed the pacman troubleshooting error of keys

but when i ran

mkdir -pv $HOME/.cache/pkg/ && sudo pacman -Syw archlinux-keyring manjaro-keyring --cachedir $HOME/.cache/pkg/

in the terminal it tells me

:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Some packages should be upgraded first...
resolving dependencies...
looking for conflicting packages...

Packages (1) archlinux-keyring-20220727-1

Total Installed Size:  1.55 MiB
Net Upgrade Size:      0.02 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [######################] 100%
downloading required keys...
:: Import PGP key 6D42BDD116E0068F, "Christian Hesse <eworm@archlinux.org>"? [Y/n] y
error: key "6D42BDD116E0068F" could not be looked up remotely
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

???

i did step 4, after step 5 and it said this

loading packages...
error: '/home/user/.cache/pkg/*.tar.zst': could not find or read package

went to manjaro system manager to make sure the clock is correct.
i did sudoedit /etc/pacman.conf and changed the siglevel to ‘Never’(yeah its risky but nothing was downloading)

how can i get the keys to get package manager to work?

i appriciate all the help! :smiley:

I’m not sure what that documentation is. Do you have a url?

But, take a look at:

You usually do (if you want to use pacman instead of pamac):
sudo pacman -Syu

if you just want to download, you append -w
sudo pacman -Syuw

This will download everything there is to be updated into
/var/cache/pacman/pkg
but not install it yet.

What you do not do is trying to install just one singe package
out of many that pacman wants to update.

Hi @corndog4life, and welcome!

I don’t know which guide you followed, but this doesn’t look right. Specifically, the

/home/user/

…part.

I’m pretty sure user in the above should be your actual username. It might have been generated from another command, but we have no way of knowing without more information.

In addition, I recommend rather using pamac for software installation and not pacman. My reasoning is simple: pamac just takes care of more things than pacman, especially on Manjaro, so it’s easier and better to use if you’re a newcomer.

Try the following to refresh the keys:

pamac --force-refresh update

Hope this helps!