Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

upgrade sources.list

  Date: Dec 12    Category: Unix / Linux / Ubuntu    Views: 317
  

when i want to upgrade my sources.list by "apt-get upgrade" i have
this msg error :
"E: Impossible d'ouvrir le fichier verrou /var/lib/dpkg/lock - open
(13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are
you root?
"
what should i do?

Share: 

 

2 Answers Found

 
Answer #1    Answered On: Dec 12    

There are several possible reasons but the first one is that only an
administrator, the root user, can install anything. Try "sudo apt-get ..."
(no quotes or dots, just insert the package name etc.). If you have Synaptic
or anything else open you will get the "can't lock" message, so check
(alt-tab) that you are only using one installation app. Open your browser to
make sure you are indeed connected to the internet, as the message about not
finding a repository is often caused by a lapsed internet connection.

 
Answer #2    Answered On: Dec 12    

That particular error usually means that you already have a package manager
open. When you close the package manager, the lock is removed. This is to
prevent two package managers from running simultaneously. If you are sure that
you do not have another package manager running or are doing two operations at
the same time then you can remove the lock manually. It is just a file in the
path that you listed. You need to do this as root so will need to use sudo
nautilus or gksu nautilus from the terminal.

 
Didn't find what you were looking for? Find more on upgrade sources.list Or get search suggestion and latest updates.




Tagged: