On Mon, Jul 15, 2024 at 11:07 AM Demetrius Stanton wrote: > > Hi! > > My name is Demetrius Stanton. It was suggested that I reach out for a problem > I'm experiencing trying to install gdb on my system. I'm willing to submit > whatever information is necessary to try and get this issue resolved. > > I recently encountered a weird error, and I can't seem to find a fix online. > When I run the command ` sudo apt update && sudo apt install gdb -y `, I > receive an 404 error stating failed to fetch > https://deb.debian.org/debian/pool/main/g/glibc/libc6-dbg_2.36-9%2bdeb12u4_amd64.deb. > When I navigate to the https://deb.debian.org/debian/pool/main/g/glibc/ > site, I'm able to find libc6-dbg_2.36-9+deb12u7_amd64.deb. Though I'm > reasonably confident I could use wget to download and then dpkg to install > this file, I am concerned I could adversely affect the stability of my > system. I'm sure it would be safer for me to use apt to manage my packages. > > How do I proceed forward from here? > > I posed this question to <debian-rele...@lists.debian.org> and received the > following in response: > > " > Welcome to Debian. > > You might be able to resolve this issue you have by running > > sudo apt update > > followed by > > sudo apt full-upgrade > > and resolve resulting errors, if any occur, and then try reinstalling gdb. > The particular error - attempting to fetch and install what looks like an out > of date version of libc6-dbg_2.36-9 - suggests your system might not be fully > up to date. If that helps, good; otherwise:
<.. snip ..> > Attempting the prescribed fix yielded the following: > > $ sudo apt update && sudo apt full-upgrade > [sudo] password for demetrius: > Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease > Hit:2 https://deb.debian.org/debian bookworm InRelease > Hit:3 https://packages.microsoft.com/repos/code stable InRelease > Hit:4 https://brave-browser-apt-release.s3.brave.com stable InRelease You're missing bookworm-security and bookworm-updates from your sources list. Try it again with them in your /etc/apt/sources.list lee@laptop:~$ cat /etc/apt/sources.list #deb cdrom:[Debian GNU/Linux 12.5.0 _Bookworm_ - Official amd64 NETINST with firmware 20240210-11:27]/ bookworm contrib main non-free-firmware deb http://deb.debian.org/debian/ bookworm main non-free-firmware deb-src http://deb.debian.org/debian/ bookworm main non-free-firmware deb http://security.debian.org/debian-security bookworm-security main non-free-firmware deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware # bookworm-updates, to get updates before a point release is made; # see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports deb http://deb.debian.org/debian/ bookworm-updates main non-free-firmware deb-src http://deb.debian.org/debian/ bookworm-updates main non-free-firmware Regards, Lee