How to update from Ubuntu 22.04 to 23.04
sudo apt install update-manager-core -y
sudo vim /etc/update-manager/release-upgrades
cp /etc/apt/sources.list ~/sources.list.bak
sudo sed -i s/jammy/lunar/g /etc/apt/sources.list
-----------------------------
Download source https://www.kernel.org/
tar xvf linux-6.0.7.tar.xz
sudo apt-get install git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison
cp -v /boot/config-$(uname -r) .config
#set power flag for dpdk in .config file
CONFIG_INTEL_UNCORE_FREQ_CONTROL=y
#change config through GUI
#build kernel with make command
If you are compiling the kernel on Ubuntu, you may receive the following error that interrupts the building process:
No rule to make target 'debian/canonical-certs.pem
Disable the conflicting security certificates by executing the two commands below:
scripts/config --disable SYSTEM_TRUSTED_KEYS
scripts/config --disable SYSTEM_REVOCATION_KEYS
# Install the required modules with this command:
sudo make modules_install
In case of permission denied error: chmod 777 -R debian/scripts
Step 6: Update the Bootloader (Optional)
The GRUB bootloader is the first program that runs when the system powers on.
The make install command performs this process automatically, but you can also do it manually.
1. Update the initramfs to the installed kernel version:
sudo update-initramfs -c -k 6.2.0-34
2. Update the GRUB bootloader with this command:
Step 7: Reboot and Verify Kernel Version
When you complete the steps above, reboot the machine.
When the system boots up, verify the kernel version using the uname command:
debian/canonical-certs.pem
-----------------------------------
make[3]: *** No rule to make target 'debian/canonical-certs.pem', needed by 'certs/x509_certificate_list'. Stop.
make[2]: *** [scripts/Makefile.build:480: certs] Error 2
make[1]: *** [/home/ashok/tools/kernel/linux-6.5.7/Makefile:2034: .] Error 2
make: *** [Makefile:234: __sub-make] Error 2
sudo mkdir -p /usr/local/src/debian
sudo apt install linux-source
sudo cp -v /usr/src/linux-source-*/debian/canonical-*.pem /usr/local/src/debian/
sudo apt purge linux-source*
-----------------------------------------------
ashok:~/sw/kernel/6_5_7/linux-6.5.7$ sudo make install
run-parts: executing /etc/kernel/postinst.d/dkms 6.5.7 /boot/vmlinuz-6.5.7
* dkms: running auto installation service for kernel 6.5.7
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
'make' KDIR=/lib/modules/6.5.7/build...(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-6.5.7 is not supported
Error! Bad return status for module build on kernel: 6.5.7 (x86_64)
Consult /var/lib/dkms/intel-oobmsm-dummy/0.1.0-503/build/make.log for more information.
dkms autoinstall on 6.5.7/x86_64 failed for intel-oobmsm-dummy(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
* dkms: autoinstall for kernel 6.5.7 [fail]
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
make[1]: *** [arch/x86/Makefile:292: install] Error 1
make: *** [Makefile:234: __sub-make] Error 2
Download dkms source, update max linux version in meta and build
On a Fedora 36 machine, with the 2.1.6 sources installed to /usr/src/zfs-2.1.6/ through dnf download --source zfs and rpm -ivh zfs-2.1.6-1.fc36.src.rpm, the build succeeded on their recent Linux 6 kernel with patching META to 6 and installing the DKMS module manually:
$ sed -i 's/Linux-Maximum: 5.19/Linux-Maximum: 6.00/g'/usr/src/zfs-2.1.6/META
'make' KDIR=/lib/modules/6.2.16/build...(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-6.2.16 is not supported
Error! Bad return status for module build on kernel: 6.2.16 (x86_64)
Ubunt: change default OS/Kernel
ashok@adl:~/tools/mlc/Linux$ cpufreq-set -c 0 -u 2.5GHz -d 2.5GHz
Command 'cpufreq-set' not found, but can be installed with:
sudo apt install cpufrequtils
ashok@adl:~/tools/mlc/Linux$
ashok@adl:~/tools/mlc/Linux$
ashok@adl:~/tools/mlc/Linux$ sudo apt install cpufrequtils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
cpufrequtils : Depends: libcpufreq0 (>= 006) but it is not going to be installed
linux-tools-6.5.0-13 : Depends: linux-tools-common but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
ashok@adl:~/tools/mlc/Linux$
ashok@adl:~/tools/mlc/Linux$
ashok@adl:~/tools/mlc/Linux$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
linux-tools-common
The following NEW packages will be installed:
linux-tools-common
0 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
2 not fully installed or removed.
Need to get 0 B/450 kB of archives.
After this operation, 549 kB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 188135 files and directories currently installed.)
Preparing to unpack .../linux-tools-common_6.5.0-13.13_all.deb ...
Unpacking linux-tools-common (6.5.0-13.13) ...
dpkg: error processing archive /var/cache/apt/archives/linux-tools-common_6.5.0-13.13_all.deb (--unpack):
trying to overwrite '/usr/bin/cpupower', which is also in package linux-laptop-tools-common 6.5.0-1006.9
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-tools-common_6.5.0-13.13_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)