Failed to synchronize all databases (unable to lock database)

I can not install any app from Add/Remove store or even not to update my system as well.

Terminal returns me following output.

λ sudo pacman -Syu
[sudo] password for tayef:
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)

[email protected] in ~ as 🧙 took 5s

Here is my inxi -Faz output

[email protected] in ~ took 7ms
[🔍] × inxi -Faz
Kernel: 5.15.14-hardened1-1-hardened x86_64 bits: 64 compiler: gcc
v: 11.1.0 parameters: pti=on page_alloc.shuffle=1
root=UUID=2a012d3c-460c-4dd7-94f8-fbaf538a9618 quiet splash
rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
rootflags=defaults,noatime,autodefrag,compress=zstd,discard=async,ssd,[email protected]/.snapshots/2/snapshot
Desktop: KDE Plasma 5.23.5 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11
vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Type: Desktop Mobo: Gigabyte model: B365M GAMING HD v: x.x
serial: <superuser required> UEFI-[Legacy]: American Megatrends v: F1
date: 05/30/2019
Info: model: Intel Core i5-9400F bits: 64 type: MCP arch: Coffee Lake
family: 6 model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xEA
Topology: cpus: 1x cores: 6 smt: <unsupported> cache: L1: 384 KiB
desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB L3: 9 MiB
desc: 1x9 MiB
Speed (MHz): avg: 3977 high: 4001 min/max: 800/4100 scaling:
driver: intel_pstate governor: performance cores: 1: 3889 2: 3998 3: 4000
4: 4000 5: 3978 6: 4001 bogomips: 34814
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf
mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled
Type: mds mitigation: Clear CPU buffers; SMT disabled
Type: meltdown mitigation: PTI
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
IBRS_FW, STIBP: disabled, RSB filling
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
vendor: Sapphire Limited driver: amdgpu v: kernel bus-ID: 01:00.0
chip-ID: 1002:67df class-ID: 0300
Display: x11 server: X.Org compositor: kwin_x11 driver:
loaded: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa
display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
s-diag: 582mm (22.9")
Monitor-1: HDMI-A-1 res: 1920x1080 hz: 60 dpi: 102
size: 476x268mm (18.7x10.6") diag: 546mm (21.5")
Message: Unable to show advanced data. Required tool glxinfo missing.
Device-1: Intel 200 Series PCH HD Audio vendor: Gigabyte
driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a2f0
class-ID: 0403
Device-2: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
vendor: Sapphire Limited driver: snd_hda_intel v: kernel bus-ID: 01:00.1
chip-ID: 1002:aaf0 class-ID: 0403
Sound Server-1: ALSA v: k5.15.14-hardened1-1-hardened running: yes
Sound Server-2: JACK v: 1.9.19 running: no
Sound Server-3: PulseAudio v: 15.0 running: no
Sound Server-4: PipeWire v: 0.3.43 running: yes
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Gigabyte driver: r8169 v: kernel port: d000 bus-ID: 07:00.0
chip-ID: 10ec:8168 class-ID: 0200
IF: enp7s0 state: down mac: <filter>
Device-2: Qualcomm Atheros AR9271 802.11n type: USB driver: ath9k_htc
bus-ID: 1-3:3 chip-ID: 0cf3:9271 class-ID: ff00 serial: <filter>
IF: wlp0s20f0u3 state: up mac: <filter>
Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB
driver: btusb v: 0.8 bus-ID: 1-9:6 chip-ID: 0a12:0001 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Local Storage: total: 1.13 TiB used: 27.88 GiB (2.4%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: TEUTONS model: PLATIUM SSD 240GB
size: 223.57 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 0817 scheme: MBR
ID-2: /dev/sdb maj-min: 8:16 type: USB vendor: Western Digital
model: WD10 SPZX-24Z10T0 size: 931.51 GiB block-size: physical: 512 B
logical: 512 B type: N/A serial: <filter> scheme: MBR
ID-1: / raw-size: 223.57 GiB size: 223.57 GiB (100.00%)
used: 27.88 GiB (12.5%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
ID-2: /home raw-size: 223.57 GiB size: 223.57 GiB (100.00%)
used: 27.88 GiB (12.5%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
ID-3: /var/log raw-size: 223.57 GiB size: 223.57 GiB (100.00%)
used: 27.88 GiB (12.5%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
ID-4: /var/tmp raw-size: 223.57 GiB size: 223.57 GiB (100.00%)
used: 27.88 GiB (12.5%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.58 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
System Temperatures: cpu: 51.0 C mobo: 16.8 C gpu: amdgpu temp: 49.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 758
Processes: 259 Uptime: 12m wakeups: 0 Memory: 15.58 GiB
used: 1.76 GiB (11.3%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 11.1.0 clang: 13.0.0 Packages: pacman: 2048 lib: 374 Shell: fish
v: 3.3.1 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.11

2nd result on Searx

1 Like

Use search function, please.

Careful, you're booting off a snapshot.
I think you have to first restore using the snapper GUI (or timeshift, depending on what you have), reboot and then update your system.


fixpacman time!


Was this solved in the end? And how?
I'm asking only because I see a new post here so this is hopefully solved.
If so, please always remember to mark a post as solution for future readers.