Ubuntu Version:
25.10
Desktop Environment (if applicable):
GNOME
Problem Description:
I had a crash of my machine, an Ubuntu Desktop 25.10. And now when I try to update from terminal with :
sudo apt update && sudo apt upgrade
I get this error:
**3 packages can be upgraded. Run 'apt list --upgradable' to see them.**
**Error:** **Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)**
**Error:** **Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?**
then I tried to see if there were some locking process with:
sudo lsof /var/lib/dpkg/lock-frontend
but it didn’t return me any process but just a list of warning "can’t stat … "
then I did, anyway:
sudo rm /var/lib/dpkg/lock-frontend
but the error is still there.
How can I solve it?
Btw, should I check the ext4 boot disc? Can I check it from recovery in Ubuntu and how?
Thanks in advance for the answers! ![]()