APT broken

  • This topic has 2 replies, 2 voices, and was last updated Sep 18-2:45 am by jeffmernier.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #116843
    Member
    jeffmernier

      Hi Folks,

      This is about VBox Client:

      uname -a
      Linux antix 6.1.42-antix.1-amd64-smp #1 SMP PREEMPT_DYNAMIC Mon Jul 31 18:30:05 EEST 2023 x86_64 GNU/Linux
      lsb_release -a
      No LSB modules are available.
      Distributor ID: Debian
      Description:    Debian GNU/Linux 12 (bookworm)
      Release:        12
      Codename:       bookworm
      

      Apparently it looks like a DNS resolver issue but is not.

      Yesterday I upgraded from AntiX-22 to 23 rebooted a few times and all things were OK. Today, I cloned a snapshot (22) and deleted others unnecessary snapshots. I started 23 and I could not get the cursor to enter my username. I ssh into it and noticed the apt broke (the messages below). First, I thought I’ve booted the cloned one(22) and maybe something got wrong during cloning. But then I realized was the 23, which had no reason to break. However, now I ended up with a broken apt, I tried: apt --fix-missing update
      and manually installed some lib’s but who knows how many lib’s are corrupted. Any thoughts?

      apt update
      /usr/lib/apt/methods/http: error while loading shared libraries: /lib/x86_64-linux-gnu/libffi.so.8: invalid ELF header
      /usr/lib/apt/methods/http: error while loading shared libraries: /lib/x86_64-linux-gnu/libffi.so.8: invalid ELF header
      /usr/lib/apt/methods/http: error while loading shared libraries: /lib/x86_64-linux-gnu/libffi.so.8: invalid ELF header
      /usr/lib/apt/methods/http: error while loading shared libraries: /lib/x86_64-linux-gnu/libffi.so.8: invalid ELF header
      /usr/lib/apt/methods/http: error while loading shared libraries: /lib/x86_64-linux-gnu/libffi.so.8: invalid ELF header
      Reading package lists... Done
      E: Method http has died unexpectedly!
      E: Sub-process http returned an error code (127)
      E: Method /usr/lib/apt/methods/http did not start correctly
      E: Method http has died unexpectedly!
      E: Sub-process http returned an error code (127)
      E: Method /usr/lib/apt/methods/http did not start correctly
      E: Method http has died unexpectedly!
      E: Sub-process http returned an error code (127)
      E: Method /usr/lib/apt/methods/http did not start correctly
      E: Method http has died unexpectedly!
      E: Sub-process http returned an error code (127)
      E: Method /usr/lib/apt/methods/http did not start correctly
      E: Method http has died unexpectedly!
      E: Sub-process http returned an error code (127)
      E: Method /usr/lib/apt/methods/http did not start correctly
      E: Failed to fetch http://mxlinux.mirrors.uk2.net/packages/antix/bookworm/dists/bookworm/InRelease  
      E: Failed to fetch http://deb.debian.org/debian/dists/bookworm-backports/InRelease  
      E: Failed to fetch http://ftp.us.debian.org/debian/dists/bookworm-updates/InRelease  
      E: Failed to fetch http://ftp.us.debian.org/debian/dists/bookworm/InRelease  
      E: Failed to fetch http://security.debian.org/dists/bookworm-security/InRelease  
      E: Some index files failed to download. They have been ignored, or old ones used instead.

      Thanks a lot!

      • This topic was modified 9 months, 2 weeks ago by jeffmernier.
      • This topic was modified 9 months, 2 weeks ago by jeffmernier.
      • This topic was modified 9 months, 2 weeks ago by jeffmernier.
      #116859
      Member
      sybok

        Based on my brief web-search:

        1) HTTP(S) status codes: 127 does not seem to be a valid response code; see: http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
        2) 127: SHell return code, not found in path; see: http://stackoverflow.com/questions/1763156/127-return-code-from
        3) Search: “libffi.so.8” “invalid ELF header” leads to: http://forum.maboxlinux.org/t/laptop-behaves-strangely-libffi-so-8-invalid-elf-header/1148/3

        The suggestion in the link in the 3rd item is to use a different kernel (if you have another one installed).
        If not resolved, check the “biteness” of your VBox machine and the ISO used to install agree (also mentioned there as a suspect).

        If the issue persists, you could try a more verbose debugging (it seems that ‘apt[-get]’ does not have a verbose switch) using
        set -x; apt update; set +x
        where the ‘set +/-x’ will result into a lot of stuff being printed into the console (it is advisable to increase the number of scroll-back lines, i.e. that can be displayed in your terminal, before you proceed).

        #117068
        Member
        jeffmernier

          Thanks sybok! Tried the previous kernel 5.10.142, no difference.

          set -x; apt update; set +x does not produce any verbose

          This is the extent of the corrupted files:

          missing     /usr/share/doc/libavc1394-0/changelog.Debian.gz
          missing     /usr/share/doc/libavc1394-0/changelog.gz
          missing     /usr/share/doc/libgraphite2-3/changelog.Debian.gz
          missing     /usr/share/doc/libgraphite2-3/changelog.gz
          missing     /usr/share/doc/numix-square-antix/changelog.gz
          missing     /usr/share/doc/live-boot-docs-antix/changelog.gz
          missing     /usr/share/doc/xinit/NEWS.Debian.gz
          missing     /usr/share/doc/xinit/changelog.Debian.gz
          missing     /usr/share/doc/xinit/changelog.gz
          ??5??????   /usr/share/applications/clipit.desktop
          missing     /usr/share/doc/clipit/changelog.Debian.gz
          missing     /usr/share/doc/clipit/changelog.gz
          missing     /usr/share/icons/ubuntu-mono-dark
          missing     /usr/share/icons/ubuntu-mono-dark/apps
          missing     /usr/share/icons/ubuntu-mono-dark/apps/16
          missing     /usr/share/icons/ubuntu-mono-dark/apps/16/clipit-trayicon-offline.svg
          missing     /usr/share/icons/ubuntu-mono-dark/apps/16/clipit-trayicon.svg
          missing     /usr/share/icons/ubuntu-mono-light
          missing     /usr/share/icons/ubuntu-mono-light/apps
          missing     /usr/share/icons/ubuntu-mono-light/apps/16
          missing     /usr/share/icons/ubuntu-mono-light/apps/16/clipit-trayicon-offline.svg
          missing     /usr/share/icons/ubuntu-mono-light/apps/16/clipit-trayicon.svg
          missing     /usr/share/doc/libmodplug1/README.gz
          missing     /usr/share/doc/libmodplug1/changelog.Debian.gz
          missing     /usr/share/doc/libmodplug1/changelog.gz
          missing     /usr/share/doc/libice6/changelog.Debian.gz
          missing     /usr/share/doc/libice6/changelog.gz
          missing     /usr/share/doc/libvo-amrwbenc0/NOTICE.amrwbenc.gz
          missing     /usr/share/doc/libvo-amrwbenc0/NOTICE.gz
          missing     /usr/share/doc/libvo-amrwbenc0/changelog.Debian.gz
          missing     /usr/share/doc/libvo-amrwbenc0/changelog.gz
          missing     /lib/udev/rules.d/92-console-font.rules
          missing     /usr/share/doc/libxau6/changelog.Debian.gz
          missing     /usr/share/doc/libxau6/changelog.gz
          missing     /usr/share/doc/libxdmcp6/changelog.Debian.gz
          missing     /usr/share/doc/libxdmcp6/changelog.gz
          missing     /usr/share/doc/xfonts-intl-asian/NEWS.gz
          missing     /usr/share/doc/xfonts-intl-asian/changelog.Debian.gz
          missing     /usr/share/doc/xfonts-intl-asian/changelog.gz
          missing     /usr/share/doc/libraw1394-11/changelog.Debian.gz
          missing     /usr/share/doc/libraw1394-11/changelog.gz
          missing     /usr/share/doc/libvte-common/changelog.Debian.gz
          missing     /usr/share/doc/libvte-common/changelog.gz
          missing     /usr/share/doc/elinks-data/AUTHORS.gz
          missing     /usr/share/doc/elinks-data/changelog.Debian.gz
          missing     /usr/share/doc/elinks-data/changelog.gz
          ??5??????   /usr/lib/x86_64-linux-gnu/libcodec2.so.1.0
          missing     /usr/share/doc/libsodium23/AUTHORS.gz
          missing     /usr/share/doc/libsodium23/changelog.Debian.gz
          missing     /usr/share/doc/libsodium23/changelog.gz
          missing     /usr/share/doc/roxterm-gtk2/changelog.Debian.gz
          missing     /usr/share/doc/roxterm-gtk2/changelog.gz
          missing     /usr/share/doc/dvd+rw-tools/changelog.Debian.amd64.gz
          missing     /usr/share/doc/dvd+rw-tools/changelog.Debian.gz
          missing     /usr/share/doc/dvd+rw-tools/changelog.gz
          missing     /usr/share/doc/freeglut3/changelog.Debian.gz
          missing     /usr/share/doc/freeglut3/changelog.gz
          missing     /usr/share/doc/desktop-file-utils/NEWS.gz
          missing     /usr/share/doc/desktop-file-utils/changelog.Debian.gz
          missing     /usr/share/doc/desktop-file-utils/changelog.gz
          missing     /usr/share/doc/reiserfsprogs/changelog.Debian.gz
          missing     /usr/share/doc/reiserfsprogs/changelog.gz
          missing     /usr/share/doc/fluxbox-base-themes-antix/changelog.gz
          missing     /usr/share/doc/libgdk-pixbuf-xlib-2.0-0/changelog.Debian.gz
          missing     /usr/share/doc/liblockfile-bin/changelog.Debian.amd64.gz
          missing     /usr/share/doc/liblockfile-bin/changelog.Debian.gz
          missing     /usr/share/doc/liblockfile-bin/changelog.gz
          missing     /usr/share/doc/mime-support/changelog.gz
          missing     /usr/share/doc/libshine3/changelog.Debian.gz
          missing     /usr/share/doc/libshine3/changelog.gz
          missing     /usr/share/doc/dict/NEWS.Debian.gz
          missing     /usr/share/doc/dict/README.Debian.gz
          missing     /usr/share/doc/dict/changelog.Debian.gz
          missing     /usr/share/doc/dict/changelog.gz
          missing     /usr/share/doc/hicolor-icon-theme/NEWS.gz
          missing     /usr/share/doc/hicolor-icon-theme/changelog.Debian.gz
          missing     /usr/share/doc/hicolor-icon-theme/changelog.gz
          missing     /usr/share/doc/streamripper/README.gz
          missing     /usr/share/doc/streamripper/changelog.Debian.amd64.gz
          missing     /usr/share/doc/streamripper/changelog.Debian.gz
          missing     /usr/share/doc/streamripper/changelog.gz
          missing     /usr/share/doc/desktop-defaults-full-antix/changelog.gz
          missing     /usr/lib/libglide.so.3
          missing     /usr/share/doc/console-common/changelog.gz
          missing     /usr/share/doc/libhyphen0/README.hyphen.gz
          missing     /usr/share/doc/libhyphen0/README.nonstandard.gz
          missing     /usr/share/doc/libhyphen0/changelog.Debian.gz
          missing     /usr/share/doc/libhyphen0/changelog.gz
          missing     /usr/share/doc/firmware-linux-free/changelog.Debian.gz
          missing     /usr/share/doc/volumeicon-alsa-icons/changelog.gz
          missing     /usr/share/doc/hunspell-fr/changelog.Debian.gz
          missing     /usr/share/doc/xlockmore/HACKERS.GUIDE.gz
          missing     /usr/share/doc/xlockmore/README.gz
          missing     /usr/share/doc/xlockmore/Revisions.gz
          missing     /usr/share/doc/xlockmore/TODO.gz
          missing     /usr/share/doc/xlockmore/buildinfo_amd64.gz
          missing     /usr/share/doc/xlockmore/cell_automata.gz
          missing     /usr/share/doc/xlockmore/changelog.Debian.gz
          missing     /usr/share/doc/libx86-1/changelog.Debian.gz
          missing     /usr/share/doc/libsoxr0/changelog.Debian.gz
          missing     /usr/share/doc/libjq1/changelog.Debian.gz
          missing     /usr/share/doc/libjq1/changelog.gz
          missing     /usr/share/doc/prettypink-themes/changelog.gz
          ??5??????   /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.7400.6
          missing     /usr/share/doc/vbetool/changelog.Debian.gz
          missing     /usr/share/doc/xsettingsd/changelog.Debian.gz
          ??5??????   /usr/sbin/genl
          missing     /usr/share/doc/libsidplay1v5/changelog.Debian.gz
          missing     /usr/share/doc/pm-utils/HOWTO.hooks.gz
          missing     /usr/share/doc/pm-utils/changelog.Debian.gz
          missing     /usr/share/doc/pm-utils/changelog.gz
          missing     /usr/share/doc/libpgm-5.3-0/changelog.Debian.gz
          missing     /usr/share/doc/libev4/changelog.Debian.gz
          missing     /usr/share/doc/libev4/changelog.gz
          missing     /usr/share/doc/libijs-0.35/README.gz
          missing     /usr/share/doc/libijs-0.35/changelog.Debian.gz
          missing     /usr/share/doc/po-debconf/README-trans.gz
          missing     /usr/share/doc/po-debconf/changelog.gz
          missing     /usr/share/doc/libgtk2.0-0/changelog.Debian.gz
          missing     /usr/share/doc/jfsutils/NEWS.gz
          missing     /usr/share/doc/jfsutils/changelog.Debian.gz
          missing     /usr/share/doc/jfsutils/changelog.gz
          missing     /usr/share/doc/libjte2/changelog.Debian.gz
          missing     /usr/share/doc/libjte2/changelog.gz
          
          • This reply was modified 9 months, 1 week ago by jeffmernier.
        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.