LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unable to install grub 2 in ubuntu 14.04? (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-install-grub-2-in-ubuntu-14-04-a-4175562273/)

Carl_cj 12-24-2015 09:20 AM

unable to install grub 2 in ubuntu 14.04?
 
Hello,
i am using windows 10 and i thought to install Ubuntu 14.04 so i installed it on windows 10 partition.after completed installed Ubuntu 14.04 it will ask to restart it when i restart my system displays a message
Quote:

missing operating system
i think grub boot loader is missing on my system.so i logged into my Ubuntu 14.04 with the help of system rescue cd by temporary.i searched on net about to install grub2 on Ubuntu i tried the following steps
Quote:

sudo apt-get install grub
it display me a error
Quote:

E: Package 'grub' has no installation candidate
can anybody guide me.Thanks in advance.

berndbausch 12-24-2015 09:34 AM

Running apt-get update first should fix this message.

But it's unlikely you need to install grub on your Ubuntu 14.04 - it's probably there. Run dpkg -l | grep -i grub to check. What you need to do is install grub on the bootsector. You will find instructions in many places, for example at https://help.ubuntu.com/community/Gr...alling_GRUB_2; perhaps you may want to focus on the section "fixing a broken system".

Carl_cj 12-24-2015 10:38 AM

[QUOTE=berndbausch;5468442]Running apt-get update first should fix this message.

Thanks for your reply.my problem was solved.apt-get update is not working properly the main problem is with sources.list is corrupted in
Quote:

/etc/apt/sources.list
i just delete that file and recreted with the help of Ubuntu's Forms http://askubuntu.com/questions/12401...t-repositoriessite.then
Quote:

apt-get update
is working properly.then i use boot repair tool and i follow steps successfully it repair my system.thanks for your reply.:)


All times are GMT -5. The time now is 12:30 PM.