I'm trying to install dpkg-dev and I'm having issues

Asked by Spencer Martell

Hi,
I'm trying to install dpkg-dev so I can open gnome control center. When I type " apt-get install dpkg-dev " it gives me this

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?

So I did some more research and other sites told me to type the following into the terminal

sudo rm /var/lib/dpkg/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/apt/lists/lock

It gives me this

rm: cannot remove `/var/lib/dpkg/lock': No such file or directory

After some more research it told me to do this

sudo fuser -k -KILL /var/lib/dpkg/lock

And that gave me this

Specified filename /var/lib/dpkg/lock does not exist.

Can any of you help? Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Miha Gašperšič (miha.gaspersic) said :
#1

Hi there,

you need to run apt-get install as root user. Please try running this command to install dpkg-dev:

sudo apt-get install dpkg-dev
or this one:
sudo dpkg dpkg-dev

If this helps you solve your question, please mark this thread as solved.

Regards,
Miha

Can you help with this problem?

Provide an answer of your own, or ask Spencer Martell for more information if necessary.

To post a message you must log in.