• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Apt Locked Files

October 2, 2021

If you tried to run apt update and you get this error, try the following.

$ apt update
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) [duplicate]

$ apt update E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) [duplicate]

Kill the process.

$ sudo killall apt apt-get

$ sudo killall apt apt-get

If that doesn’t work, remove the locked files.

$ sudo rm /var/lib/apt/lists/lock
$ sudo rm /var/cache/apt/archives/lock
$ sudo rm /var/lib/dpkg/lock*

$ sudo rm /var/lib/apt/lists/lock $ sudo rm /var/cache/apt/archives/lock $ sudo rm /var/lib/dpkg/lock*

Run apt update again.

Filed Under: Linux Tagged With: apt, error, locked, update

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023