• Re: Help installing gdb package using apt

    From The Wanderer@21:1/5 to Demetrius Stanton on Mon Jul 15 15:40:02 2024
    This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
    On 2024-07-15 at 07:42, 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%2bdeb12u*4*_amd64.deb.

    How do I proceed forward from here?

    I posed this question to <debian-release@lists.debian.org> and received the following in response:

    <snip>

    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.

    <snip>

    You should provide additional information (and will be asked to do so if
    you do not), since what you give above is a bit sketchy. In particular, I suggest you include in the question a copy of your /etc/apt/sources.list
    and any files that are in the directory /etc/apt/sources.list.d.

    <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

    <snip>

    Err:1 https://deb.debian.org/debian bookworm/main amd64 libc6-dbg amd64 2.36-9+deb12u4
    404 Not Found [IP: 2a04:4e42:d::644 443]
    E: Failed to fetch https://deb.debian.org/debian/pool/main/g/glibc/libc6-dbg_2.36-9%2bdeb12u4_amd64.deb
    404 Not Found [IP: 2a04:4e42:d::644 443]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

    So now I'm reaching out.
    Here's the info that was recommended I add:

    $ cat /etc/apt/sources.list
    # deb cdrom:[Debian GNU/Linux 12.2.0 _Bookworm_ - Official amd64 DVD
    Binary-1 with firmware 20231007-10:29]/ bookworm main non-free-firmware
    deb https://deb.debian.org/debian/ bookworm main contrib
    $ ls /etc/apt/sources.list.d/
    brave-browser-release.list google-chrome.list vscode.list
    $ cat /etc/apt/sources.list.d/brave-browser-release.list
    deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main
    $ cat /etc/apt/sources.list.d/google-chrome.list
    ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
    # You may comment out this entry, but any other modifications may be lost. deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
    $ cat /etc/apt/sources.list.d/vscode.list
    ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
    # You may comment out this entry, but any other modifications may be lost. deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/repos/code
    stable main

    This sources.list file is missing entries for the portions of the
    archive that contain the debug-symbols packages.

    For comparison, here is a trio of successive lines from my own
    sources.list:

    deb http://ftp.us.debian.org/debian/ testing main non-free non-free-firmware contrib
    deb-src http://ftp.us.debian.org/debian/ testing main non-free non-free-firmware contrib
    deb http://debug.mirrors.debian.org/debian-debug/ testing-debug main non-free non-free-firmware contrib

    These specify where APT should look for A: the binary packages, B: the
    source packages, and D: the debug-symbols packages, for Debian testing.

    (I configure sources list with the names 'stable', 'testing', and 'sid',
    rather than using the release codenames; I do this on purpose, but it is typically recommended to use the release codenames, and you are probably correct for your situation that you use them.)


    Try adding

    deb https://debug.mirrors.debian.org/debian-debug/ bookworm-debug main
    contrib

    (and/or similar for any other official Debian repositories you want to
    get debug packages from), and repeating the suggested 'apt update'
    command, then installing the desired package(s) again.

    I don't think a full-upgrade will be necessary in your circumstances,
    although it would *probably* not hurt. If the install attempt still
    fails, you can try 'apt full-upgrade' and see whether it produces
    something reasonable.

    If there's anything you can suggest to help, it would be greatly
    appreciated!

    I hope that is enough to lead you somewhere useful!

    --
    The Wanderer

    The reasonable man adapts himself to the world; the unreasonable one
    persists in trying to adapt the world to himself. Therefore all
    progress depends on the unreasonable man. -- George Bernard Shaw


    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEEJCOqsZEc2qVC44pUBKk1jTQoMmsFAmaVJQcACgkQBKk1jTQo MmvMehAArW7/So1c/tI98amNu31f0I9GD3jO++YwBNQq/zUYE2yVQuGF8oWC54z6 1wBNfNbjXfZMTRse5lVWDX+kZCV3njI+OXKivCkyB+UgQe0r61oLBeVbkUsQnuiw zY3Bm02hgGISdIzBXs+nqjVKJo3OprGtIL8qqrn/CU2OghtN2p4sbwFmYtgz5vPS K+fP0+pxygGSJc+fVix7mFWRQbH/yJLVV6fNrsDa8GMzo8dWYQ9MQ6e2THLPHeWR D4ICxuIlpLwm8j3qetC9tb6oa+8q3jg9kJyqLV8zBnvjD2nH1LIYhpyk8db5mr0j eZC1Jm54xebvaLDY5QAGV+rh0CXaLrMj5Y3+2pPdDGvvU7liGm52Rj+uWYx1LL2r TukKSf59rTmXfWGRgnDz9haFqLf+zXswzpxPcv0tRTQlXsSR7r2Bo2rNGNlt2ywh RhO7ziRtVtfshZBHxZQgE/55iMBbgOT93c9xVy1tMI6Fryjp6I3l/yrHKtlUr2WA T9Ca5GoPGxQkPoIsQNaUVaFtQ2XX0qehZHOAf82zCCnn/xgK9hqbwDcdk38HqkIQ KBrs7xk6uZml1pxpaf9jG3roUIKHNZUIFHDjQdhRAKEw28uRHXJzmn97Y5bZczat Ow1zeKYLQtDH25wS6O63PLEbATj/
  • From Tom Dial@21:1/5 to Demetrius Stanton on Tue Jul 16 01:30:01 2024
    Hi Demetrius.

    See the embedded observations below.



    On 7/15/24 05:42, 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%2bdeb12u <https://deb.debian.org/debian/pool/main/g/glibc/libc6-dbg_2.36-9%2bdeb12u>*4*_amd64.deb. When I navigate to the https://deb.debian.org/debian/pool/main/g/glibc/ <https://deb.debian.org/debian/pool/main/g/glibc/> site, I'm able to
    find  libc6-dbg_2.36-9+deb12u*7*_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-release@lists.debian.org <mailto:debian-release@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:

    You would do better to ask this question on the debian-user list (debian-user@lists.debian.org <mailto:debian-user@lists.debian.org>). It is a fairly active list that includes people with a wide range of knowledge and who generally are willing to help.

    You should provide additional information (and will be asked to do so if you do not), since what you give above is a bit sketchy. In particular, I suggest you include in the question a copy of your /etc/apt/sources.list and any files that are in the
    directory /etc/apt/sources.list.d. It might also be useful to include a copy of your /etc/debian_version and /etc/os-release files, which will establish the exact update level of your system.

    In general, it is probably a bad idea to poke around in /debian/pool/ in the distribution repository for things to install. Those directories contain software for several releases and mixing versions from different releases may, as you suspect, result
    in an unstable system. Using apt is much safer, but depends on correct setup of the files in the /etc/apt/ directory that describe the range of software installed.

    Regards,
    <redacted>
    "
    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 <https://dl.google.com/linux/chrome/deb> stable InRelease
    Hit:2 https://deb.debian.org/debian <https://deb.debian.org/debian> bookworm InRelease
    Hit:3 https://packages.microsoft.com/repos/code <https://packages.microsoft.com/repos/code> stable InRelease
    Hit:4 https://brave-browser-apt-release.s3.brave.com <https://brave-browser-apt-release.s3.brave.com> stable InRelease
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    All packages are up to date.
    N: Repository 'Debian bookworm' changed its 'firmware component' value from 'non-free' to 'non-free-firmware'
    N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.html#non-free-split <https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.
    html#non-free-split>
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Calculating upgrade... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    $ sudo apt install gdb -y
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following additional packages will be installed:
      libbabeltrace1 libboost-regex1.74.0 libc6-dbg libdebuginfod-common libdebuginfod1 libipt2 libsource-highlight-common
      libsource-highlight4v5
    Suggested packages:
      gdb-doc gdbserver
    The following NEW packages will be installed:
      gdb libbabeltrace1 libboost-regex1.74.0 libc6-dbg libdebuginfod-common libdebuginfod1 libipt2 libsource-highlight-common
      libsource-highlight4v5
    0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
    Need to get 7,458 kB/12.5 MB of archives.
    After this operation, 28.4 MB of additional disk space will be used.
    Err:1 https://deb.debian.org/debian <https://deb.debian.org/debian> bookworm/main amd64 libc6-dbg amd64 2.36-9+deb12u4

    This version of libc6-dbg, 2.36-9+deb12u4, is not the current one, and it is not in the repository. This error may go away if you update your installation to the current release, 12.6 (see below, at the contents of /etc/debian_version).

      404  Not Found [IP: 2a04:4e42:d::644 443]
    E: Failed to fetch https://deb.debian.org/debian/pool/main/g/glibc/libc6-dbg_2.36-9%2bdeb12u4_amd64.deb <https://deb.debian.org/debian/pool/main/g/glibc/libc6-dbg_2.36-9%2bdeb12u4_amd64.deb>  404  Not Found [IP: 2a04:4e42:d::644 443]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

    So now I'm reaching out.
    Here's the info that was recommended I add:

    $ cat /etc/apt/sources.list
    # deb cdrom:[Debian GNU/Linux 12.2.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20231007-10:29]/ bookworm main non-free-firmware
    deb https://deb.debian.org/debian/ <https://deb.debian.org/debian/> bookworm main contrib

    You probably should also include non-free-firmware in this entry unless you are certain your system has no hardware that might require it. Laptop wifi, some video and other peripheral devices may require proprietary/binary firmware from this section of
    the repository.

    This probably did not cause your problem, however.

    $ ls /etc/apt/sources.list.d/
    brave-browser-release.list  google-chrome.list  vscode.list

    $ cat /etc/apt/sources.list.d/brave-browser-release.list
    deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ <https://brave-browser-apt-release.s3.brave.com/> stable main

    $ cat /etc/apt/sources.list.d/google-chrome.list
    ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
    # You may comment out this entry, but any other modifications may be lost. deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ <https://dl.google.com/linux/chrome/deb/> stable main

    $ cat /etc/apt/sources.list.d/vscode.list
    ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
    # You may comment out this entry, but any other modifications may be lost. deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/repos/code <https://packages.microsoft.com/repos/code> stable main

    $ cat /etc/debian_version
    12.5

    This indicates your Debian installation is not up to date. The present release level is 12.6, and the update to 12.7 will will be released in a few weeks. Fixing this may correct the problem in which apt tries to download an old version of libc6-dbg (
    probably the one corresponding to your installed version of libc6.

    Regards,
    Tom Dial

    $ cat /etc/os-release
    PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
    NAME="Debian GNU/Linux"
    VERSION_ID="12"
    VERSION="12 (bookworm)"
    VERSION_CODENAME=bookworm
    ID=debian
    HOME_URL="https://www.debian.org/ <https://www.debian.org/>" SUPPORT_URL="https://www.debian.org/support <https://www.debian.org/support>" BUG_REPORT_URL="https://bugs.debian.org/ <https://bugs.debian.org/>"

    If there's anything you can suggest to help, it would be greatly appreciated!

    Demetrius Stanton

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)