Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Okay guys, I was installing a program (I do not remember the name). When I did sudo apt-get update I was given missing dependencies. It told me to sudo apt-get install -f which deleted just about every dependency needed for Ubuntu, now I cannot log in or anything, now in GRUB it actually says Debian instead of Ubuntu. I have tons of important data in that partition. Can I some how use the live cd to fix this problem??? I mean like re-install without losing data.

Any help is greatly appreciated!!!

share|improve this question
/var/log/apt/history.log file contains the apt activity history. Check if you can find something useful there. Maybe and indicator to what might have went wrong. Also check /var/log/dpkg.log – saji89 May 22 '12 at 11:40
Well, that's the problem, I cannot get into Ubuntu, the last time it started it didn't have the Unity bar, the terminal (ctrl+alt+t), or anything. I rebooted and then the GRUB said Debian, if you click it, then nothing happens, just black screen. – jredkai May 22 '12 at 11:43
Boot from the live CD - using nautilus you'll see the contents of your hard-drive - you can then copy this onto a USB external hard-drive. – fossfreedom May 22 '12 at 11:49
up vote 5 down vote accepted

A reinstall is definitely your best option for getting Ubuntu working again.

Using the Live CD you can copy your data onto an external USB device (a stick or hard drive, for example).

If you do not have any external storage, and there is enough space on your existing hard drive, there is another more risky option; resize the existing partition and create a new partition to reinstall onto. Here are some instructions on doing this:

and here:

Resize partition with GParted

But be warned, resizing is potentially risky; if something goes wrong during the process, it could leave your data in an irretrievable state. Copying to another storage medium is definitely safer, because you can check the copy before deleting the original.

share|improve this answer
Ok, thank you for all your help. I will look for another hard-drive and boot with Live CD and move my files that away, then do a fresh install. – jredkai May 23 '12 at 15:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.