How to Fix: grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist
Grub-install error on hybrid multiboot USB stick in Ubuntu 16.04
📋 Table of Contents
The error 'grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist' occurs when attempting to create a hybrid multiboot USB stick on 64-bit Ubuntu 16.04 using the Arch Linux tutorial. This issue affects users who have followed the instructions with the '--target=i386-pc' command, resulting in an error that prevents the creation of a bootable GRUB configuration.
This error can be frustrating for users who are trying to set up a multiboot system on their USB drive. However, by following the steps outlined in this guide, you should be able to resolve the issue and successfully create your hybrid multiboot USB stick.
🔍 Why This Happens
- The primary reason for this error is that the grub-i386-pc module does not exist in the system's GRUB configuration. This can occur when the system's architecture is set to 64-bit, but the GRUB configuration is still using the 32-bit i386-pc module.
- An alternative reason for this error could be due to a corrupted or incomplete installation of the GRUB package.
🚀 How to Resolve This Issue
Reinstalling the GRUB package and updating the system
- Step 1: Open a terminal and run the command 'sudo apt-get update' to ensure that the system's package list is up-to-date.
- Step 2: Next, run the command 'sudo apt-get install grub-pc-i386' to reinstall the GRUB package with the i386-pc module. This will replace the missing modinfo.sh script with a new one.
- Step 3: After the installation is complete, run the command 'sudo update-grub' to regenerate the system's GRUB configuration.
Manually creating the grub-i386-pc directory and copying files
- Step 1: Create a new directory called 'grub-i386-pc' in the '/usr/lib/grub' directory using the command 'sudo mkdir /usr/lib/grub/i386-pc'.
- Step 2: Copy the contents of the '/usr/lib/grub/i386-pc' directory from an existing 32-bit system into the newly created directory. You can do this by running the command 'cp -r /usr/lib/grub/i386-pc/* /usr/lib/grub/i386-pc'.
🎯 Final Words
By following one of these methods, you should be able to resolve the 'grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist' error and successfully create your hybrid multiboot USB stick on 64-bit Ubuntu 16.04.
❓ Frequently Asked Questions
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Fix Pc crashes shortly after launching game (rainbow six siege). Compl
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: New PC build- no signal and no clue
Fix New PC build- no signal and no clue. Complete troubleshooting guid