Try avoiding apt-get upgrade.