sudo gainroot cd /var/lib/dpkg mv status status.orig mv status-old status dpkg --configure -a apt-get install -f apt-get update apt-get upgrade