Garuda Update unknown error

For a few days now, my Garuda update has not been working, only get the following error

<html>Unknown error ErrorUnknown.:<br/><br/>failed to uptate database: unexpected system error</html>

please write garuda-inxi and put the output in the post. It would make it easier for us to debug

1 Like
╰─λ garuda-inxi
System:
Kernel: 5.19.9-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=87a0d3a8-a8fd-4a06-9a5e-45c4ec78aff7 rw [email protected]
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3
Desktop: KDE Plasma v: 5.25.5 tk: Qt v: 5.15.6 wm: kwin_x11 vt: 1
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: Gigabyte model: B550 GAMING X V2
serial: <superuser required> UEFI: American Megatrends LLC. v: F15f
date: 07/26/2022
CPU:
Info: model: AMD Ryzen 5 5600X bits: 64 type: MT MCP arch: Zen 3 gen: 4
level: v3 built: 2021-22 process: TSMC n7 (7nm) family: 0x19 (25)
model-id: 0x21 (33) stepping: 2 microcode: 0xA20120A
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
L3: 32 MiB desc: 1x32 MiB
Speed (MHz): avg: 3688 high: 4044 min/max: 2200/4650 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 3594 2: 3700
3: 3645 4: 3715 5: 3591 6: 4044 7: 3639 8: 3635 9: 3700 10: 3599 11: 3700
12: 3700 bogomips: 88638
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M]
vendor: Gigabyte driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x
process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s
lanes: 16 ports: active: DP-1 empty: DP-2,HDMI-A-1,HDMI-A-2
bus-ID: 07:00.0 chip-ID: 1002:73df class-ID: 0300
Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.3
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
alternate: fbdev,vesa gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.65x15.00")
s-diag: 777mm (30.58")
Monitor-1: DP-1 mapped: DisplayPort-0 model: Gigabyte M32Q
serial: <filter> built: 2022 res: 2560x1440 hz: 165 dpi: 93 gamma: 1.2
size: 698x393mm (27.48x15.47") diag: 801mm (31.5") ratio: 16:9 modes:
max: 2560x1440 min: 720x400
OpenGL: renderer: AMD Radeon RX 6700 XT (navy_flounder LLVM 14.0.6 DRM
3.47 5.19.9-zen1-1-zen) v: 4.6 Mesa 22.1.7 direct render: Yes
Audio:
Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel
pcie: bus-ID: 3-3:2 gen: 4 chip-ID: 0a73:0010 class-ID: 0102 speed: 16 GT/s
lanes: 16 bus-ID: 07:00.1 chip-ID: 1002:ab28 class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 09:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: Mackie Designs Onyx Blackjack type: USB driver: snd-usb-audio
Sound Server-1: ALSA v: k5.19.9-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 16.1 running: no
Sound Server-3: PipeWire v: 0.3.58 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: f000 bus-ID: 04:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
Local Storage: total: 6.37 TiB used: 601.97 GiB (9.2%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 980 PRO 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B
speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter> rev: 3B2QGXA7
temp: 30.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST6000NM0044
size: 5.46 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: HDD rpm: 7200 serial: <filter> rev: G00A
Partition:
ID-1: / raw-size: 931.22 GiB size: 931.22 GiB (100.00%) used: 601.97 GiB
(64.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 608 KiB
(0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 931.22 GiB size: 931.22 GiB (100.00%) used: 601.97
GiB (64.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 931.22 GiB size: 931.22 GiB (100.00%) used: 601.97
GiB (64.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 931.22 GiB size: 931.22 GiB (100.00%) used: 601.97
GiB (64.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 31.25 GiB used: 2.2 MiB (0.0%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 34.5 C mobo: 25.0 C gpu: amdgpu temp: 43.0 C
mem: 44.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Info:
Processes: 306 Uptime: 1h 35m wakeups: 0 Memory: 31.25 GiB used: 2.63 GiB
(8.4%) Init: systemd v: 251 default: graphical tool: systemctl Compilers:
gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman pkgs: 2044 libs: 564
tools: octopi,pamac,paru Shell: fish v: 3.5.1 default: Bash v: 5.1.16
running-in: konsole inxi: 3.3.21
error: GPGME error: No data
Garuda (2.6.7-1):
System install date:     2022-07-23
Last full system update: 2022-09-21
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       No/Undetected
Snapshots:               Snapper
Failed units:            bluetooth-autoconnect.service

Try update remote fix

3 Likes

this is what I get when i tried update remote fix

╭─[email protected] in ~
╰─λ update remote fix
[sudo] password for casper:
This will reset a few configuration files like pacman.conf 🛑Are you sure? (y/n)
y
--2022-09-27 22:33:09--  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)... 2a01:4f8:c2c:51e2::1, 78.46.178.133
Connecting to pkgbuild.com (pkgbuild.com)|2a01:4f8:c2c:51e2::1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4606712 (4.4M) [application/octet-stream]
Saving to: ‘/tmp/tmp.igxBz4k3Gk’

/tmp/tmp.igxBz4k3Gk         100%[=========================================>]   4.39M  3.72MB/s    in 1.2s

2022-09-27 22:33:11 (3.72 MB/s) - ‘/tmp/tmp.igxBz4k3Gk’ 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.

--2022-09-27 22:33:11--  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)... 2606:4700:90:0:f22e:fbec:5bed:a9b9, 172.65.251.78
Connecting to gitlab.com (gitlab.com)|2606:4700:90:0:f22e:fbec:5bed:a9b9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2515 (2.5K) [text/plain]
Saving to: ‘/etc/pacman.conf’

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

2022-09-27 22:33:12 (6.36 MB/s) - ‘/etc/pacman.conf’ saved [2515/2515]

--2022-09-27 22:33:12--  https://archlinux.org/mirrorlist/all/
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving archlinux.org (archlinux.org)... 2a01:4f9:c010:6b1f::1, 95.217.163.246
Connecting to archlinux.org (archlinux.org)|2a01:4f9:c010:6b1f::1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 47261 (46K) [text/plain]
Saving to: ‘/etc/pacman.d/mirrorlist’

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

2022-09-27 22:33:13 (245 KB/s) - ‘/etc/pacman.d/mirrorlist’ saved [47261/47261]

--2022-09-27 22:33:13--  https://aur.chaotic.cx/mirrorlist.txt
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving aur.chaotic.cx (aur.chaotic.cx)... 2606:50c0:8001::153, 2606:50c0:8002::153, 2606:50c0:8003::153, ...
Connecting to aur.chaotic.cx (aur.chaotic.cx)|2606:50c0:8001::153|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5299 (5.2K) [text/plain]
Saving to: ‘/etc/pacman.d/chaotic-mirrorlist’

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

2022-09-27 22:33:13 (1.50 MB/s) - ‘/etc/pacman.d/chaotic-mirrorlist’ saved [5299/5299]

error: GPGME error: No data
:: Synchronizing package databases...
garuda                                 95.6 KiB  89.5 KiB/s 00:01 [------------------------------------] 100%
core                                  154.9 KiB   279 KiB/s 00:01 [------------------------------------] 100%
extra                                1712.6 KiB  2001 KiB/s 00:01 [------------------------------------] 100%
community                               7.0 MiB  6.69 MiB/s 00:01 [------------------------------------] 100%
multilib                              175.1 KiB   317 KiB/s 00:01 [------------------------------------] 100%
chaotic-aur                             2.3 MiB  3.98 MiB/s 00:01 [------------------------------------] 100%
error: GPGME error: No data
error: failed to synchronize all databases (unexpected error)

╭─[email protected] in ~ as 🧙 took 13s
[🔴] ×

Try it again, I pushed a fix for this issue presumably.

4 Likes

This time it took longer after doing update remote fix, seemed to be doing something, but ultimately same error message and inability to update afterwards. This is the new output

╭─[email protected] in ~
╰─λ update remote fix
[sudo] password for casper:
This will reset a few configuration files like pacman.conf 🛑Are you sure? (y/n)
y
--2022-09-28 19:20:09--  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)... 2a01:4f8:c2c:51e2::1, 78.46.178.133
Connecting to pkgbuild.com (pkgbuild.com)|2a01:4f8:c2c:51e2::1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4606712 (4.4M) [application/octet-stream]
Saving to: ‘/tmp/tmp.3Rl3xPBq6C’

/tmp/tmp.3Rl3xPBq6C         100%[=========================================>]   4.39M  3.71MB/s    in 1.2s

2022-09-28 19:20:12 (3.71 MB/s) - ‘/tmp/tmp.3Rl3xPBq6C’ 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.

--2022-09-28 19:20:12--  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)... 2606:4700:90:0:f22e:fbec:5bed:a9b9, 172.65.251.78
Connecting to gitlab.com (gitlab.com)|2606:4700:90:0:f22e:fbec:5bed:a9b9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2515 (2.5K) [text/plain]
Saving to: ‘/etc/pacman.conf’

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

2022-09-28 19:20:12 (77.8 MB/s) - ‘/etc/pacman.conf’ saved [2515/2515]

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

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

2022-09-28 19:20:13 (241 KB/s) - ‘/etc/pacman.d/mirrorlist’ saved [47261/47261]

--2022-09-28 19:20:13--  https://aur.chaotic.cx/mirrorlist.txt
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving aur.chaotic.cx (aur.chaotic.cx)... 2606:50c0:8000::153, 2606:50c0:8003::153, 2606:50c0:8001::153, ...
Connecting to aur.chaotic.cx (aur.chaotic.cx)|2606:50c0:8000::153|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5299 (5.2K) [text/plain]
Saving to: ‘/etc/pacman.d/chaotic-mirrorlist’

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

2022-09-28 19:20:14 (1.70 MB/s) - ‘/etc/pacman.d/chaotic-mirrorlist’ saved [5299/5299]

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/1C06683F00D1F7A18268BB135F55C2FD5B1F4125.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 12 keys.
==> Importing owner trust values...
gpg: setting ownertrust to 4
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: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
==> Disabling revoked keys in keyring...
-> Disabled 55 keys.
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:  12  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:  12  signed:  93  trust: 0-, 0q, 0n, 12m, 0f, 0u
gpg: depth: 2  valid:  73  signed:  28  trust: 73-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2022-11-16
gpg: key A6234074498E9CEE: 3 duplicate signatures removed
gpg: key A6234074498E9CEE: 1 signature reordered
gpg: key A6234074498E9CEE: "Christian Hesse (Arch Linux Package Signing) <[email protected]>" 6 signatures cleaned
gpg: key FBA220DFC880C036: "Nico Jensch (Chaotic-AUR) <[email protected]>" not changed
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:  12  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:  12  signed:  93  trust: 0-, 0q, 0n, 12m, 0f, 0u
gpg: depth: 2  valid:  73  signed:  28  trust: 73-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2022-11-16
gpg: Total number processed: 2
gpg:              unchanged: 1
gpg:     signatures cleaned: 6
-> Locally signed 2 keys.
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:  13  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:  13  signed:  92  trust: 1-, 0q, 0n, 12m, 0f, 0u
gpg: depth: 2  valid:  72  signed:  28  trust: 72-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2022-11-16
error: GPGME error: No data
:: Synchronizing package databases...
garuda is up to date
core                                  154.9 KiB   256 KiB/s 00:01 [------------------------------------] 100%
extra                                1712.6 KiB  1880 KiB/s 00:01 [------------------------------------] 100%
community                               7.0 MiB  6.41 MiB/s 00:01 [------------------------------------] 100%
multilib is up to date
chaotic-aur                             2.3 MiB  5.39 MiB/s 00:00 [------------------------------------] 100%
error: GPGME error: No data
error: failed to synchronize all databases (unexpected error)

╭─[email protected] in ~ as 🧙 took 46s
[🔴] ×

Check

ls /var/lib/pacman/sync/

If you have core.db.sig, take a look and see if it has a mess of HTML in it. See this post: /var/lib/pacman/sync get gunked up with HTML content / Pacman & Package Upgrade Issues / Arch Linux Forums

It looks like the useful intervention if you are in the same boat would be

rm -r /var/lib/pacman/sync/
3 Likes

I don't see HTML like that

How is it going? If you are not updating have you tried to use snapper to roll back to a day when updates worked?

also did you try the recommendation of

rm -r /var/lib/pacman/sync/

Are you by chance using more than 2-4 AUR downloaders? Octopi, discover, yay, pacman... ?

Still no updating... when I type that in the terminal I get this:

╰─λ rm -r /var/lib/pacman/sync/
rm: descend into write-protected directory '/var/lib/pacman/sync/'?

pretty newbie to terminal stuff so not sure exactly what this means.

No I'm pretty sure I only use pacman that is the default one with garuda right?

The prompt is asking for confirmation because you have asked it to delete stuff in a directory that you don't have permission to do that. It's basically saying, "Are you sure that is what you meant to type?"

ls /var/lib/pacman/ | grep sync
drwxr-xr-x - root 30 Sep 20:38  sync

This directory is only writeable by the owner, and the owner is root so you will have to run the command with sudo.

3 Likes

as @BluishHumility said you need to use the command

sudo rm -r /var/lib/pacman/sync/

You are logged in as a user. The directory is owned by "root" which has higher privileges than your user. The standard practice is to use the command sudo, which says "run the following stuff as a different user". The default user for sudo is root.

So the command above says "quickly log me in as root and run rm (remove) -r (recursively) the folder rm -r /var/lib/pacman/sync/. Recursively basically means delete any folder or file inside the folder listed.

Try that command and then upd to see if the issue is resolved

The wonderful creators of garuda have made garuda-update to help newer users update their programs.

Aliases were made to save key stroke, you can type update or just upd.

you are correct pacman is the standard PACage MANager for garuda, and you may still need to use that command. Pamac is a gui application to do updates.

If you install things from AUR you should use upd -a that will update aur programs as well.

To confuse things more there are many many ways to install things. You can get the code with git and compile itself. You might use curl to download a script or files to install. There are ways to install .deb files. You might use npm for node.js apps. Python uses pip. Rust programs can be installed with cargo.

There are also flatpak apps, app images, snap apps, docker containers. I have even used nix to install and update apps with arch distros.

There are actually many other ways to add applications to your system, but those are some common ways.

So for now use upd -a for updates but understand in time you will install and update applications with many tools.

Ok thank you for the detailed explanation! I ran that command with "sudo" and then did garuda-update and worked finally!

1 Like

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