Home » Questions » Computers [ Ask a new question ]

Repair Ubuntu installation

Repair Ubuntu installation

I accidently uninstalled (apt-get purge) lots of important system stuff, including gnome dekstop and whatever-is-responsible-for-internet-connetion, among other things. Is there any way to repair it? Without complete reinstall?

Asked by: Guest | Views: 155
Total answers/comments: 2
Guest [Entry]

"if you can run the ifconfig utility (as root), and have a single ethernet adapter which can use DHCP to access the network:

sudo ifconfig eth0 up
sudo dhclient eth0 &

That should activate your first ethernet adapter and run dhclient to get it an address via DHCP. If that works successfully, you might be able to do repair your installation by running:

sudo aptitude install ubuntu-desktop

That command will install the packages which are included in a base Ubuntu install. (you can substitute ""kubuntu-desktop"" if you use KDE or ""xubuntu-desktop"" if you use XFCE.

If you cannot get networking at all, the best bet is as Justin suggested above, use apt-cdrom to install the ubuntu-desktop package from your CD."
Guest [Entry]

If you boot into the CD it should give you an option to 'Recover a broken system'.