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 !


Clear up some space first and then try something like this:
dpkg --force-all --configure -a apt --fix-broken install apt-get -f installI’ve had issues like that before and oftentimes it’s recoverable. A bit unfortunately if the wrong packages got damaged. Can be quite an effort to get it going again and it depends on the exact situation.
The first command worked, the second one is still showing up
http have died unexpectedly error 127are you able to ping a website? try this command “ping google.com” without quotes
Method http died unexpectedly 127means APT’s HTTP helper (usually curl/wget) was in a bad state when the disk filled. Chroot alone won’t fix it, run dpkg --configure -a first, and if http still fails, reinstall curl/apt-transport-https (manually via dpkg if needed), then apt --fix-broken install.You’ll have to download them manually as other people have mentioned, and resolve any missing dependencies during install the same way. Also check your network still works.
ping -c 3 1.1.1.1That’s the trick, local installation via
dpkgof the missing package itself (that you got another way) required to let apt get work.Hmm, sorry. I’d guess your internet connection doesn’t work any more. So apt can’t fetch the packages. That’s kind of hard to debug, though. You’d somehow need to fix networking before you can proceed. But we don’t really know what broke. And if that’s really the only issue at play.
Maybe a Live-USB stick and a rescue mode can help here?! Other than that I’m out of options.