linux-6.9.3 の Ubuntu Server 24.04 へのインストール

linux-6.9.3 の Ubuntu Server 24.04 へのインストールログです.複数のトラブルが発生します.

sudo su -
apt -y update
apt -y install make gcc flex bison libelf-dev libssl-dev dwarves bc
cd /usr/src
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.9.3.tar.xz
tar xfJ linux-6.9.3.tar.xz
cd linux-6.9.3
cp /boot/config-6.8.0-35-generic .config
yes "" | make oldconfig

-bash: make: command not found
となってしまったら
apt -y install make
を忘れている

/bin/sh: 1: gcc: not found
となってしまったら
apt -y install gcc
を忘れている

/bin/sh: 1: flex: not found
となってしまったら
apt -y install flex
を忘れている

/bin/sh: 1: bison: not found
となってしまったら
apt -y install bison
を忘れている

cp .config .config.bak
vi .config

以下の通り修正

11790行目
CONFIG_SYSTEM_TRUSTED_KEYS="debian/canonical-certs.pem"

CONFIG_SYSTEM_TRUSTED_KEYS=""

11798行目
CONFIG_SYSTEM_REVOCATION_KEYS="debian/canonical-revoked-certs.pem"

CONFIG_SYSTEM_REVOCATION_KEYS=""

make -j8 bzImage modules

scripts/sign-file.c:25:10: fatal error: openssl/opensslv.h: No such file or directory
25 | #include <openssl/opensslv.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.host:116: scripts/sign-file] Error 1
make[1]: *** [/usr/src/linux-6.9.3/Makefile:1181: scripts] Error 2
make: *** [Makefile:240: __sub-make] Error 2

となってしまったら
apt -y install libssl-dev
を忘れている

/usr/src/linux-6.9.3/tools/objtool/include/objtool/elf.h:10:10: fatal error: gelf.h: No such file or directory
10 | #include <gelf.h>
| ^~~~~~~~

となってしまったら
apt -y install libelf-dev
を忘れている

/bin/sh: 1: bc: not found
となってしまったら
apt -y install bc
を忘れている

make[3]: *** No rule to make target 'debian/canonical-certs.pem', needed by 'certs/x509_certificate_list'. Stop.
make[2]: *** [scripts/Makefile.build:485: certs] Error 2

となってしまったら
vi .config
を忘れている

make modules_install install

#linux
#ubuntu
#カーネル
#kernel
#Ubuntu24
#Ubuntu24_04
#JammyJellyfish
#linux6
#linux6_9
#linux6_9_3


この記事が気に入ったらサポートをしてみませんか?