|
Restore Debian or Ubuntu system (upgrade gone bad)
Did install Kde4 the other day and looking at what was going to be uninstalled I looked for some way to get my box up and running again if things went south.
What did work (almost) perfect was:
dpkg --get-selections > /etc/package.selections # save the list of installed packages
To save a the current installed package list.Once everything is screwed up reinstall with:
dpkg --set-selections < /etc/package.selections && apt-get dselect-upgrade
It might not work perfect depending on how bad a mess it is (switching repositories between stable/testing/sid and experimental and funny stuff like that) but after a few additonal apt-gets and aptitude to clean up the final mess things tend to work again as before.
Note:I didn't come up with this.Just thought I share it.
|