You do know that I have absolutely no idea what the hell I'm doing, lol. I tried entering the above and I got 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?
Apologies. Please pre-pend "sudo " to the start of each of those apt-get's.
I'm a little bit nuts and run as root whilst tinkering...
eg;
sudo apt-get install libcurl4-gnutls-dev