Reinstall Ubuntu automatically
There is a very simple command that reinstalls all the distribution packages and reconfigures them automatically. This is particularly helpful when you have done a partial upgrade and eventually have broken the system dependencies tree.
sudo dpkg-reconfigure -phigh -a
since this command would take a lot of time to process (~1 hour) depending on your hardware in case you have a minor dependency problem you can fix it via
sudo apt-get install -f
sudo dpkg-reconfigure -phigh -a
As I watched, every single package was stopped, reconfigured, and restarted. This process took the better part of an hour and a half, since it was effectively the same as re-installing but using packages that already existed. It finally completed and dumped my back to a command line. I rebooted into recovery mode, selected “try to fix X”, rebooted, and, to my untter amazement, Ubuntu had repaired itself! I was restored to a completely functioning desktop with the upgrade installed!
My point, is, if something gets broken during an upgrade, it looks like there is not too much that this command cannot fix. So, before you give up and reinstall (like I was about to do), give it a shot! It might work for you, too.
Related posts:
- Monitoring Real-time user logins in ubuntu
- Recover wasted disk space in Ubuntu
- Gnome network manager automatically connects to wrong networks!
- change keyboard layout in shell
- Speed up Ubuntu Linux!
- Parcellite crash on icon click, Zim does not load
- hide user list in Ubuntu Lucid 10.04 login
Print This Post
|
Email This Post
[...] missglückten Upgrade entmutigt aufgebt und euch mit einer Neuinstallation abfindet.Quelle: aldeby.org Weitersagen:Ähnliche Artikel (sortiert nach Relevanz):Video Podcasts und Ubuntu So, nun wieder [...]
[...] Nobody was born with Linux knowledge [vía Ubuntu [...]
[...] [Nobody was Born with Linux Knowledge] Also Read Thunderbird 3 Release Candidate 1 now Available for DownloadInstall Firefox 3 Beta 3 [...]
[...] Reinstall Ubuntu automatically [...]
[...] Via | Aldeby [...]
[...] المصدر: http://www.aldeby.org/blog/reinstall-ubuntu-automatically.html [...]
[...] Mas info en Nobody was born with Linux knowledge [...]
[...] There is a very simple command that reinstalls all the distribution packages and reconfigures them automatically. This is particularly helpful when you have done a partial upgrade and eventually have broken the system dependencies tree. Read it here [...]
Depending on what you are looking to accomplish, it might just be better to reinstall. (It takes a lot less than an hour, these days.)
–
Brie
[...] [tip via aldeby.org] [...]