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
    2 years 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. LFD211 Introduction to Linux for Developers
    09 Feb » 10 Feb - Virtual
  2. LFD411 Embedded Linux Development
    09 Feb » 13 Feb - Mississauga - ON
  3. LFD312 Developing Applications For Linux
    16 Feb » 20 Feb - Atlanta - GA

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