move sudo apt-get update after sudo apt-get upgrade