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

sandeepsingh rawat March 20, 2013
Whatsapp Pinterest

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?

  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

    • ha14
      March 21, 2013 at 2:12 pm

      Fix 404 PPA
      [Broken Link Removed]
      sudo apt-add-repository ppa:lkjoel/fix404
      sudo apt-get update
      sudo apt-get install fix404

      Update Manager click the "Settings" button. This will open your Software Sources windows:
      1.Untick the "CD-ROM" option
      2.Go through the list and untick all your PPAs
      3.Then click close
      4.see if you can now update successfully.

      PackageManagerTroubleshootingProcedure
      https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

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

      still...

      W: Failed to fetch [Broken Link Removed] 404 Not Found

      W: Failed to fetch [Broken Link Removed] 404 Not Found

      E: Some index files failed to download. They have been ignored, or old ones used instead.

    • ha14
      March 24, 2013 at 11:05 am
Ads by Google