How to update from Ubuntu 22.04 to 23.04sudo apt updatesudo apt upgrade -ysudo apt install update-manager-core -ysudo vim /etc/update-manager/release-upgradesChange Lts to normalcp /etc/apt/sources.list ~/sources.list.baksudo sed -i s/jammy/lunar/g /etc/apt/sources.listsudo apt updatesudo apt upgrade -ysudo apt autoremovesudo apt dist-upgrade -yChoose kernelsudo rebootcat /etc/os-releaseUbuntu Kernel Build-----------------------------Download source https://www.kernel.org/tar xvf linux-6.0.7.tar.xz#install required toolssudo apt-get install git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bisoncd linux-6.0.7#copy existing configcp -v /boot/config-$(uname -r) .config#set power flag for dpdk in .config fileCONFIG_INTEL_UNCORE_FREQ_CONTROL=y#change config through GUImake menuconfig#build kernel with make commandmake------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.pemDisable the conflicting security certificates by executing the two commands below:scripts/config --disable SYSTEM_TRUSTED_KEYSscripts/config --disable SYSTEM_REVOCATION_KEYS-----------# Install the required modules with this command:sudo make modules_installIn case of permission denied error: chmod 777 -R debian/scripts#install kernelsudo make installStep 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-342. Update the GRUB bootloader with this command:sudo update-grubStep 7: Reboot and Verify Kernel VersionWhen you complete the steps above, reboot the machine.When the system boots up, verify the kernel version using the uname command:uname -mrs
Grub
See the details of installed kernels
dpkg --list | grep linux-image
or
vim /boot/grub/grub.cfg
Change default OS:
/etc/default/grub
Errors=========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 2make[1]: *** [/home/ashok/tools/kernel/linux-6.5.7/Makefile:2034: .] Error 2make: *** [Makefile:234: __sub-make] Error 2Solution:sudo mkdir -p /usr/local/src/debiansudo apt install linux-sourcesudo 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 installINSTALL /bootrun-parts: executing /etc/kernel/postinst.d/dkms 6.5.7 /boot/vmlinuz-6.5.7* dkms: running auto installation service for kernel 6.5.7Sign command: /usr/bin/kmodsignSigning key: /var/lib/shim-signed/mok/MOK.privPublic certificate (MOK): /var/lib/shim-signed/mok/MOK.derBuilding module:Cleaning build area...'make' KDIR=/lib/modules/6.5.7/build...(bad exit status: 2)ERROR (dkms apport): kernel package linux-headers-6.5.7 is not supportedError! 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 11make[1]: *** [arch/x86/Makefile:292: install] Error 1make: *** [Makefile:234: __sub-make] Error 2Solution:Download dkms source, update max linux version in meta and buildOn 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$ dkms install zfs/2.1.6$ modprobe zfs$ zfs versionzfs-2.1.6-1zfs-kmod-2.1.6-1$ uname -r6.0.5-200.fc36.x86_64Building module:Cleaning build area...'make' KDIR=/lib/modules/6.2.16/build...(bad exit status: 2)ERROR (dkms apport): kernel package linux-headers-6.2.16 is not supportedError! Bad return status for module build on kernel: 6.2.16 (x86_64)Ubunt: change default OS/Kernelcat /etc/default/grub
Not able to install stuff
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)
Solution:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/linux-tools-common_6.5.0-13.13_all.debsudo apt install -fRemote GUI from Windows--------------------------------------https://phoenixnap.com/kb/ubuntu-remote-desktop-from-windows
No comments:
Post a Comment