Fix debian/ubuntu related issues

In course of time, apt database goes outdated, and 404 errors occured
when attempting to apt-get install. So, before doing apt-get install,
apt-get update is needed.

Change-Id: Ibe79b692d33e641d8c521c4ef58c5db7e991536a