Score:0

Unable to install grub in ubuntu 20.04

eg flag

when i try to install app from terminal i got this error mgs :

Grub installing error mgs

Stuck terminal at this

When i try to update the grub same error mgs pop up.

I tried following commands :

1. sudo update-grub.



2. sudo dpkg --configure -a. (because i killed process i need to manually run this command but the same error came again and again )



3. sudo grub-install /dev/sda.

Even when i tried to install some apps from terminal this error comes up. So, anyone knows how to overcome from this issue. Thanks so much in advance.

oldfred avatar
cn flag
It looks like you have an UEFI system. You never install grub to a partition like sda6, you first error message. You also installed grub-pc which is for BIOS boot, but error seems to be for UEFI install of grub. Lets see details, use ppa version with your live installer (2nd option) or any working install, not Boot-Repair ISO: Please copy & paste the pastebin link to the Boot-info summary report ( do not post report), do not run the auto fix till reviewed. https://help.ubuntu.com/community/Boot-Repair & https://sourceforge.net/p/boot-repair/home/Home/ What brand/model system?
Himanshu Gurjar avatar
eg flag
Yes i tried to install boot repair but the same error comes up again so i am unable to install boot repair as well as any other app because of this.
Himanshu Gurjar avatar
eg flag
I have a MSI B450M PRO-VDH Plus USB3 DDR4 d-Sub DVI HDMI Micro -ATX Motherboard. i installed windows and then ubuntu 20.04 in dual boot. I got the grub related error when installing ubuntu but at that time anyhow solved that and now this error comes up
oldfred avatar
cn flag
Did you install Windows in UEFI boot mode? Post this from live installer: `sudo fdisk -lu`
Himanshu Gurjar avatar
eg flag
i got this : `/dev/sda1 2048 1187839 1185792 579M 7 HPFS/NTFS/exFAT /dev/sda2 1187840 1363148799 1361960960 649.4G 7 HPFS/NTFS/exFAT /dev/sda3 1468006400 1953521663 485515264 231.5G 7 HPFS/NTFS/exFAT /dev/sda4 1363150846 1468005974 104855129 50G 5 Extended /dev/sda5 1363150848 1373149183 9998336 4.8G 82 Linux swap / Solaris /dev/sda6 * 1373151232 1374187519 1036288 506M ef EFI (FAT-12/16/32) /dev/sda7 1374189568 1468005974 93816407 44.8G 83 Linux Partition 4 does not start on physical sector boundary. `
oldfred avatar
cn flag
Better to post output in question where you can maintain formatting and readability. But you installed Window in BIOS boot mode since you have MBR(msdos) partitioned drive with an extended partition. Better to reinstall Windows in UEFI boot mode which will erase entire drive as converts to gpt. Be sure to have good backups. Microsoft has required vendors to install Windows in UEFI boot mode since 2012. You may not get good driver support with old BIOS install.
Himanshu Gurjar avatar
eg flag
Okay thanks for your suggestions, I will try this.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.