Added step to sudo apt-get upgrade before installing postgres packages