Quantcast
Channel: Admins Goodies » reinstall
Viewing all articles
Browse latest Browse all 10

how to repair ubuntu 8.04.4 after uninstalling many things by mistake

$
0
0

Question

While trying to install rmagick and failing, I thought I would uninstall libfreetype6 and then reinstall it. When I entered
sudo apt-get remove libfreetype6

It asked that the following packages will be removed, the list was long and included nearly everything from gnome to java to firefox to chrome and all. the link of output which is badly formatted is here:
http://pastie.org/private/yaralfafjwjtsjlnzgwzig

I pressed y for yes, and it uninstalled everything. I shutdown the pc and when i opened it again, there was only command line interface, no desktop! I need to repair it. How can i repair my ubuntu 8.04 install? i dont want to lose any data so i dont want to reinstall ubuntu 8 from cd. Please help!

Answer

If you still have a working net connection you can try to reinstall the desktop meta package:

sudo apt-get install ubuntu-desktop

That should pull in necessary dependencies.

If you don’t have net connection, the easiest is to plug in a wire, activate the adapter:

ifconfig eth0 up # (or eth1 - depends on which is your wired network adapter)

and acquire an IP address via dhcp:

dhclient eth0

Edit: Of course; I would recommend to mount an USB disk and backup your data before doing anything else.


Viewing all articles
Browse latest Browse all 10

Trending Articles