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?

SOLUTION: Okay first of all thanks to all the people who replied to me and pointed me to the right direction, the issue was I was having full disk space and missing a few apt libraries which prevented the commands to run succesfully. I solved by freeing up some space, chrooting inside my corrupted environment from a live USB (there’s plenty of guides online on how to do this correctly), I downloaded (from debian package search) and installed manually with dpkg a few packages: apt-transport-https, curl, and libnettle8t64 which apt-transport-https required and which was the one actually solving the problem. After that apt --fix-broken install could run succesfully and every further apt command worked without issues, upgraded the system and now it is booting fine! Again, thank you so much @mumblerfish@lemmy.world, @utopiah@lemmy.ml @hendrik@palaver.p3x.de, @ThanksForAllTheFish@sh.itjust.works, @BassTurd@lemmy.world, @IsoKiero@sopuli.xyz !

    • Chris@feddit.uk
      link
      fedilink
      English
      arrow-up
      11
      arrow-down
      2
      ·
      2 months ago

      Yeah, you need a sudo in front of it otherwise it won’t work.

    • BassTurd@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 months ago

      And to clarify to those that don’t know what it does, it will recursively and forcibly remove everything in the / directory, which is the root directory. Run the command and it all dies.

      • IsoKiero@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 months ago

        Run the command and it all dies.

        And all of your data on that machine is gone as well.

      • Jack@slrpnk.net
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        2 months ago

        Well Linux will stop you I think if you run it without --no-preserve-root