LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Having trouble with installing new kernel (https://www.linuxquestions.org/questions/linux-newbie-8/having-trouble-with-installing-new-kernel-4175698296/)

SamGearhart172450 07-25-2021 08:36 PM

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.

zeebra 07-26-2021 12:08 AM

Quote:

Originally Posted by SamGearhart172450 (Post 6269657)
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

SamGearhart172450 07-26-2021 09:17 PM

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.

michaelk 07-26-2021 09:47 PM

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/

zeebra 07-26-2021 09:49 PM

Quote:

Originally Posted by SamGearhart172450 (Post 6269957)
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?

SamGearhart172450 07-26-2021 10:21 PM

Quote:

Originally Posted by zeebra (Post 6269963)
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.

SamGearhart172450 07-26-2021 10:24 PM

Quote:

Originally Posted by zeebra (Post 6269963)
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.

zeebra 07-26-2021 11:19 PM

Quote:

Originally Posted by SamGearhart172450 (Post 6269970)
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 (Post 6269972)
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?

zeebra 07-26-2021 11:58 PM

Quote:

Originally Posted by SamGearhart172450 (Post 6269972)
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?

colorpurple21859 07-27-2021 05:41 AM

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.

michaelk 07-27-2021 06:49 AM

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/

colorpurple21859 07-27-2021 09:18 AM

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=""


All times are GMT -5. The time now is 05:32 AM.