Every atp command returns an avalanche of errors, I freed up some space but the package management stuff seems gone and I can’t seem to fix it. Should I fresh install?

  • dontblink@feddit.itOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    11 hours ago

    I get dependency errors when trying to execute that dpkg command, other apt commands, if I execute --fix-broken I get:

    method http has died unexpectedly

    Other apt commands give me:

    Dependencies not met

    (I freed up disk space)

    • IsoKiero@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      4
      ·
      10 hours ago

      What errors excactly? Copy and paste what you’re getting from your terminal. Also post output of ‘df -h’.

    • lemmyreader@lemmy.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      10 hours ago

      This is usually the recommended way to fix such dependency problems.

      sudo apt-get -f install

      • dontblink@feddit.itOP
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        10 hours ago

        apt-get -f install

        I tried it already, but I get method http has died unexpectedly https subprocess error code 127

        • lemmyreader@lemmy.ml
          link
          fedilink
          English
          arrow-up
          4
          ·
          10 hours ago

          Another way to try to fix dependency problems, including complicated ones that apt cannot solve, is to use the magnificent aptitude deb helper. If you have aptitude not installed you can possibly still install it with dpkg. Download aptitude deb file and the aptitude-common deb file and save them to disk. For example for Debian : https://packages.debian.org/trixie/aptitude With dpkg it is in dependency problems situations still possible to install new software. Maybe dpkg --force-all or something like that is needed.

          Make sure to make backups of your valuable things first via a Linux live session.

          After you have aptitude installed, try e.g. :

          sudo aptitude update

          or

          sudo aptitude install ncdu (or install some other small program you didn’t have installed already)

          It may already show a suggestion solution.