LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-26-2021, 06:05 AM   #1
Cool_Omar
LQ Newbie
 
Registered: Nov 2018
Location: Alexandria, Egypt
Distribution: Ubuntu 20.04 LTS "Groovy Gorilla"
Posts: 14

Rep: Reputation: Disabled
Question Update-initramfs keeps failing missing modules.builtin.modinfo


Hi

Update-initramfs keeps failing because of this:

Update-initramfs: Generating/boot/initrd.img-5.3.0-46-generic
W: Canít find modules.builtin.modinfo (for locating built-in driversí firmware, supported in Linux >= 5.2)

Update-initramfs: Generating/boot/initrd.img-5.3.0-51-generic
W: Canít find modules.builtin.modinfo (for locating built-in driversí firmware, supported in Linux >= 5.2)

I installed the 18.04 version of the modules as that was all what I found then I discovered that I need those because my 20.04 keeps crashing because of 18.04 kernel modules version and there are some drivers loaded from it so canít remove it

So anyone has a copy of those:

Linux-modules-5.3.0-46-generic_5.3.0-46.38_amd64.deb

Or

Linux-modules-5.3.0-51-generic_5.3.0-51.44_amd64.deb

Thanks in advance for help
 
Old 08-26-2021, 01:13 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,147

Rep: Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770
That file should be in your kernel module tree. If it's not there, that's an ubuntu problkem. Perhaps reinstall kernel modules?
 
Old 08-26-2021, 02:46 PM   #3
Cool_Omar
LQ Newbie
 
Registered: Nov 2018
Location: Alexandria, Egypt
Distribution: Ubuntu 20.04 LTS "Groovy Gorilla"
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
That file should be in your kernel module tree. If it's not there, that's an ubuntu problkem. Perhaps reinstall kernel modules?
I did so yet the error still exists
 
Old 08-27-2021, 05:30 AM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,693

Rep: Reputation: 1113Reputation: 1113Reputation: 1113Reputation: 1113Reputation: 1113Reputation: 1113Reputation: 1113Reputation: 1113Reputation: 1113
I suspect this is your problem
Quote:
(for locating built-in driversí firmware, supported in Linux >= 5.2)
missing dependencies?

Quote:
installed the 18.04 version of the modules
How did you do this? your sidebar says ubuntu 18.04, but you mention 20.04.
 
Old 08-27-2021, 07:09 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,147

Rep: Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770
cd to /lib/modules and run a find command
Code:
find -name 'modules.builtin.modinfo'
 
Old 08-28-2021, 12:40 AM   #6
Cool_Omar
LQ Newbie
 
Registered: Nov 2018
Location: Alexandria, Egypt
Distribution: Ubuntu 20.04 LTS "Groovy Gorilla"
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
I suspect this is your problem missing dependencies?

How did you do this? your sidebar says ubuntu 18.04, but you mention 20.04.
I upgraded and forgot to edit profile.
 
Old 08-28-2021, 12:46 AM   #7
Cool_Omar
LQ Newbie
 
Registered: Nov 2018
Location: Alexandria, Egypt
Distribution: Ubuntu 20.04 LTS "Groovy Gorilla"
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
cd to /lib/modules and run a find command
Code:
find -name 'modules.builtin.modinfo'
here's the output:
Code:
omar_mustafa@omar-mustafa-HP-Laptop-15-da1xxx:~$ cd /lib/modules
omar_mustafa@omar-mustafa-HP-Laptop-15-da1xxx:/lib/modules$ find -name 'modules.builtin.modinfo'
./5.4.0-67-generic/modules.builtin.modinfo
./5.8.0-45-generic/modules.builtin.modinfo
./5.13.9-051309/modules.builtin.modinfo
./5.13.9-051309-generic/modules.builtin.modinfo
./5.11.0-25-generic/modules.builtin.modinfo
./5.11.0-31-generic/modules.builtin.modinfo
./5.11.10-051110-generic/modules.builtin.modinfo
 
Old 08-28-2021, 06:26 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,147

Rep: Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770
OK. What kernel version are you running? Here's a transaction from my box
Code:
bash-5.1$ cd /lib/modules
bash-5.1$ find -name 'modules.builtin.modinfo'
./5.4.30-dec14/modules.builtin.modinfo
./5.10.15/modules.builtin.modinfo
bash-5.1$ uname -r
5.10.15
Now I can build an initrd for kernel versions 5.10.15, and 5.4.30-dec14, but no other kernel. To build an initrd, you need
  1. To be running on the required kernel, or have it specified on the command line
  2. To have the kernel modules installed.
You don't have one of those. When you attempt the mkinitrd, I think it'd '-k' to specify the kernel to use and '-c' to clear the module tree so you don't get modules from another version fouling things up. Use both of those options, and see how you go.
 
Old 08-28-2021, 09:37 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 24,184

Rep: Reputation: 7123Reputation: 7123Reputation: 7123Reputation: 7123Reputation: 7123Reputation: 7123Reputation: 7123Reputation: 7123Reputation: 7123Reputation: 7123Reputation: 7123
Quote:
Originally Posted by business_kid View Post
OK. What kernel version are you running? Here's a transaction from my box
Code:
bash-5.1$ cd /lib/modules
bash-5.1$ find -name 'modules.builtin.modinfo'
./5.4.30-dec14/modules.builtin.modinfo
./5.10.15/modules.builtin.modinfo
bash-5.1$ uname -r
5.10.15
Now I can build an initrd for kernel versions 5.10.15, and 5.4.30-dec14, but no other kernel. To build an initrd, you need
  1. To be running on the required kernel, or have it specified on the command line
  2. To have the kernel modules installed.
You don't have one of those. When you attempt the mkinitrd, I think it'd '-k' to specify the kernel to use and '-c' to clear the module tree so you don't get modules from another version fouling things up. Use both of those options, and see how you go.
Related to:
https://www.linuxquestions.org/quest...op-4175699717/
https://www.linuxquestions.org/quest...be-4175698238/

..which is the root of the problem. OP has three threads (including this one), all related to this.
 
Old 08-28-2021, 10:28 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,147

Rep: Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770
Quote:
Originally Posted by TB0ne View Post
Related to:
https://www.linuxquestions.org/quest...op-4175699717/
https://www.linuxquestions.org/quest...be-4175698238/

..which is the root of the problem. OP has three threads (including this one), all related to this.
Ah, close this one, then.
 
  


Reply

Tags
initramfs, kernel, modules, ubuntu 20.04


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Change many symbols from builtin to modules TheLexx Linux - Kernel 4 01-22-2019 01:40 PM
[SOLVED] what is difference between /etc/modules and /etc/initramfs-tools/modules ? masuch Linux - Newbie 4 05-29-2013 05:50 AM
how to check modinfo of installed modules anil_cdac Linux - Newbie 2 06-04-2011 08:33 PM
update-initramfs is failing - how can I discover the cause? Mountain Linux - General 1 04-09-2009 05:44 PM
update-initramfs is failing on debian testing upgrade chadwick Linux - General 2 03-28-2008 12:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration