Can't Update - (invalid or corrupted package)

Currently I am unable to update I an however able to install software.
Steps I have tried:

I have tried to reinstall nodejs-21.5.0-1 but it fails with error: failed to prepare transaction (invalid or corrupted package)

System:
  Kernel: 6.7.0-zen3-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=2c314f01-6930-43e5-ae20-9cbddce1a512 rw rootflags=subvol=@
    nvidia-drm.modeset=1 rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3
  Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.12 wm: kwin_x11 vt: 2
    dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME X570-PRO v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 4802
    date: 06/15/2023
CPU:
  Info: model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 2 gen: 3
    level: v3 note: check built: 2020-22 process: TSMC n7 (7nm)
    family: 0x17 (23) model-id: 0x71 (113) stepping: 0 microcode: 0x8701030
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
    L3: 32 MiB desc: 2x16 MiB
  Speed (MHz): avg: 3811 high: 4342 min/max: 2200/4426 boost: enabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 4342 2: 3853
    3: 3600 4: 3600 5: 3888 6: 3671 7: 3762 8: 3600 9: 4186 10: 3609 11: 4220
    12: 4046 13: 3600 14: 3766 15: 3593 16: 3653 bogomips: 115195
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities: <filter>
Graphics:
  Device-1: NVIDIA GM204 [GeForce GTX 980] vendor: Gigabyte driver: nvidia
    v: 545.29.06 alternate: nouveau,nvidia_drm non-free: 545.xx+ status: current
    (as of 2023-10; EOL~2026-12-xx) arch: Maxwell code: GMxxx
    process: TSMC 28nm built: 2014-2019 pcie: gen: 3 speed: 8 GT/s lanes: 16
    ports: active: none off: DP-2 empty: DP-1, DP-3, DVI-I-1, HDMI-A-1
    bus-ID: 0a:00.0 chip-ID: 10de:13c0 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.10 with: Xwayland v: 23.2.3
    compositor: kwin_x11 driver: X: loaded: nvidia gpu: nvidia,nvidia-nvswitch
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3440x1440 s-dpi: 109 s-size: 802x333mm (31.57x13.11")
    s-diag: 868mm (34.19")
  Monitor-1: DP-2 note: disabled model: LG (GoldStar) ULTRAGEAR
    serial: <filter> built: 2020 res: 3440x1440 hz: 60 dpi: 109 gamma: 1.2
    size: 800x335mm (31.5x13.19") diag: 867mm (34.1") modes: max: 3440x1440
    min: 640x480
  API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 2
    drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia x11: drv: nvidia
    inactive: wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 545.29.06
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce GTX 980/PCIe/SSE2
    memory: 3.91 GiB
  API: Vulkan v: 1.3.274 layers: 15 device: 0 type: discrete-gpu
    name: NVIDIA GeForce GTX 980 driver: nvidia v: 545.29.06
    device-ID: 10de:13c0 surfaces: xcb,xlib device: 1 type: cpu name: llvmpipe
    (LLVM 16.0.6 256 bits) driver: mesa llvmpipe v: 23.3.3-arch1.1 (LLVM
    16.0.6) device-ID: 10005:0000 surfaces: xcb,xlib
Audio:
  Device-1: NVIDIA GM204 High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 0a:00.1 chip-ID: 10de:0fbb class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0c:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: Texas Instruments PCM2900C Audio CODEC
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 1-2:3 chip-ID: 08bb:29c0 class-ID: 0300
  API: ALSA v: k6.7.0-zen3-1-zen status: kernel-api with: aoss
    type: oss-emulator tools: N/A
  Server-1: PipeWire v: 1.0.1 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Wireless 7260 driver: iwlwifi v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 05:00.0 chip-ID: 8086:08b1 class-ID: 0280
  IF: wlp5s0 state: down mac: <filter>
  Device-2: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 06:00.0
    chip-ID: 8086:1539 class-ID: 0200
  IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface driver: btusb v: 0.8 type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-6:5 chip-ID: 8087:07dc
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 4.0
    lmp-v: 6 status: discoverable: no pairing: no class-ID: 6c0104
Drives:
  Local Storage: total: 4.68 TiB used: 3.01 TiB (64.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:7 vendor: Western Digital
    model: WD BLACK SN770 2TB size: 1.82 TiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 731100WD temp: 54.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: HP model: SSD EX920 1TB
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 32A0T2IA temp: 42.9 C
    scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: OCZ model: VERTEX3 size: 111.79 GiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s tech: SSD
    serial: <filter> fw-rev: 2.22 scheme: GPT
  ID-4: /dev/sdb maj-min: 8:16 vendor: Western Digital
    model: WD20EZAZ-00L9GB0 size: 1.82 TiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 5400 serial: <filter>
    fw-rev: 0A80 scheme: GPT
Partition:
  ID-1: / raw-size: 1.64 TiB size: 1.64 TiB (100.00%) used: 808.84 GiB (48.1%)
    fs: btrfs dev: /dev/nvme0n1p13 maj-min: 259:14
  ID-2: /boot/efi raw-size: 498 MiB size: 497 MiB (99.80%)
    used: 346.1 MiB (69.6%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:8
  ID-3: /home raw-size: 1.64 TiB size: 1.64 TiB (100.00%)
    used: 808.84 GiB (48.1%) fs: btrfs dev: /dev/nvme0n1p13 maj-min: 259:14
  ID-4: /var/log raw-size: 1.64 TiB size: 1.64 TiB (100.00%)
    used: 808.84 GiB (48.1%) fs: btrfs dev: /dev/nvme0n1p13 maj-min: 259:14
  ID-5: /var/tmp raw-size: 1.64 TiB size: 1.64 TiB (100.00%)
    used: 808.84 GiB (48.1%) fs: btrfs dev: /dev/nvme0n1p13 maj-min: 259:14
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: partition size: 9.79 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p4 maj-min: 259:11
  ID-2: swap-2 type: zram size: 15.52 GiB used: 4 MiB (0.0%) priority: 100
    comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 16 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 42.0 C mobo: 38.0 C gpu: nvidia temp: 46 C
  Fan Speeds (rpm): fan-1: 781 fan-2: 1814 fan-3: 749 fan-4: 744 fan-5: 0
    fan-6: 0 fan-7: 0 gpu: nvidia fan: 27%
Info:
  Processes: 486 Uptime: 5m wakeups: 0 Memory: total: 16 GiB
  available: 15.52 GiB used: 6.06 GiB (39.0%) Init: systemd v: 255
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 alt: 12
  clang: 16.0.6 Packages: pm: pacman pkgs: 2420 libs: 620
  tools: octopi,pamac,paru Shell: fish v: 3.7.0 running-in: yakuake
  inxi: 3.3.31
Garuda (2.6.22-1):
  System install date:     2023-10-09
  Last full system update: 2024-01-15
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut nvidia-dkms
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:            fancontrol.service glances.service 

the error I am facing is,

garuda-update                                  14.6s  Wed 17 Jan 2024 11:37:53 AM CST
:: Synchronizing package databases...
 garuda is up to date
 core is up to date
 extra is up to date
 multilib is up to date
 chaotic-aur is up to date

--> Refreshing mirrorlists using rate-mirrors, please be patient..🍵

:: Synchronizing package databases...
 garuda downloading...
 core downloading...
 extra downloading...
 multilib downloading...
 chaotic-aur downloading...
:: Starting full system upgrade...
warning: bitwig-studio: ignoring package upgrade (4.3.10-1 => 5.1.2-1)
warning: firedragon: ignoring package upgrade (11.7.1-18 => 119.0-2)
:: Replace kcolorpicker with extra/kcolorpicker-qt5? [Y/n] y
warning: kde-servicemenus-pdf-encrypt-decrypt: local (1-1.4) is newer than chaotic-aur (1-1)
:: Replace kimageannotator with extra/kimageannotator-qt5? [Y/n] y
:: Replace mhwd-garuda-git with garuda/mhwd-garuda? [Y/n] y
warning: performance-tweaks: local (2.1.2-3) is newer than garuda (2.1.2-1)
warning: podofo-0.9: local (0.9.8-5) is newer than chaotic-aur (0.9.8-1)
warning: virt-manager-meta: local (5-4.3) is newer than garuda (5-4)
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package nodejs-21.5.0-1
error: failed to prepare transaction (invalid or corrupted package)

Try again.
nodejs should be now 21.6.0-2 in the Arch repo.
If error persists, I’d try

update remote fix

No luck, even after update remote fix and running garuda-update again I get the same error “warning: could not fully load metadata for package nodejs-21.5.0-1”

Is this a package i can remove then reinstall the updated version or would that crash my system?

Try this

sudo touch /var/lib/pacman/local/nodejs-21.5.0-1/{desc,files,mtree}
sudo pacman -S nodejs

hmm I’m fully stumped.

 ~  sudo touch /var/lib/pacman/local/nodejs-21.5.0-1/{desc,files,mtree} 
 ~  sudo pacman -S nodejs                                                          
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package nodejs-21.5.0-1
error: failed to prepare transaction (invalid or corrupted package)
sudo pacman -S nodejs --overwrite '*'

?

Sadly same error

sudo pacman -S nodejs --overwrite '*'                             
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package nodejs-21.5.0-1
error: failed to prepare transaction (invalid or corrupted package)

Have you tried the old “force reinstall all packages” method?

garuda-update remote fullfix
1 Like

Slightly different error but still no luck.

 garuda-update remote fullfix                                        2.5m  Wed 17 Jan 2024 06:41:00 PM CST
This will reset a few configuration files like pacman.conf 🛑
Warning: Fullfix mode! This will reinstall all packages!
Are you sure? (y/n)
y
--2024-01-17 18:41:16--  https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/pacman-static
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving pkgbuild.com (pkgbuild.com)... 78.46.178.133, 2a01:4f8:c2c:51e2::1
Connecting to pkgbuild.com (pkgbuild.com)|78.46.178.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4606712 (4.4M) [application/octet-stream]
Saving to: ‘/tmp/tmp.23s9uWu8Ss’

/tmp/tmp.23s9uWu8Ss          100%[=============================================>]   4.39M  3.55MB/s    in 1.2s    

2024-01-17 18:41:18 (3.55 MB/s) - ‘/tmp/tmp.23s9uWu8Ss’ saved [4606712/4606712]


 .--.                  Pacman v6.0.1 - libalpm v13.0.1
/ _.-' .-.  .-.  .-.   Copyright (C) 2006-2021 Pacman Development Team
\  '-. '-'  '-'  '-'   Copyright (C) 2002-2006 Judd Vinet
 '--'
                       This program may be freely redistributed under
                       the terms of the GNU General Public License.

--2024-01-17 18:41:18--  https://gitlab.com/garuda-linux/tools/garuda-tools/-/raw/master/data/pacman-default.conf
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving gitlab.com (gitlab.com)... 172.65.251.78, 2606:4700:90:0:f22e:fbec:5bed:a9b9
Connecting to gitlab.com (gitlab.com)|172.65.251.78|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2514 (2.5K) [text/plain]
Saving to: ‘/etc/pacman.conf’

/etc/pacman.conf             100%[=============================================>]   2.46K  --.-KB/s    in 0s      

2024-01-17 18:41:19 (37.2 MB/s) - ‘/etc/pacman.conf’ saved [2514/2514]

--2024-01-17 18:41:19--  https://archlinux.org/mirrorlist/all/
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving archlinux.org (archlinux.org)... 95.217.163.246, 2a01:4f9:c010:6b1f::1
Connecting to archlinux.org (archlinux.org)|95.217.163.246|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 53685 (52K) [text/plain]
Saving to: ‘/etc/pacman.d/mirrorlist’

/etc/pacman.d/mirrorlist     100%[=============================================>]  52.43K   258KB/s    in 0.2s    

2024-01-17 18:41:20 (258 KB/s) - ‘/etc/pacman.d/mirrorlist’ saved [53685/53685]

--2024-01-17 18:41:20--  https://aur.chaotic.cx/mirrorlist.txt
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving aur.chaotic.cx (aur.chaotic.cx)... 185.199.109.153, 185.199.110.153, 185.199.111.153, ...
Connecting to aur.chaotic.cx (aur.chaotic.cx)|185.199.109.153|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2237 (2.2K) [text/plain]
Saving to: ‘/etc/pacman.d/chaotic-mirrorlist’

/etc/pacman.d/chaotic-mirror 100%[=============================================>]   2.18K  --.-KB/s    in 0s      

2024-01-17 18:41:20 (71.9 MB/s) - ‘/etc/pacman.d/chaotic-mirrorlist’ saved [2237/2237]

gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/55144CB91749DFF8ACA49BF2ADAC95A1AB8AC238.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
==> Appending keys from archlinux.gpg...
==> Appending keys from chaotic.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signed 11 keys.
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
==> Disabling revoked keys in keyring...
  -> Disabled 47 keys.
==> Updating trust database...
gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
gpg: (use option "--allow-weak-key-signatures" to override)
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   9  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   9  signed:  99  trust: 0-, 0q, 0n, 9m, 0f, 0u
gpg: depth: 2  valid:  74  signed:  22  trust: 74-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-01-21
gpg: key A6234074498E9CEE: 4 duplicate signatures removed
gpg: key A6234074498E9CEE: 1 signature reordered
gpg: key A6234074498E9CEE: "Christian Hesse <[email protected]>" 9 signatures cleaned
gpg: key FBA220DFC880C036: "Nico Jensch (Chaotic-AUR) <[email protected]>" not changed
gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
gpg: (use option "--allow-weak-key-signatures" to override)
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   9  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   9  signed:  99  trust: 0-, 0q, 0n, 9m, 0f, 0u
gpg: depth: 2  valid:  74  signed:  22  trust: 74-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-01-21
gpg: Total number processed: 2
gpg:              unchanged: 1
gpg:     signatures cleaned: 9
  -> Locally signed 2 keys.
==> Updating trust database...
gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
gpg: (use option "--allow-weak-key-signatures" to override)
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:  10  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:  10  signed:  98  trust: 1-, 0q, 0n, 9m, 0f, 0u
gpg: depth: 2  valid:  73  signed:  22  trust: 73-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-01-21
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)

Try removing the lock file first.

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

Then give it another shot.

garuda-update remote fullfix
1 Like

I got part way there one run an the a different result the next time

.......
warning: zram-generator-1.1.2-1 is up to date -- reinstalling
warning: zstd-1.5.5-1 is up to date -- reinstalling
warning: zvbi-0.2.42-1 is up to date -- reinstalling
warning: zxing-cpp-2.2.1-1 is up to date -- reinstalling
warning: zziplib-0.13.72-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package bottles-2:51.10-1
error: failed to prepare transaction (invalid or corrupted package)
sudo rm /var/lib/pacman/db.lck                                                 Wed 17 Jan 2024 06:52:22 PM CST
[sudo] password for elite:     
rm: cannot remove '/var/lib/pacman/db.lck': No such file or directory
 !  ~  garuda-update remote fullfix                                      2442ms  Wed 17 Jan 2024 06:52:35 PM CST
This will reset a few configuration files like pacman.conf 🛑
Warning: Fullfix mode! This will reinstall all packages!
Are you sure? (y/n)
y
--2024-01-17 18:52:45--  https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/pacman-static
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving pkgbuild.com (pkgbuild.com)... 78.46.178.133, 2a01:4f8:c2c:51e2::1
Connecting to pkgbuild.com (pkgbuild.com)|78.46.178.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4606712 (4.4M) [application/octet-stream]
Saving to: ‘/tmp/tmp.UEkFbTJjzC’

/tmp/tmp.UEkFbTJjzC          100%[=============================================>]   4.39M  84.4KB/s    in 24s     

2024-01-17 18:53:10 (187 KB/s) - ‘/tmp/tmp.UEkFbTJjzC’ saved [4606712/4606712]


 .--.                  Pacman v6.0.1 - libalpm v13.0.1
/ _.-' .-.  .-.  .-.   Copyright (C) 2006-2021 Pacman Development Team
\  '-. '-'  '-'  '-'   Copyright (C) 2002-2006 Judd Vinet
 '--'
                       This program may be freely redistributed under
                       the terms of the GNU General Public License.

--2024-01-17 18:53:10--  https://gitlab.com/garuda-linux/tools/garuda-tools/-/raw/master/data/pacman-default.conf
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving gitlab.com (gitlab.com)... 172.65.251.78, 2606:4700:90:0:f22e:fbec:5bed:a9b9
Connecting to gitlab.com (gitlab.com)|172.65.251.78|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2514 (2.5K) [text/plain]
Saving to: ‘/etc/pacman.conf’

/etc/pacman.conf             100%[=============================================>]   2.46K  --.-KB/s    in 0s      

2024-01-17 18:53:11 (35.7 MB/s) - ‘/etc/pacman.conf’ saved [2514/2514]

--2024-01-17 18:53:11--  https://archlinux.org/mirrorlist/all/
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving archlinux.org (archlinux.org)... 95.217.163.246, 2a01:4f9:c010:6b1f::1
Connecting to archlinux.org (archlinux.org)|95.217.163.246|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 53685 (52K) [text/plain]
Saving to: ‘/etc/pacman.d/mirrorlist’

/etc/pacman.d/mirrorlist     100%[=============================================>]  52.43K   251KB/s    in 0.2s    

2024-01-17 18:53:12 (251 KB/s) - ‘/etc/pacman.d/mirrorlist’ saved [53685/53685]

--2024-01-17 18:53:12--  https://aur.chaotic.cx/mirrorlist.txt
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving aur.chaotic.cx (aur.chaotic.cx)... 185.199.108.153, 185.199.110.153, 185.199.109.153, ...
Connecting to aur.chaotic.cx (aur.chaotic.cx)|185.199.108.153|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2237 (2.2K) [text/plain]
Saving to: ‘/etc/pacman.d/chaotic-mirrorlist’

/etc/pacman.d/chaotic-mirror 100%[=============================================>]   2.18K  --.-KB/s    in 0s      

2024-01-17 18:53:12 (73.1 MB/s) - ‘/etc/pacman.d/chaotic-mirrorlist’ saved [2237/2237]

gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/89466D8BBE3D1A947CF695DE7F38EB51923EB971.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
==> Appending keys from archlinux.gpg...
==> Appending keys from chaotic.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signed 11 keys.
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
==> Disabling revoked keys in keyring...
  -> Disabled 47 keys.
==> Updating trust database...
gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
gpg: (use option "--allow-weak-key-signatures" to override)
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   9  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   9  signed:  99  trust: 0-, 0q, 0n, 9m, 0f, 0u
gpg: depth: 2  valid:  74  signed:  22  trust: 74-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-01-21
gpg: key A6234074498E9CEE: 4 duplicate signatures removed
gpg: key A6234074498E9CEE: 1 signature reordered
gpg: key A6234074498E9CEE: "Christian Hesse <[email protected]>" 9 signatures cleaned
gpg: key FBA220DFC880C036: "Nico Jensch (Chaotic-AUR) <[email protected]>" not changed
gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
gpg: (use option "--allow-weak-key-signatures" to override)
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   9  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   9  signed:  99  trust: 0-, 0q, 0n, 9m, 0f, 0u
gpg: depth: 2  valid:  74  signed:  22  trust: 74-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-01-21
gpg: Total number processed: 2
gpg:              unchanged: 1
gpg:     signatures cleaned: 9
  -> Locally signed 2 keys.
==> Updating trust database...
gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
gpg: (use option "--allow-weak-key-signatures" to override)
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:  10  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:  10  signed:  98  trust: 1-, 0q, 0n, 9m, 0f, 0u
gpg: depth: 2  valid:  73  signed:  22  trust: 73-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-01-21
:: Synchronizing package databases...
 garuda is up to date
 core                                     129.0 KiB  82.8 KiB/s 00:02 [--------------------------------------] 100%
 extra.db failed to download
 community                                 45.0   B  88.0   B/s 00:01 [--------------------------------------] 100%
 multilib                                 139.6 KiB  27.2 KiB/s 00:05 [--------------------------------------] 100%
 chaotic-aur                                2.6 MiB  5.30 MiB/s 00:00 [--------------------------------------] 100%
error: could not rename /var/lib/pacman/sync/extra.db.part to /var/lib/pacman/sync/extra.db (No such file or directory)
warning: lock file missing /var/lib/pacman/db.lck
error: failed to synchronize all databases (unexpected system error)

Huh… That’s a weird one. Is your internet connection working fine?

It might be worth trying again, the same way.

sudo rm /var/lib/pacman/db.lck
garuda-update remote fullfix

Let’s see if you get the same error again.

1 Like

It should be fine to be safe I reset everything. If it comes down to it regretfully when garuda with kde 6 hits I’ll sadly wipe an reinstall. Since its only a month-ish with no updates.

sudo rm /var/lib/pacman/db.lck                                            Wed 17 Jan 2024 11:29:53 PM CST
     garuda-update remote fullfix
[sudo] password for elite:     
rm: cannot remove '/var/lib/pacman/db.lck': No such file or directory
This will reset a few configuration files like pacman.conf 🛑
Warning: Fullfix mode! This will reinstall all packages!
Are you sure? (y/n)
y
--2024-01-17 23:30:04--  https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/pacman-static
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving pkgbuild.com (pkgbuild.com)... 78.46.178.133, 2a01:4f8:c2c:51e2::1
Connecting to pkgbuild.com (pkgbuild.com)|78.46.178.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4606712 (4.4M) [application/octet-stream]
Saving to: ‘/tmp/tmp.w9gYH2Ough’

/tmp/tmp.w9gYH2Ough         100%[=========================================>]   4.39M  2.87MB/s    in 1.5s    

2024-01-17 23:30:06 (2.87 MB/s) - ‘/tmp/tmp.w9gYH2Ough’ saved [4606712/4606712]


 .--.                  Pacman v6.0.1 - libalpm v13.0.1
/ _.-' .-.  .-.  .-.   Copyright (C) 2006-2021 Pacman Development Team
\  '-. '-'  '-'  '-'   Copyright (C) 2002-2006 Judd Vinet
 '--'
                       This program may be freely redistributed under
                       the terms of the GNU General Public License.

--2024-01-17 23:30:06--  https://gitlab.com/garuda-linux/tools/garuda-tools/-/raw/master/data/pacman-default.conf
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving gitlab.com (gitlab.com)... 172.65.251.78, 2606:4700:90:0:f22e:fbec:5bed:a9b9
Connecting to gitlab.com (gitlab.com)|172.65.251.78|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2514 (2.5K) [text/plain]
Saving to: ‘/etc/pacman.conf’

/etc/pacman.conf            100%[=========================================>]   2.46K  --.-KB/s    in 0s      

2024-01-17 23:30:07 (42.8 MB/s) - ‘/etc/pacman.conf’ saved [2514/2514]

--2024-01-17 23:30:07--  https://archlinux.org/mirrorlist/all/
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving archlinux.org (archlinux.org)... 95.217.163.246, 2a01:4f9:c010:6b1f::1
Connecting to archlinux.org (archlinux.org)|95.217.163.246|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 53685 (52K) [text/plain]
Saving to: ‘/etc/pacman.d/mirrorlist’

/etc/pacman.d/mirrorlist    100%[=========================================>]  52.43K   242KB/s    in 0.2s    

2024-01-17 23:30:08 (242 KB/s) - ‘/etc/pacman.d/mirrorlist’ saved [53685/53685]

--2024-01-17 23:30:08--  https://aur.chaotic.cx/mirrorlist.txt
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving aur.chaotic.cx (aur.chaotic.cx)... 185.199.108.153, 185.199.110.153, 185.199.109.153, ...
Connecting to aur.chaotic.cx (aur.chaotic.cx)|185.199.108.153|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2237 (2.2K) [text/plain]
Saving to: ‘/etc/pacman.d/chaotic-mirrorlist’

/etc/pacman.d/chaotic-mirro 100%[=========================================>]   2.18K  --.-KB/s    in 0s      

2024-01-17 23:30:08 (61.5 MB/s) - ‘/etc/pacman.d/chaotic-mirrorlist’ saved [2237/2237]

gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/7FD934AE79F1540D83096C3E8B0F9BD5AC53B9D2.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
==> Appending keys from archlinux.gpg...
==> Appending keys from chaotic.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signed 11 keys.
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
==> Disabling revoked keys in keyring...
  -> Disabled 47 keys.
==> Updating trust database...
gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
gpg: (use option "--allow-weak-key-signatures" to override)
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   9  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   9  signed:  99  trust: 0-, 0q, 0n, 9m, 0f, 0u
gpg: depth: 2  valid:  74  signed:  22  trust: 74-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-01-21
gpg: key A6234074498E9CEE: 4 duplicate signatures removed
gpg: key A6234074498E9CEE: 1 signature reordered
gpg: key A6234074498E9CEE: "Christian Hesse <[email protected]>" 9 signatures cleaned
gpg: key FBA220DFC880C036: "Nico Jensch (Chaotic-AUR) <[email protected]>" not changed
gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
gpg: (use option "--allow-weak-key-signatures" to override)
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   9  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   9  signed:  99  trust: 0-, 0q, 0n, 9m, 0f, 0u
gpg: depth: 2  valid:  74  signed:  22  trust: 74-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-01-21
gpg: Total number processed: 2
gpg:              unchanged: 1
gpg:     signatures cleaned: 9
  -> Locally signed 2 keys.
==> Updating trust database...
gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
gpg: (use option "--allow-weak-key-signatures" to override)
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:  10  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:  10  signed:  98  trust: 1-, 0q, 0n, 9m, 0f, 0u
gpg: depth: 2  valid:  73  signed:  22  trust: 73-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-01-21
rm: cannot remove '/var/cache/pacman/pkg/*': No such file or directory
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)

I got the same issue: `update`: error: failed to synchronize all databases (unexpected error)

2 Likes

I was able to fix the issue.
-Highly recommend taking a snapshot before doing these steps-

  1. In dolphin remove /var/lib/pacman/local/nodejs-21.5.0-1/ /var/lib/pacman/local/bottles-21.5.0-1/ (Why dolphin? So you can ctrl+z if you need to.)
  2. Run garuda-update remote reinstall Fullfix can work as well
  3. Install nodejs-21.6.0-2
  4. Reinstall bottles-21.5.0-1
  5. Run garuda-update -a (Note if pacman.conf was reset add your IgnorePkg = back. For me it was IgnorePkg = firedragon)
  6. After a system restart for good measure should be back to normal.
1 Like

Thanks for sharing this. Unfortunately it didn’t work for me. After removing nodejs and bottles and running

garuda-update remote reinstall

I still get the same error messages. I’ll leave it to the folks in charge to decide if this is the official Garuda solution.

I’m not particularly sure what issue your having, But this issue isn’t related to the mirror issue that is going around today. That’s been solved with the manual mirror. this fix assumes your using that fix as well. but is written for once its actually patched.

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