I'm trying to execute the command sudo apt-get -y install linux-headers-rpi
to install this driver for a pm sensor. However, my raspi gives me this output every time when I execute this command:
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?
I've searched through other post on the forum, and they said that it should be ok once I've reboot it or killed the process that's occupying the file. I did it, but it didn't work. Help?