Cannot update to latest version, multiple errors

[ira ira]# sudo pacman-mirrors -f5 && pamac update
::INFO Downloading mirrors from repo.manjaro.or
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
… Japan : htp://ftp.tsukuba.wide.ad.jp/Linux/manjaro/
0.497 United_Kingdom : htps://mirror.cyberhost.uk/sites/manjaro/
0.273 Germany : htps://manjaro.moson.eu/
0.240 Germany : htp://manjaro.moson.eu/
1.956 New_Zealand : htp://manjaro.mirrors.theom.nz/
0.397 Austria : htps://mirror.easyname.at/manjaro/
0.249 Austria : htp://mirror.easyname.at/manjaro/
0.878 Austria : fp://mirror.easyname.at/manjaro/
::INFO Writing mirror list
::Germany : htts://manjaro.moson.eu/stable
::United_Kingdom : htps://mirror.cyberhost.uk/sites/manjaro/stable
::Austria : htps://mirror.easyname.at/manjaro/stable
::New_Zealand : ttp://manjaro.mirrors.theom.nz/stable
::Japan : htp://ftp.tsukuba.wide.ad.jp/Linux/manjaro/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
Synchronizing package databases…
cp: cannot stat ‘/tmp/pamac/dbs*/sync/*.files’: No such file or directory
Error: Failed to synchronize any databases: unable to lock database

deleted some bits from the links since again, the forums doesnt allow me to post links

[ira ira]# sudo pacman-mirrors --fasttrack 5
::INFO Downloading mirrors from repo.manjaro.og
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
0.263 Germany : htps://manjaro.moson.eu/
0.234 Germany : htp://manjaro.moson.eu/
0.256 Australia : htps://manjaro.lucassymons.net/
0.894 United_States : htps://mirror.math.princeton.edu/pub/manjaro/
0.534 Germany : htps://mirror.moson.org/manjaro/
0.235 Germany : htp://mirror.moson.org/manjaro/
0.427 Global : htps://mirrors.manjaro.org/repo/
0.284 Global : htp://mirrors.manjaro.org/repo/
::INFO Writing mirror list
::Germany : htps://manjaro.moson.eu/stable
::Germany : hps://mirror.moson.org/manjaro/stable
::Australia : htps://manjaro.lucassymons.net/stable
::Global : htps://mirrors.manjaro.org/repo/stable
::United_States : htps://mirror.math.princeton.edu/pub/manjaro/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist

what now?

1 Like

unlock your db:
sudo rm /var/lib/pacman/db.lck
sudo pacman-mirrors -f5 && pamac update

:INFO Writing mirror list
::Germany : htps://mirror.moson.org/manjaro/stable
::Germany : htps://mirror.alpix.eu/manjaro/stable
::Global : htps://mirrors.manjaro.org/repo/stable
::Austria : htps://mirror.easyname.at/manjaro/stable
::United_States : htts://mirror.math.princeton.edu/pub/manjaro/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
Synchronizing package databases…
cp: cannot stat ‘/tmp/pamac/dbs*/sync/*.files’: No such file or directory
Starting full system upgrade…
Warning: mhwd-nvidia: local (1:418.43-1) is newer than extra (515.48.07-2)
Resolving dependencies…
Choose a provider for libjack.so=0-64:
1: jack2 1.9.21-1 extra
2: pipewire-jack 1:0.3.52-1 extra

Enter a number (default=1):

this is different, do i proceed?

it looks like it worked… press 1

I recommend this instead. It just catches more things, like AUR updates and so on as well:

pamac upgrade --enable-downgrade --aur --devel

Total download size: 1.8 GB
Total installed size: 2.2 GB
Total removed size: 45.2 MB
Commit transaction ? [y/N] y
Resolving dependencies…
Checking inter-conflicts…

Checking keyring… [3/3]
Downloading required keys…
Error: key “6D42BDD116E0068F” could not be looked up remotely
Error: required key missing from keyring
Error: Failed to commit transaction

That is an oldie - lot of water has run through the river since.

While it may be possible - you are constantly challenged by decisions which may not be obvious - and you may have to manually resolve conflicts.

Therefore such sync is not for the faint of heart - and it is an impossible task to guide you through that mess.

The easy way out is to backup your personal files and reinstall the system.

I would if I had the chance, but since I dont currently have any usb or dvd laying nearby, I don’t have that option. I am trying to update manjaro so I could install grml-rescueboot and install an installation media into the hard drive itself and boot from that, next create a seperate partition and install a completely new os from scratch.

problem is, manjaro forces me to update it first, and then it gives me access to install something.

No one is forcing you to do anything …

If you must use pamac - then disable check for update on install.

Or use the terminal and pacman

pacman -S <pkgname>

acman -S grml-rescueboot
:: Some packages should be upgraded first…
resolving dependencies…
looking for conflicting packages…

Packages (3) archlinux-keyring-20220424-1 manjaro-keyring-20220514-1
manjaro-system-20220202-2

Total Installed Size: 1.54 MiB
Net Upgrade Size: 0.45 MiB

:: Proceed with installation? [Y/n]

The keyrings are necesarry

[ira ira]# pacman -S grml-rescueboot
:: Some packages should be upgraded first…
resolving dependencies…
looking for conflicting packages…

Packages (3) archlinux-keyring-20220424-1 manjaro-keyring-20220514-1
manjaro-system-20220202-2

Total Installed Size: 1.54 MiB
Net Upgrade Size: 0.45 MiB

:: Proceed with installation? [Y/n] y
(3/3) checking keys in keyring [######################] 100%
downloading required keys…
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.

try this:
edit /etc/pacman.d/gnupg/gpg.conf and change the keyserver line to:
keyserver hkp://keyserver.ubuntu.com
clear cache:
sudo pacman -Scc
and try update again

no-greeting
no-permission-warning
lock-never
keyserver-options timeout=10

this is what I currently have, what do I delete in the keyserver-options?

gpg --keyserver keyserver.ubuntu.com --recv-keys 6D42BDD116E0068F

(3/3) checking keys in keyring [######################] 100%
downloading required keys…
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.

still the same

[ira ira]# gpg --keyserver keyserver.ubuntu.cm --recv-keys 6D42BDD116E0068F
gpg: key A6234074498E9CEE: 1 duplicate signature removed
gpg: key A6234074498E9CEE: 77 signatures not checked due to missing keys
gpg: key A6234074498E9CEE: 1 signature reordered
gpg: key A6234074498E9CEE: “Christian Hesse <eworm@archlinux.or g>” not changed
gpg: Total number processed: 1
gpg: unchanged: 1

What is happening is that the packages contains a key signature which is not in your local keyring.

To get that signature you need to fetch it from a keyserver.

Because the system has not been maintained properly for several years - the changes due to to the gpg signature poison attack several years ago - your system does not know which keyserver to get it from.

This is what the gpg command does - tells which server to use and which key to fetch - the key missing

When you have the key in your local keyring - you can continue with

pacman -S <pkgname>

and this:
sudo pacman-key --keyserver hkp://pool.sks-keyservers.net --refresh-keys