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 !


I tried it already, but I get
method http has died unexpectedlyhttps subprocess error code 127Another 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 updateor
sudo aptitude install ncdu(or install some other small program you didn’t have installed already)It may already show a suggestion solution.