Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

While logged into Windows, I deleted a disk partition which was containing Ubuntu. When I restarted my pc, it is showing 'grub rescue' command prompt.

How to boot windows now?

  1. I no longer require Ubuntu.
  2. I have Ubuntu live CD

When I tried the following commend:

sudo apt-get install lilo

the following error is shown:

Err http://archive.ubuntu.com/ubuntu/ natty/main lilo i386 1:22.8-10ubuntu1
  404  Not Found [IP: 91.189.92.156 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/lilo/lilo_22.8-10ubuntu1_i386.deb  404  Not Found [IP: 91.189.92.156 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
share|improve this question
add comment

marked as duplicate by qbi, karel, guntbert, Warren Hill, Braiam Nov 8 '13 at 11:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

up vote 0 down vote accepted

https://help.ubuntu.com/community/Boot-Repair#Getting_Boot-Repair

Run Boot-Repair from a liveCD, click "Advanced options", tick "Restore MBR", click "Apply".

share|improve this answer
add comment

Pop in your windows disc, click "Repair PC", run the autorepair, and finally, click something like "Repair Bootloader" (This may be done automatically).

This happened because GRUB is missing its boot data. It was on the Ubuntu partition.

share|improve this answer
add comment

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