Unable to install and run GDB (GNU's debugger) on a bootable flash drive

Unable to install and run successfully GNU’s debugger called as GDB for C Programming language. I used Pacman to install it. But when running it, it says:

gdb: error while loading shared libraries: libguile-3.0.so.1: cannot open shared object file: No such file or directory

Sounds like you didn’t run a full system update before installing the application to me.


I tried sudo garuda-update and it didn’t help much. If you have any alternatives, please help!

sudo pacman -S gdb
Abhängigkeiten werden aufgelöst …
Nach in Konflikt stehenden Paketen wird gesucht …

Paket (3)               Neue Version  Netto-Veränderung  Größe des Downloads

extra/gdb-common        14.2-2                 1,03 MiB             0,10 MiB
extra/source-highlight  3.1.9-12               3,17 MiB             0,65 MiB
extra/gdb               14.2-2                10,98 MiB             4,45 MiB

Gesamtgröße des Downloads:              5,21 MiB
Gesamtgröße der installierten Pakete:  15,18 MiB

:: Installation fortsetzen? [J/n] 
:: Pakete werden empfangen …
 gdb-common-14.2-2-x86_64                                                                          105,4 KiB  85,7 KiB/s 00:01 [-----------------------------------------------------------------------------] 100%
 gdb-14.2-2-x86_64                                                                                   4,5 MiB  2,13 MiB/s 00:02 [-----------------------------------------------------------------------------] 100%
 source-highlight-3.1.9-12-x86_64                                                                  667,3 KiB   277 KiB/s 00:02 [-----------------------------------------------------------------------------] 100%
 Gesamt (3/3)                                                                                        5,2 MiB  2,13 MiB/s 00:02 [-----------------------------------------------------------------------------] 100%
(3/3) Schlüssel im Schlüsselbund werden geprüft                                                                                [-----------------------------------------------------------------------------] 100%
(3/3) Paket-Integrität wird überprüft                                                                                          [-----------------------------------------------------------------------------] 100%
(3/3) Paket-Dateien werden geladen                                                                                             [-----------------------------------------------------------------------------] 100%
(3/3) Auf Dateikonflikte wird geprüft                                                                                          [-----------------------------------------------------------------------------] 100%
(3/3) Verfügbarer Festplattenspeicher wird ermittelt                                                                           [-----------------------------------------------------------------------------] 100%
:: Pre-transaction-Hooks werden gestartet …
(1/2) Rejecting pacman transaction if running in snapshot...
(2/2) Performing snapper pre snapshots for the following configurations...
==> root: 255
:: Paketänderungen werden verarbeitet …
(1/3) Installiert wird source-highlight                                                                                        [-----------------------------------------------------------------------------] 100%
Optionale Abhängigkeiten für source-highlight
    lesspipe: src-hilite-lesspipe.sh
(2/3) Installiert wird gdb-common                                                                                              [-----------------------------------------------------------------------------] 100%
(3/3) Installiert wird gdb                                                                                                     [-----------------------------------------------------------------------------] 100%
:: Post-transaction-Hooks werden gestartet …
(1/7) Arming ConditionNeedsUpdate...
(2/7) Foreign/AUR package notification
=> No foreign/AUR packages found.
(3/7) Orphaned package notification...
qt-sudo r7.176507a-1
qtermwidget 2.0.0-2
(4/7) Checking for .pacnew and .pacsave files...
(5/7) Updating the info directory file...
(6/7) Performing snapper post snapshots for the following configurations...
==> root: 256
(7/7) Syncing all file systems...
GNU gdb (GDB) 14.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:

For help, type "help".
Type "apropos word" to search for commands related to "word".

What is the exact package name? If it’s that one, it’s usually caused by what I’ve written above (because it’s in Arch repos)


1 Like

By the way, I’m running garuda linux on a bootable flash drive.

You mean you are on a live USB?
If so, installing packages (and especially updating the entire system) might be quite challenging (although sometimes it works) and what’s more, live USB are not persistent, so you’ll loose everything at shutdown.


I’m not really concerned about loosing everything while it shutdowns. I previously used to install a couple of packages like “nasm” assembler. Sometimes it used to work and sometimes it doesn’t. It says: nasm: /usr/lib/libc.so.6: version GLIBC_2.38’ not found (required by nasm)`

Yes, all these library issues are normally due to the fact that a live USB is by definition not up-to-date, and garuda-update will throw a lot of warninngs and errors, but sometimes for strange reasons you mighrt achieve the update, then you should be able to install those packages.

1 Like

Do you have any silver bullet command that might help? I love garuda linux despite of it’s challenges.

No, sorry, I’ve never used live USB like this (to install something on it), but only to use garuda-chroot or reinstall GRUB…
Just try a garuda-update and then installing what you need, but I don’t have much hope.

1 Like

Nevertheless, thank you all for your time.

1 Like

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