Tweet about this on TwitterShare on FacebookShare on Google+Share on StumbleUponShare on TumblrShare on RedditPin on PinterestEmail this to someone
ubuntu-logo

http://design.ubuntu.com/brand/ubuntu-logo

Recently I started playing with Ubuntu, just to learn little bit of Ubuntu server functionality. My background is mainly from Microsoft platforms and Microsoft related development tools. However most of the public web hosting and VPS services are based on Linux based OS and tools, I believe Ubuntu is the easiest one to learn among them. So I started subscribing to VPS and did install Ubuntu 14.04. I did install the minimal version so that it doesn’t take unnecessary hard disk space for things that I don’t need and moreover I can learn everything from ground up.  While setting up things I had to sort out certain issues by myself so I believe writing about them one by one as I come across may help anyone who new to Ubuntu/Linux environment as I do. Before staring I must say once again that I’m new to this environment so if you find something wrong or have better way of doing please put a comment, so I will correct them.

apt-get update

Once I logged into my VPS first thing that I did was to update package list. So that it knows where to get latest packages and upgrades from. It went fine but at the end it came up with set of errors : GPG error public key is not available NO_PUBKEY 4097....

This means that the given public key is not available with our system in order to verify the repository. So to fix this we need to obtain the key and import it. First get the key. Note that you need to run this as super user 

You will see following message after that.

Next we have to add the key to apt trusted keys collection by issuing following command.

Note that this command need to be executed as root.

If there are more than one key do the same to all of them, until you don’t see any error when issuing apt-get update.

 

Tweet about this on TwitterShare on FacebookShare on Google+Share on StumbleUponShare on TumblrShare on RedditPin on PinterestEmail this to someone