E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
I think that you are running two or more package management programs simultaneously. You have to close Synaptic package management before you issue the first apt-get command.