Could not open lock file

Asked by Drissa Yilla

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:
Last query:
Last reply:
Revision history for this message
Best Cristi Nistor (cristi-nistor) said :
#1

You have to use the command as super user:

sudo apt-get autoremove

Good lcuk.

Revision history for this message
Drissa Yilla (drissayilla) said :
#2

Thanks Cristi Nistor, that solved my question.