fixing the variables matrix. Adding apt-get update