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: 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/lilo/lilo_22.8-10ubuntu1_i386.deb  404  Not Found [IP: 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

marked as duplicate by qbi, karel, user117103, 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.



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

  • 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.

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