When trying to update - could not synchronize the db - could not lock the database:

good day dear all,

when trying to update - the system cannot lock the db…

could not synchronize the db - could not lock the database:

zbar 0.23.1-9 -> 0.23.90-1
Root Passwort: 
:: Paketdatenbanken werden synchronisiert …
Fehler: Keine Datenbank konnte synchronisiert werden (Kann Datenbank nicht sperren)

AUR Update-Check:
:: Durchsuche AUR nach Updates...
:: 1 Pakete zu aktualisieren.
1  aur/celt  0.11.3-4 -> 0.11.3-5
==> Pakete zum Ausschließen: (z.B. "1 2 3", "1-3", "^4" oder Repo-Name)
==>

well thats interersting

Arch & EndeavourOS Update-Check:
:: Suche Arch & EndeavourOS nach Updates...
aom 3.4.0-1 -> 3.5.0-1
archlinux-keyring 20220831-1 -> 20220927-1
at-spi2-core 2.44.1-1 -> 2.46.0-2
bash-completion 2.11-2 -> 2.11-3
bind 9.18.6-1 -> 9.18.7-1
boost-libs 1.79.0-1 -> 1.80.0-2
ca-certificates-mozilla 3.82-1 -> 3.83-1
clang 14.0.6-2 -> 14.0.6-3
dbus 1.14.0-1 -> 1.14.2-1
dnsmasq 2.86-2 -> 2.87-1
endeavouros-skel-xfce4 2.14-1 -> 2.16-1
endeavouros-theming 12.0-1 -> 22.09.3.2-1
eos-bash-shared 1.28-2 -> 1.29-1
eos-log-tool 1.4.15-1 -> 1.10-1
eos-quickstart 1.3-2 -> 1.3-3
eos-rankmirrors 2.3-1 -> 2.5-1
eos-translations 1.12-1 -> 1.17-1
expat 2.4.8-1 -> 2.4.9-1
featherpad 1.3.1-1 -> 1.3.2-1
ffmpeg 2:5.1.1-3 -> 2:5.1.2-1
file 5.42-2 -> 5.43-1
filezilla 3.60.2-3 -> 3.61.0-1
firefox 104.0.2-1 -> 105.0.1-1
flac 1.4.0-1 -> 1.4.1-1
fluidsynth 2.2.9-2 -> 2.3.0-2
fuse-common 3.11.0-1 -> 3.12.0-1
fuse3 3.11.0-1 -> 3.12.0-1
fzf 0.33.0-1 -> 0.34.0-1
ghostscript 9.56.1-1 -> 10.0.0-1
gimp 2.10.32-1 -> 2.10.32-2
glib-networking 1:2.72.2-1 -> 1:2.74.0-1
glib2 2.72.3-3 -> 2.74.0-2
glibmm 2.66.4-1 -> 2.66.5-1
gnutls 3.7.7-3 -> 3.7.8-1
gobject-introspection-runtime 1.72.0-1 -> 1.74.0-1
graphviz 5.0.1-1 -> 6.0.1-1
gtk3 1:3.24.34-1 -> 1:3.24.34+r156+g812b3930d0-1
hdparm 9.64-1 -> 9.65-1
hwdata 0.362-1 -> 0.362-2
hwdetect 2022.09-1 -> 2022.09-4
iana-etc 20220715-1 -> 20220915-1
imagemagick 7.1.0.48-1 -> 7.1.0.49-1
imath 3.1.5-2 -> 3.1.5-3
imlib2 1.9.1-1 -> 1.9.1-2
krb5 1.19.3-3 -> 1.20-1
ldb 2:2.5.2-2 -> 2:2.6.1-1
libblockdev 2.27-1 -> 2.28-1
libbluray 1.3.2-1 -> 1.3.3-1
libcap 2.65-1 -> 2.66-1
libcmis 0.5.2-11 -> 0.5.2-12
libdrm 2.4.113-2 -> 2.4.113-3
libetonyek 0.1.10-1 -> 0.1.10-2
libffi 3.4.2-5 -> 3.4.3-1
libixion 0.17.0-2 -> 0.17.0-3
libmaxminddb 1.6.0-3 -> 1.7.1-1
libnghttp2 1.49.0-1 -> 1.50.0-1
libopenmpt 0.6.5-2 -> 0.6.6-2
liborcus 0.17.2-2 -> 0.17.2-3
libreoffice-fresh 7.4.1-1 -> 7.4.1-3
libva 2.15.0-6 -> 2.16.0-1
libwnck3 40.1-1 -> 43.0-2
libwpe 1.12.3-1 -> 1.14.0-1
libxtst 1.2.3-5 -> 1.2.4-1
libxxf86vm 1.1.4-5 -> 1.1.5-1
linux 5.19.9.arch1-1 -> 5.19.12.arch1-1
linux-firmware 20220815.8413c63-1 -> 20220913.f09bebf-1
linux-firmware-whence 20220815.8413c63-1 -> 20220913.f09bebf-1
linux-headers 5.19.9.arch1-1 -> 5.19.12.arch1-1
luajit 2.1.0.beta3.r439.g633f265f-1 -> 2.1.0.beta3.r449.gdad04f17-1
mtools 1:4.0.40-1 -> 1:4.0.41-1
noto-fonts 20220607-1 -> 20220810-1
nspr 4.34.1-1 -> 4.35-1
nss 3.82-1 -> 3.83-1
openpmix 4.2.0-1 -> 4.2.1-1
os-prober 1.80-1 -> 1.81-1
pacman 6.0.1-7 -> 6.0.1-8
parallel 20220822-1 -> 20220922-1
pcre 8.45-2 -> 8.45-3
pcre2 10.40-1 -> 10.40-3
pinentry 1.2.0-1 -> 1.2.1-1
ppp 2.4.9-1 -> 2.4.9-2
python-importlib-metadata 4.8.3-1 -> 4.9.0-1
python-psutil 5.9.1-1 -> 5.9.2-1
qt5-base 5.15.6+kde+r167-1 -> 5.15.6+kde+r177-1
qt6-base 6.3.2-1 -> 6.4.0-1
qt6-declarative 6.3.2-1 -> 6.4.0-1
qt6-svg 6.3.2-1 -> 6.4.0-1
qt6-translations 6.3.2-1 -> 6.4.0-1
rsync 3.2.6-1 -> 3.2.6-2
smbclient 4.16.5-1 -> 4.17.0-1
sof-firmware 2.2.1-1 -> 2.2.2-1
sqlite 3.39.3-1 -> 3.39.4-1
srt 1.5.0-1 -> 1.5.1-1
tracker3 3.3.3-1 -> 3.4.0-1
tzdata 2022c-1 -> 2022d-1
upower 0.99.20-1 -> 1.90.0-1
webkit2gtk 2.36.7-1 -> 2.38.0-2
welcome 3.34-1 -> 3.38-1
wpebackend-fdo 1.12.1-1 -> 1.14.0-1
xfce4-datetime-plugin 0.8.1-1 -> 0.8.2-1
yad-eos 12.0-1.3 -> 12.0-1.4
zbar 0.23.1-9 -> 0.23.90-1
Root Passwort: 
:: Paketdatenbanken werden synchronisiert …
Fehler: Keine Datenbank konnte synchronisiert werden (Kann Datenbank nicht sperren)

