If you're having trouble with using/understanding apt-get in terminal, Ubuntu has GUI applications that you can use for apt-get. Synaptic Package Manager is one that is installed with the distribution, you can find it in your applications.
Once you open that, you can search for glib and it will walk you through the process of downloading and installing. It can be a good tool for a new linux user who is not familiar with terminal commands.