Could not get lock /var/lib/dpkg/lock-frontend – open (11: Resource temporarily unavailable)E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? problem resolved

Posted: 16 Feb 2019 in kali Linux
Tags:

Could not get lock /var/lib/dpkg/lock-frontend – open (11: Resource temporarily unavailable)E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

If you getting such error you can easily resolved this in just few simple steps

 

explanation; When I trying to install vsftpd package i get this error:

root@kali:~# apt-get install vsftpd
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

 

Now see how i resolved this problem

 

root@kali:~# rm /var/lib/apt/lists/lock
root@kali:~# rm /var/cache/apt/archives/lock
root@kali:~# rm /var/lib/dpkg/lock*

You can also run one more command:

root@kali:~#killall apt apt-get

 

After running the above command the problem solved.

You can see the above image too or see the below output to analyse the truth.

 

root@kali:~# apt-get install vsftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
vsftpd
0 upgraded, 1 newly installed, 0 to remove and 1455 not upgraded.
Need to get 153 kB of archives.
After this operation, 357 kB of additional disk space will be used.
Get:1 http://ftp.yzu.edu.tw/Linux/kali kali-rolling/main amd64 vsftpd amd64 3.0.3-11 [153 kB]
Fetched 153 kB in 5s (32.2 kB/s)
Preconfiguring packages ...
Selecting previously unselected package vsftpd.
(Reading database ... 340483 files and directories currently installed.)
Preparing to unpack .../vsftpd_3.0.3-11_amd64.deb ...
Unpacking vsftpd (3.0.3-11) ...
Setting up vsftpd (3.0.3-11) ...
[vsftpd.conf:1] Line references path below legacy directory /var/run/, updating /var/run/vsftpd/empty → /run/vsftpd/empty; please update the tmpfiles.d/ drop-in file accordingly.
update-rc.d: We have no instructions for the vsftpd init script.
update-rc.d: It looks like a network service, we disable it.
Processing triggers for systemd (239-10) ...
Processing triggers for man-db (2.8.4-2+b1) ...

 

 

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.