Results 1 to 8 of 8

Thread: [SOLVED] Could not open lock file /var/cache/apt/archives/lock

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Beans
    34

    [SOLVED] Could not open lock file /var/cache/apt/archives/lock

    Hi

    When running the following command in terminal:

    "apt-get autoremove && apt-get clean && apt-get autoclean" in order to remove unused packages (such as an obsolete kernel) I get the following output:

    E: Could not open lock file /var/cache/apt/archives/lock - open (13 Permission denied)

    E: Unable to lock the download directory


    I am running it as root

    Thanks a lot!

  2. #2
    Join Date
    Jun 2008
    Location
    England
    Beans
    2,567
    Distro
    Ubuntu Development Release

    Re: Could not open lock file /var/cache/apt/archives/lock

    Try giving the command root privs

    Code:
    sudo apt-get autoremove && sudo apt-get clean && sudo apt-get autoclean
    Last edited by tuxxy; October 21st, 2008 at 02:10 AM.
    64-Bit User-Group // Twin-View AMD64 X2 6000+|Geforce 9500GT 1024 MB|8GB PC2-6400 DDR2|500GB Seagate SATA // AMD64 X2 4400+|Geforce 8600GTS |4GB PC2-6400 DDR2|360GB Samsung SATA // Ubuntu 9.04 & 9.10 64-Bit

  3. #3
    Join Date
    Jul 2007
    Beans
    1,577

    Re: Could not open lock file /var/cache/apt/archives/lock

    Check that you have no other instances of apt running (apt-get, aptitude, synaptic, Add/Remove...)

  4. #4
    Join Date
    Apr 2007
    Location
    Athens,Greece
    Beans
    231
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: Could not open lock file /var/cache/apt/archives/lock

    If you do this like that
    Code:
    command && other command
    you will need more than one sudos, like that
    Code:
    sudo apt-get autoremove && sudo apt-get clean && sudo apt-get autoclean
    If i could change something in the world..
    i would turn the sea blue again and feed the poor..

  5. #5
    Join Date
    Oct 2010
    Beans
    1

    Smile Re: Could not open lock file /var/cache/apt/archives/lock

    Quote Originally Posted by tuxxy View Post
    Try giving the command root privs

    Code:
    sudo apt-get autoremove && sudo apt-get clean && sudo apt-get autoclean
    This worked for me. Thanks.

  6. #6
    Join Date
    Jul 2008
    Location
    Los Angeles
    Beans
    98
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: Could not open lock file /var/cache/apt/archives/lock

    Quote Originally Posted by Madwida View Post
    Hi

    When running the following command in terminal:

    "apt-get autoremove && apt-get clean && apt-get autoclean" in order to remove unused packages (such as an obsolete kernel) I get the following output:

    E: Could not open lock file /var/cache/apt/archives/lock - open (13 Permission denied)

    E: Unable to lock the download directory


    I am running it as root

    Thanks a lot!
    If sudoing doesn't work...
    Only one package manager can be running at any moment; that "lock" error ensures that there are no conflicts between two programs for the same resource.
    Make sure that you don't have the Update Manager, Synaptic, etc. running.
    Last edited by a0u; October 21st, 2008 at 01:48 AM.

  7. #7
    Join Date
    Aug 2008
    Beans
    34

    Re: Could not open lock file /var/cache/apt/archives/lock

    I must have had synaptic open; I think that was exactly it. And I even know that, too--but completely spaced it! Thanks a lot
    Last edited by Madwida; October 21st, 2008 at 02:37 AM. Reason: incomplete message

  8. #8
    Join Date
    Jan 2010
    Beans
    7

    Re: [SOLVED] Could not open lock file /var/cache/apt/archives/lock

    why i cant login to my other acount in gyache???lately i can login but now i cant i dont know what happn...can u help me how to login and other acount in gyache on yahoo

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •