changed the order of some apt-get commands