LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2021, 08:36 PM   #1
SamGearhart172450
LQ Newbie
 
Registered: Jan 2021
Location: Denver
Distribution: Debian Buster
Posts: 25

Rep: Reputation: Disabled
Having trouble with installing new kernel


I keep getting this error when I run the make command after unzipping the kernel and configuring it..........................................make[1]: *** No rule to make target 'debian/canonical-certs.pem', needed by 'certs/x509_certificate_list'. Stop.
make: *** [Makefile:1853: certs] Error 2

What in the hell is the deal with this as its getting very annoying and frustrating when I've tried probably honestly a hundred times to download, compile and install a new version of the kernel. My dumbass has never been able to accomplish this simple task. Any help would be greatly appreciated.. I am NOT a computer whiz either so take that into account when answering. Thanks.
 
Old 07-26-2021, 12:08 AM   #2
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by SamGearhart172450 View Post
I keep getting this error when I run the make command after unzipping the kernel and configuring it..........................................make[1]: *** No rule to make target 'debian/canonical-certs.pem', needed by 'certs/x509_certificate_list'. Stop.
make: *** [Makefile:1853: certs] Error 2

What in the hell is the deal with this as its getting very annoying and frustrating when I've tried probably honestly a hundred times to download, compile and install a new version of the kernel. My dumbass has never been able to accomplish this simple task. Any help would be greatly appreciated.. I am NOT a computer whiz either so take that into account when answering. Thanks.
So. What exactly did you do? And what step did you get this issue?

Did you install any software beforehand to support this process you are trying? Most likely there are prerequisites that needs to be fullfilled for you to (as I understand) manually compile a kernel.
It's a bit early here and I'm tired, but I'm going to just take a wild guess, that you don't have the libopenssl-devel package installed.

Looking at some "how to compile a Kernel in Debian, most of them seem to mention these:
Quote:
apt-get install kernel-package ncurses-dev fakeroot wget bzip2 build-essential

Last edited by zeebra; 07-26-2021 at 12:09 AM.
 
Old 07-26-2021, 09:17 PM   #3
SamGearhart172450
LQ Newbie
 
Registered: Jan 2021
Location: Denver
Distribution: Debian Buster
Posts: 25

Original Poster
Rep: Reputation: Disabled
This is the response I get after running the "make" command....................
DESCEND objtool
DESCEND bpf/resolve_btfids
CALL scripts/atomic/check-atomics.sh
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
make[1]: *** No rule to make target 'debian/canonical-certs.pem', needed by 'certs/x509_certificate_list'. Stop.
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1853: certs] Error 2
make: *** Waiting for unfinished jobs....
CHK kernel/kheaders_data.tar.xz


I really don't know how i can be more specific than that. The suggestion above did nothing to solve the problem unfortunately.
 
Old 07-26-2021, 09:47 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Actually, I do not think complying a kernel is a simple task. I have not compiled a kernel in a number of years but a quick google had a number of threads/guides that indicated to change the following line in the config file to an empty string.

CONFIG_SYSTEM_TRUSTED_KEYS = ""

You did not provide details but when first starting out it was always easier to use the config file from the current build then run make oldconfig.

Your posted distribution is debian but the icon is Ubuntu. You can install the latest Ubuntu kernels without complying it your self.
https://itsfoss.com/upgrade-linux-kernel-ubuntu/

Last edited by michaelk; 07-26-2021 at 09:56 PM.
 
Old 07-26-2021, 09:49 PM   #5
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by SamGearhart172450 View Post
This is the response I get after running the "make" command....................
DESCEND objtool
DESCEND bpf/resolve_btfids
CALL scripts/atomic/check-atomics.sh
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
make[1]: *** No rule to make target 'debian/canonical-certs.pem', needed by 'certs/x509_certificate_list'. Stop.
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1853: certs] Error 2
make: *** Waiting for unfinished jobs....
CHK kernel/kheaders_data.tar.xz


I really don't know how i can be more specific than that. The suggestion above did nothing to solve the problem unfortunately.
Did you check if libopenssl and libopenssl-devel is installed? Please double check for those in your package manager.

And did you run the apt command to install those 6 packages? If you did, did some of them actually install or did you have them already?

Last edited by zeebra; 07-26-2021 at 09:51 PM.
 
Old 07-26-2021, 10:21 PM   #6
SamGearhart172450
LQ Newbie
 
