Could not open lock file

Asked by Drissa Yilla on 2009-11-11

After finally successfully installing flash player (thanks Sam -question #89535) the following message was returned:
   The following packages were automatically installed and are no longer required:
  libnss3-dev binutils-static libnspr4-dev
Use 'apt-get autoremove' to remove them.

Autoremove then returned this message:

drissa@drissa-desktop:~$ apt-get autoremove
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?
drissa@drissa-desktop:~$

Any suggestions?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Cristi Nistor
Solved:
2009-11-11
Last query:
2009-11-11
Last reply:
2009-11-11
Best Cristi Nistor (cristi-nistor) said : #1

You have to use the command as super user:

sudo apt-get autoremove

Good lcuk.

Drissa Yilla (drissayilla) said : #2

Thanks Cristi Nistor, that solved my question.