I’m still a fairly new Linux-user (on Tuxedo OS), and I just ran into an issue that is new to me. If I try to update my system, either via command line or Discover, the apt update command fails. This is the output:

E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1635 (apt-get)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to lock directory /var/lib/apt/lists/

Process 1635 is apt-get update run by root, and persists through restart. I am tempted to try to kill it (kill 1635), but I’m not sure if anything could break from that, so I thought I’d try to ask for help first before I do something stupid.

  • Gellis12@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    zstd: error 25 : Write error : No space left on device (cannot write compressed block)

    What’s the output of df -H?

    Also, this sounds like it’s installing initramfs, which is normally only done when first installing the OS; can we get a list of the packages it’s trying to install/upgrade?

    • cyberwolfie@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      This shows up when running sudo apt update after having killed the process that is holding the lock. Where would I find out which packages it is trying to install or upgrade? It does say update-initramfs in the second line there, so I think it’s trying to update?

      Relevant output from df -H:

      /dev/nvme0n1p1           1,1G  945M   24M  98% /boot
      /dev/nvme0n1p2           536M  9,3M  527M   2% /boot/efi
      
      • Gellis12@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        Ok, there’s the problem. Your boot partition is pretty much full. You’re using partitions instead of lvm, so expanding the partition will be next to impossible; so start looking through /boot for stuff that’s safe to delete. It’s weird that you have so much stuff in there, I don’t think I’ve ever seen my boot partition go above 250mb used.