This question already has an answer here:
I was configuring my local Ubuntu installation (14.04 LTS). I got this error while trying to run
apt-get. I have seen many answer regarding this issue. None of a single answer solve my issue. So I have decided to post a question even many duplicates exists. See my answer below.