Why do I receive an error message when I try to install new software on Ubuntu 12.10?

sandeepsingh rawat March 20, 2013
Pinterest Stumbleupon Whatsapp

this is seen while installing a new software or applying a new theme.

In terminal:

E: Could not open lock file /var/lib/apt/lists/lock – open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock – open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Ads by Google

  1. Harshit Jain
    March 21, 2013 at 3:10 pm

    Type su in the terminal and press 'Enter'. Then type your password and again press 'Enter'. After that try to install the required package again and it should work!

    • sandeepsingh rawat
      March 22, 2013 at 4:24 pm

      su: Authentication failure

    • dragonmouth
      April 12, 2013 at 9:37 pm

      When using the "su" command, the root password must be used.

  2. justinpot
    March 21, 2013 at 2:49 pm

    When I've had this I opened the Termina, then typed "sudo apt-get -f install". I hope that works, but let me know if it doesn't.

    • sandeepsingh rawat
      March 22, 2013 at 4:24 pm

      it just showed this...

      sudo apt-get -f install
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

  3. Bruce Epper
    March 21, 2013 at 3:42 am

    You need to use sudo to perform the operation since it requires root privileges. So instead of typing 'apt-get install pakagename' you need to use 'sudo apt-get install packagename'. It will prompt you for your password before elevating privileges and executing the apt-get command.

  4. ha14
    March 20, 2013 at 11:48 pm

    How to fix “Could not open lock file” because “Permission denied”?
    http://askubuntu.com/questions/162879/how-to-fix-could-not-open-lock-file-because-permission-denied
    You need to be root to do it

Ads by Google