Dpkg frontend lock

Good morning

I have DietPi v9.7.1 : 07:41 - Tue 08/27/24 on raspberry pi 3 + pizigate.

I am installing ‘home-assistant-supervised’. Everything was working fine untill installing udisks2 package. Now, i have this :
$ sudo apt update && apt upgrade
Hit:1 Index of /debian bookworm InRelease
Hit:2 Index of /debian bookworm-updates InRelease
Hit:3 https://deb.debian.org/debian-security bookworm-security InRelease
Hit:4 Index of /debian bookworm-backports InRelease
Hit:5 Index of /apt bookworm InRelease
Hit:6 Index of /apt all InRelease
Hit:7 Index of /debian bookworm InRelease
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
All packages are up to date.
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

Should i do a ‘sudo apt --fix-broken install’ to fix the problem ???

sudo apt update && apt upgrade
Incorrect

sudo apt update && sudo apt upgrade -y

Two commands on original post…sudo apt update…but not sudo on apt upgrade…can’t upgrade unless you sudo…2nd entry will work

Sorry for the question !!!

Thank you

no worries…it’s a learning curve and asking questions is the only way to learn

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.