Registered: Jan 2021
Location: Denver
Distribution: Debian Buster
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zeebra View Post
Did you check if libopenssl and libopenssl-devel is installed? Please double check for those in your package manager.

And did you run the apt command to install those 6 packages? If you did, did some of them actually install or did you have them already?
It wont let me install them. It says it cant locate the packages. I'll try the ubuntu site the other fella advised. I'm running Pop OS.
 
Old 07-26-2021, 10:24 PM   #7
SamGearhart172450
LQ Newbie
 
Registered: Jan 2021
Location: Denver
Distribution: Debian Buster
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zeebra View Post
Did you check if libopenssl and libopenssl-devel is installed? Please double check for those in your package manager.

And did you run the apt command to install those 6 packages? If you did, did some of them actually install or did you have them already?
I had most of them already installed also. I've run the suggestions on every thread probably ten different times with each sites instructions and I've NEVER been able to perform this task. It makes me hate Linux honestly!!!! Something like this shouldn't be this goddamn hard....period. Maybe I should find another hobby. I'm certainly fast losing my once strong interest in everything Linux. I'm now starting to realize why it's never made it with the everyday citizen, that is for sure.

But thanks for your attempts at helping me. Again, it shouldn't be this hard and if it is then that tells you something. At least it tells me something.
 
Old 07-26-2021, 11:19 PM   #8
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by SamGearhart172450 View Post
It wont let me install them. It says it cant locate the packages. I'll try the ubuntu site the other fella advised. I'm running Pop OS.
Ahh, sorry, my fault then. I thought you were running debian. Those are some dependencies to compile a Kernel on debian.

Try looking for "openssl".

Quote:
Originally Posted by SamGearhart172450 View Post
I had most of them already installed also. I've run the suggestions on every thread probably ten different times with each sites instructions and I've NEVER been able to perform this task. It makes me hate Linux honestly!!!! Something like this shouldn't be this goddamn hard....period. Maybe I should find another hobby. I'm certainly fast losing my once strong interest in everything Linux. I'm now starting to realize why it's never made it with the everyday citizen, that is for sure.

But thanks for your attempts at helping me. Again, it shouldn't be this hard and if it is then that tells you something. At least it tells me something.
Don't give up! There is a reason for everything, and dealing with this is quite procedural (/simple). To be able to compile a Kernel, some software is necessary. Some distroes have all that software installed already, while others need you to install a bunch of software to be able to compile the Kernel. In any case, there are "dependencies" so to say, you can't do it if those are not fulfilled.

I don't know much about Pop OS to be honest, and I can't quite tell you what is missing or not. I don't even know if it has a package manager, but I see that it is Ubuntu based, so I assume it has a package manager alike to Ubuntu and that the process to compile a Kernel on Pop OS would be similar to Ubuntu.

Under "tools you need", you need to install those before you can proceed.
https://help.ubuntu.com/community/Kernel/Compile
This guide list some dependencies, but the guide is quite old..

Anyways, some distroes are PITA to do anything on, and Ubuntu is one of those, it always has been a PITA to compile a Kernel in Ubuntu, which is why so few people do it, and it is generally discouraged. If you want to do it, you need to find out how to do it on a Ubuntu/based distro or use another distro.

If you try another distro like Slackware, you will see that the process is NOT hard. I'm using yet another distro, and although it is harder than it is on Slackware, it is not hard. I will include a list of software I need to install on my distro to be able to compile a Kernel. Perhaps those entries can help you:

