Can someone walk me through getting gparted on my computer so that I can install a second hard drive. This is the error I get everytime I write in
$ apt-get install gparted.
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?
sudo gparted– bistoco Apr 01 '16 at 18:43sudoto run GUI applications as root. Gparted comes with a command that automatically elevates your privileges usingpkexec. Therefore you should rungparted-pkexecto start it instead ofsudo gparted. – Byte Commander Apr 01 '16 at 18:53sudo apt-get install gparted, because installing packages requires root privileges and therefore you need thesudo. It will then also ask you to enter your account password. – Byte Commander Apr 01 '16 at 18:54