AUR Update-Check:
:: Durchsuche AUR nach Updates...
:: 1 Pakete zu aktualisieren.
1  aur/celt  0.11.3-4 -> 0.11.3-5
==> Pakete zum Ausschließen: (z.B. "1 2 3", "1-3", "^4" oder Repo-Name)
==>

thats interesting

If you are sure there are no other pacman transactions running, try:

sudo rm /var/lib/pacman/db.lck

It commonly happens when you interrupt a pacman transaction in the middle for any reason.

1 Like

hello dear dalto,

well i have nothing running besides this update process

[sudo] Passwort für martin: 
[martin@martineos ~]$ sudo rm /var/lib/pacman/db.lck
rm: das Entfernen von '/var/lib/pacman/db.lck' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
[martin@martineos ~]$

rm is not possible - file could not be found …

Can you run this so I can read it:

LANG=C sudo pacman -Syu

hello dear dalto,

many thanks

thank you - tahts just great.

btw. i want to set the lang for all time to einglish

and yes: see what i get back

[martin@martineos ~]$ LANG=C sudo pacman -Syu
:: Synchronizing package databases...
 core                                            155,8 KiB   193 KiB/s 00:01 [--------------------------------------------] 100%
 extra                                          1719,7 KiB   717 KiB/s 00:02 [--------------------------------------------] 100%
 community                                         7,0 MiB  1015 KiB/s 00:07 [--------------------------------------------] 100%
 multilib                                        171,0 KiB   264 KiB/s 00:01 [--------------------------------------------] 100%
 endeavouros                                      34,3 KiB  36,2 KiB/s 00:01 [--------------------------------------------] 100%
:: Starting full system upgrade...
:: Replace at-spi2-atk with extra/at-spi2-core? [Y/n]

awesome - i think that this solved some things . i think i can now continue with yes!?

btw see here - some addional lines …


:: Synchronizing package databases...
 core                                            155,8 KiB   193 KiB/s 00:01 [--------------------------------------------] 100%
 extra                                          1719,7 KiB   717 KiB/s 00:02 [--------------------------------------------] 100%
 community                                         7,0 MiB  1015 KiB/s 00:07 [--------------------------------------------] 100%
 multilib                                        171,0 KiB   264 KiB/s 00:01 [--------------------------------------------] 100%
 endeavouros                                      34,3 KiB  36,2 KiB/s 00:01 [--------------------------------------------] 100%
:: Starting full system upgrade...
:: Replace at-spi2-atk with extra/at-spi2-core? [Y/n] y 
:: Replace atk with extra/at-spi2-core? [Y/n]

hmm

These are package replacement notifications. You can either press Y or enter

1 Like

hello - many thanks for the continued help - i guess that i run into some serious issues

(102/102) checking keys in keyring                                           [--------------------------------------------] 100%
(102/102) checking package integrity                                         [--------------------------------------------] 100%
error: qt6-declarative: signature from "Antonio Rojas <arojas@archlinux.org>" is invalid
:: File /var/cache/pacman/pkg/qt6-declarative-6.4.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
[martin@martineos ~]$

hmm - some weird things go on here…

1 Like

hello dear sradjoker
many thanks for the hint -

well i guess that the errors with the keyring have to do (and result) probably in the long time of not updating the system!? Can this cause such “key-ring” errors?!"

[quote=“[FAQ] Issues with “signature is marginal trust”, “signature is unknown trust”, or “invalid or corrupted package”, post:1, topic:6756”]
sudo pacman -Sy archlinux-keyring endeavouros-keyring sudo pacman -Syu
[/quote]

well i run the command

[martin@martineos ~]$ sudo pacman -Sy archlinux-keyring endeavouros-keyring
:: Paketdatenbanken werden synchronisiert …
 core ist aktuell
 extra ist aktuell
 community                                         7,0 MiB  1294 KiB/s 00:06 [--------------------------------------------] 100%
 multilib ist aktuell
 endeavouros ist aktuell
Warnung: endeavouros-keyring-20220614-1 ist aktuell -- Reinstalliere
Abhängigkeiten werden aufgelöst …
Nach in Konflikt stehenden Paketen wird gesucht …

Paket (2)                        Alte Version  Neue Version  Netto-Veränderung

core/archlinux-keyring           20220831-1    20220927-1             0,00 MiB
endeavouros/endeavouros-keyring  20220614-1    20220614-1             0,00 MiB

Gesamtgröße der installierten Pakete:  1,58 MiB
Größendifferenz der Aktualisierung:    0,00 MiB

:: Installation fortsetzen? [J/n]

You have to say yes, press “J”