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.
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?
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 sayupdate-initramfs
in the second line there, so I think it’s trying to update?Relevant output from
df -H
: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.