Home Learn Linux Linux Answers Systems Management 'Could not open lock file...' Where to fix this?
  • it sounds like you are using trying to use either apt synaptic or dpkg though you dont say

    if on the command line type sudo COMANND then hit enter (replace COMMAND with the desired command e.g. apt) it will ask for your password and then
    if entered correctly will allow you to do the task as root

    if this dosent help then make sure that any programs like apt dpkg synaptic software center etc arent running and if it persists try

    sudo touch /var/lib/dpkg/lock to create the file
    or sudo rm /var/lib/dpkg/lock to remove the file

    if all else fails try googeling it or asking or your distros forums

    ps it helps if you tell us what you did to get the message
    you may get flamed otherwise

    Answered by abpabp
    One year ago
    0 0
Please register/login to answer this question. Click here to login
Similar Questions Found
Questions from category Systems Management

Upcoming Linux Foundation Courses

  1. LFS230 Linux Network Management
    06 Oct » 09 Oct - Virtual
  2. LFS416 Linux Security
    06 Oct » 09 Oct - Washington
  3. LFD331 Developing Linux Device Drivers
    13 Oct » 17 Oct - Virtual

View All Upcoming Courses

Community Answers - Search

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board