dpkg frontend lock

Post Reply
andawriter
Posts: 8
Joined: Mon Dec 14, 2020 8:59 am
dpkg frontend lock

Post by andawriter »

Hello Friends,

I need help.

After inputting all the pre-installation info via ssh, and the installation is about to proceed (Installation will take about 15 minutes...)

I got this error message on Putty 👇

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?
Error: apt-get upgrade failed

So the installation stopped.
I'm using a dedicated server. Prior the installation of myvestacp (my top choice among open source panels), I ran a sudo upgrade and update command of Debian 10. Everything was fine until I got the error above.

Thank you for any help. And thank you to the kind founder of myvestacp for your work on this fork.

User avatar
dpeca
Site Admin
Posts: 550
Joined: Fri Jun 19, 2020 9:59 am
Your location: Serbia, Niš and Belgrade
First name and last name: Predrag Damnjanović
Re: Installation Error

Post by dpeca »

You obviously have some 'apt' proccess that get locked in background.

Try to unlock it by following this: https://itsfoss.com/could-not-get-lock-error/

p.s. Check if you are running 'apt' as root?

andawriter
Posts: 8
Joined: Mon Dec 14, 2020 8:59 am
Re: Installation Error

Post by andawriter »

I wish to publicly thank Sir Dpeca, the founder of myVestacp, for his kindness and for his time in helping me fixed this issue. All the websites that provide solutions to the above error were not enough to fix the problem.

Dpeca suggested this solution before executing the installation script:

Code: Select all

sudo bash
cd ~

User avatar
dpeca
Site Admin
Posts: 550
Joined: Fri Jun 19, 2020 9:59 am
Your location: Serbia, Niš and Belgrade
First name and last name: Predrag Damnjanović
Re: Installation Error

Post by dpeca »

Yes, because you were not 'root' but local user, and that's why apt was locked.


Post Reply