Quote:
make
gcc
- binutils-2.35.2-1.mga8.x86_64
- gcc-cpp-10.3.0-1.mga8.x86_64
- isl-0.18-2.mga8.x86_64
- lib64isl15-0.18-2.mga8.x86_64
- lib64mpc3-1.2.1-1.mga8.x86_64
- libstdc++-devel-10.3.0-1.mga8.x86_64
- libstdc++-python-devel-10.3.0-1.mga8.x86_64
lib64ncurses-devel
lib64ncursesw-devel
bison
- m4-1.4.18-3.mga8.x86_64
lib64openssl-devel
- lib64zlib-devel-1.2.11-9.mga8.x86_64
- multiarch-utils-1.0.14-3.mga8.noarch
flex
lib64elfutils-devel
- lib64audit-devel-3.0-1.mga8.x86_64
- lib64brotli-devel-1.0.9-2.mga8.x86_64
- lib64brotlienc1-1.0.9-2.mga8.x86_64
- lib64bz2-devel-1.0.8-2.mga8.x86_64
- lib64cap-ng-devel-0.8.2-1.mga8.x86_64
- lib64com_err-devel-1.45.6-6.mga8.x86_64
- lib64curl-devel-7.74.0-1.2.mga8.x86_64
- lib64elfutils-devel-0.182-1.mga8.x86_64
- lib64gcrypt-devel-1.8.7-1.1.mga8.x86_64
- lib64gpg-error-devel-1.41-1.mga8.x86_64
- lib64idn2-devel-2.3.0-4.mga8.x86_64
- lib64keyutils-devel-1.6.3-1.mga8.x86_64
- lib64krb53-devel-1.18.3-1.mga8.x86_64
- lib64ldap2.4_2-devel-2.4.57-1.1.mga8.x86_64
- lib64lzma-devel-5.2.5-2.mga8.x86_64
- lib64nghttp2-devel-1.42.0-1.mga8.x86_64
- lib64pam-devel-1.3.1-7.mga8.x86_64
- lib64psl-devel-0.21.1-1.mga8.x86_64
- lib64sasl2-devel-2.1.27-3.mga8.x86_64
- lib64ssh-devel-0.9.5-1.mga8.x86_64
- lib64unistring-devel-0.9.10-4.mga8.x86_64
- lib64verto-devel-0.3.1-2.mga8.x86_64
- lib64zstd-devel-1.4.8-1.mga8.x86_64
- publicsuffix-list-20201130-1.mga8.noarch
Those are packages and their autoresolved dependencies. So don't worry so much about the dependencies (they should hopefully resolve themselves for you too). Don't worry about it saying lib64*, that's just the way my distro does it. They might be named just lib* in your distro or some other naming norms. The ones in bold are the ones I think are generally important, so check if you have them installed.

Anyways, I assume you have done these steps already:
downloaded kernel from kernel.org
unpacked it
make clean, make mrproper, make menuconfig it..

And that you are now trying "make", and it fails.

Why do you use Pop OS anyways and not another distro? Any particular reason, or are you open minded in regards to using another distro?

Last edited by zeebra; 07-26-2021 at 11:49 PM.
 
Old 07-26-2021, 11:58 PM   #9
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by SamGearhart172450 View Post
At least it tells me something.
Yes, it should tell you Ubuntu and derivatives is trash and that you should perhaps consider a better distro.

And also, why are you trying this in the first place? Do you really NEED or WANT to compile your own Kernel? Is it necessary or are you just inflicting unecessary pain on yourself?
 
Old 07-27-2021, 05:41 AM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Quote:
Ahh, sorry, my fault then. I thought you were running debian
Nothing to be sorry for. The error message mentions debian, the op's moniker list debian buster, the agent string is ubuntu, and the op finally mentions it is popos, so how are we suppose to know what distro the op is building the kernel on, what kernel is attempting to be compiled, or even why the need to recompile the kernel The op complains how hard linux is, but is attempting to do an advance administrative task the majority of the average linux users would never have the need to do.

Last edited by colorpurple21859; 07-27-2021 at 05:52 AM.
 
Old 07-27-2021, 06:49 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
What exact steps are you following?
Try my suggestion in post #4

https://www.linux.com/topic/desktop/...inux-kernel-0/

There are many aspects to linux. If you want to be on the bleeding edge and want to run the latest and greatest then a rolling release distribution might be a better choicee but be aware that any one update could break your system.

If you really want to know what it takes to build a running system try Linux From Scratch.

https://www.linuxfromscratch.org/
 
Old 07-27-2021, 09:18 AM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
look for this line in your .config or something similar
Code:
CONFIG_SYSTEM_TRUSTED_KEYS="debian/certs/debian-uefi-certs.pem"
and change to this
Code:
CONFIG_SYSTEM_TRUSTED_KEYS=""
 
  


Reply



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
New, having trouble with installing printer serrohat Linux - Newbie 1 09-12-2011 02:03 AM
[SOLVED] Having trouble installing adobe flash 10.1 on acer aspire one. Still new to Linux. bertany Linux - Software 9 10-28-2010 01:17 PM
Having trouble installing software.. help me i'm new to linux. former windows user Newbubuntu Linux - Software 10 02-25-2009 03:01 PM
Installing Vega Strike, having trouble installing SDL_mixer-devel captainxark Fedora 3 09-13-2008 06:29 PM
Having trouble installing rpms for new Samba release TechHawk Linux - Networking 3 05-12-2004 02:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:28 AM.

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