Reinstall all installed Ubuntu packages 


for pkg in `dpkg --get-selections | egrep -v deinstall | awk '{print $1}'` ; do apt-get -y install --reinstall $pkg ; done