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

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

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

This question was marked as an exact duplicate of an existing question.

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
    
Although this may fix things, it's simply a band aid and fills your EFI partition with cruft once you start redoing it. The proper way is this – Ashhar Hasan Dec 6 '15 at 1:17

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

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