文章分類


有關阿原記事本

阿原,江易原,記下一些事情跟朋友們分享,也留下自己學習與成長的紀錄。教學課程請見 "阿原小站" 還有阿原開放式課程阿原直播與教學影片阿原生活影片阿原創新顧問公司阿原科幻小說-NC1543、教師教學社團:開源軟體與教學應用
版權:除特別聲明外,本網站之照片及文字等,皆為版權沒有 (public domain, Creative Commons Zero),歡迎使用
*本站累積不少教學與食品安全資料,請善用左上角的網頁搜尋功能,或是網頁右方文章分類整理。

2024/04/04

準備升級 Linux kernel 到 6.8 (from Ubuntu 23.10 with kernel 6.5)

 

 動機:使用新筆電之後

1. 無線網卡相對不穩定

2. 筆電 webcam ,在使用 OBS 直播一段時間後會當機,其餘錄影畫面沒有異常

3. 使用 OBS 的錄音,其品質很不穩定,非常困擾

 

下載完才發現,這不是 deb, 我不會安裝。

 



 回頭查自己的筆記,

20200712 安裝 LINUX 到新筆電-----遇到無法開機問題

 

 才想起當時是使用 這網頁的 deb

https://kernel.ubuntu.com/mainline/

 

-------------------------

把四個檔案放到一個子目錄

 

$ cd /home/knownit/20240404-kernel6.8.3
 

$ ls
linux-headers-6.8.3-060803_6.8.3-060803.202404031037_all.deb
linux-headers-6.8.3-060803-generic_6.8.3-060803.202404031037_amd64.deb
linux-image-unsigned-6.8.3-060803-generic_6.8.3-060803.202404031037_amd64.deb
linux-modules-6.8.3-060803-generic_6.8.3-060803.202404031037_amd64.deb


 

 $ uname -a  檢查 kernel 版本

Linux knownit-iyc 6.5.0-26-generic #26-Ubuntu SMP PREEMPT_DYNAMIC Tue Mar  5 21:19:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 

 

 

$ sudo dpkg -i linux*.deb
 

$ sudo dpkg -i linux*.deb
(Reading database ... 386237 files and directories currently installed.)
Preparing to unpack linux-headers-6.8.3-060803_6.8.3-060803.202404031037_all.deb ...
Unpacking linux-headers-6.8.3-060803 (6.8.3-060803.202404031037) over (6.8.3-060803.202404031037) ...
Selecting previously unselected package linux-headers-6.8.3-060803-generic.
Preparing to unpack linux-headers-6.8.3-060803-generic_6.8.3-060803.202404031037_amd64.deb ...
Unpacking linux-headers-6.8.3-060803-generic (6.8.3-060803.202404031037) ...
Selecting previously unselected package linux-image-unsigned-6.8.3-060803-generic.
Preparing to unpack linux-image-unsigned-6.8.3-060803-generic_6.8.3-060803.202404031037_amd64.deb ...
Unpacking linux-image-unsigned-6.8.3-060803-generic (6.8.3-060803.202404031037) ...
Selecting previously unselected package linux-modules-6.8.3-060803-generic.
Preparing to unpack linux-modules-6.8.3-060803-generic_6.8.3-060803.202404031037_amd64.deb ...
Unpacking linux-modules-6.8.3-060803-generic (6.8.3-060803.202404031037) ...
Setting up linux-headers-6.8.3-060803 (6.8.3-060803.202404031037) ...
dpkg: dependency problems prevent configuration of linux-headers-6.8.3-060803-generic:
 linux-headers-6.8.3-060803-generic depends on libelf1t64 (>= 0.144); however:
  Package libelf1t64 is not installed.
 linux-headers-6.8.3-060803-generic depends on libssl3t64 (>= 3.0.0); however:
  Package libssl3t64 is not installed.

dpkg: error processing package linux-headers-6.8.3-060803-generic (--install):
 dependency problems - leaving unconfigured
Setting up linux-modules-6.8.3-060803-generic (6.8.3-060803.202404031037) ...
Setting up linux-image-unsigned-6.8.3-060803-generic (6.8.3-060803.202404031037) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.5.0-26-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-6.5.0-26-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-6.8.3-060803-generic
I: /boot/initrd.img is now a symlink to initrd.img-6.8.3-060803-generic
Processing triggers for linux-image-unsigned-6.8.3-060803-generic (6.8.3-060803.202404031037) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.8.3-060803-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.3-060803-generic
Found initrd image: /boot/initrd.img-6.8.3-060803-generic
Found linux image: /boot/vmlinuz-6.5.0-26-generic
Found initrd image: /boot/initrd.img-6.5.0-26-generic
Found linux image: /boot/vmlinuz-6.5.0-25-generic
Found initrd image: /boot/initrd.img-6.5.0-25-generic
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
Errors were encountered while processing:  這怎麼回事
 linux-headers-6.8.3-060803-generic
 

 ------------------------------------------

看到可以安裝 mainline 套件

 https://phoenixnap.com/kb/how-to-update-kernel-ubuntu

 

 

 --------------------------------

 https://superuser.com/questions/208502/how-to-add-a-new-kernel-to-grub2

 sudo update-grub
[sudo] password for knownit:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.1-060801-generic
Found initrd image: /boot/initrd.img-6.8.1-060801-generic
Found linux image: /boot/vmlinuz-6.8.0-060800-generic
Found initrd image: /boot/initrd.img-6.8.0-060800-generic
Found linux image: /boot/vmlinuz-6.5.0-26-generic
Found initrd image: /boot/initrd.img-6.5.0-26-generic
Found linux image: /boot/vmlinuz-6.5.0-25-generic
Found initrd image: /boot/initrd.img-6.5.0-25-generic
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done