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?

  • user28282912@piefed.social
    link
    fedilink
    English
    arrow-up
    9
    ·
    11 hours ago

    You might have too many old kernels installed. This would potentially fill up the /boot partition. One way to check this is:

    df -h

    Look for the line indicating space left for /boot.

    You can then get a list of the installed kernels with:

    dpkg --get-selections | grep -v deinstall | grep linux-image

    If you need to remove old ones, use uname -a to identify the running kernel (should be the latest version if you’ve rebooted after the last kernel update) then remove all of the older kernel packages with:

    sudo apt remove -y linux-image-amd64-xxxx

    More generally speaking, I think that sudo apt autoremove should leave you with only the latest 2 kernel packages by default.

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

      apt autoremove says dependencies are lacking

      apt --fix-broken install gives me: method http has died unexpectedly