[Repository/Mirror] apt安装hwe内核后更新grub莫名出现了一个linux5.3.0的选项
Tofloor
poster avatar
shy
deepin
2023-01-05 02:16
Author

如题

apt表示我也不知道啊?
截图_选择区域_20230104180857.png

但是无论是grub还是进了系统显示的都是5.3.0
截图_选择区域_20230104180914.png

(5.3.0内核有的时候还没有10400这个cpu,自然核显没驱动起来分辨率有问题。。)

问题是不是apt安装的还能是怎么来的呢?我又应该怎么删掉这个内核呢?(是20.8安装镜像装的系统,不可能有遗留问题)

Reply Favorite View the author
All Replies
jjcui8595
deepin
2023-01-05 03:02
#1

安装5.15内核并重启后卸载5.3

Reply View the author
帅哥
deepin
2023-01-05 03:12
#2

终端执行:sudo apt install linux-image-5.18.17-amd64-desktop-community-hwe linux-headers-5.18.17-amd64-desktop-hwe

Reply View the author
安洛
deepin
2023-01-05 03:26
#3

sudo dpkg -l | grep '5.3.0'

用这个命令查找一下已经安装的包,看看有没有安装相应的包。你也可以把'5.3.0'换成其它关键词试试。

另外你有没有安装virtualbox?我记得virtualbox有些版本会带一个内核的依赖。

Reply View the author
shy
deepin
2023-01-05 04:27
#4
安洛

sudo dpkg -l | grep '5.3.0'

用这个命令查找一下已经安装的包,看看有没有安装相应的包。你也可以把'5.3.0'换成其它关键词试试。

另外你有没有安装virtualbox?我记得virtualbox有些版本会带一个内核的依赖。

装vitrualbox了,可能是这个原因

Reply View the author
shy
deepin
2023-01-05 04:36
#5
安洛

sudo dpkg -l | grep '5.3.0'

用这个命令查找一下已经安装的包,看看有没有安装相应的包。你也可以把'5.3.0'换成其它关键词试试。

另外你有没有安装virtualbox?我记得virtualbox有些版本会带一个内核的依赖。

sudo dpkg -l | grep '5.3.0'
请输入密码:
ii libepoxy0:amd64 1.5.3-0.1 amd64 OpenGL function pointer management library
ii liblightdm-qt5-3-0:amd64 1.26.7.11-1+dde amd64 LightDM Qt 5 client library
ii linux-headers-5.3.0-3-amd64 5.3.15-6apricot amd64 Header files for Linux 5.3.0-3-amd64
ii linux-headers-5.3.0-3-common 5.3.15-6apricot all Common header files for Linux 5.3.0-3
ii linux-image-unsigned-5.3.0-42-generic 5.3.0-42.34 amd64 Linux kernel image for version 5.3.0 on 64 bit x86 SMP
ii linux-modules-5.3.0-42-generic 5.3.0-42.34 amd64 Linux kernel extra modules for version 5.3.0 on 64 bit x86 SMP
shy@shy-PC ~> sudo apt remove linux-modules-5.3.0-42-generic linux-image-unsigned-5.3.0-42-generic linux-headers-5.3.0-3-common linux-image-unsigned-5.3.0-42-generic
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
grub-pc grub-pc-bin linux-compiler-gcc-8-x86 linux-headers-5.15.45-amd64-desktop linux-image-5.15.45-amd64-desktop linux-kbuild-5.3
使用'sudo apt autoremove'来卸载它(它们)。
下列软件包将被【卸载】:
linux-headers-5.3.0-3-amd64 linux-headers-5.3.0-3-common linux-headers-amd64 linux-image-unsigned-5.3.0-42-generic linux-modules-5.3.0-42-generic
升级了 0 个软件包,新安装了 0 个软件包,要卸载 5 个软件包,有 0 个软件包未被升级。
解压缩后将会空出 139 MB 的空间。
您希望继续执行吗? [Y/n]

这样删掉就没问题了吧(自动安装的grub-pc是不是还要手动装回来)

Reply View the author
shy
deepin
2023-01-05 04:38
#6
shy

装vitrualbox了,可能是这个原因

介绍说grub-pc好像是给bios引导用的GRand Unified Bootloader, version 2 (PC/BIOS version)

我用的uefi是不是可以autoremove不管了😂

Reply View the author
安洛
deepin
2023-01-05 05:09
#7
shy

介绍说grub-pc好像是给bios引导用的GRand Unified Bootloader, version 2 (PC/BIOS version)

我用的uefi是不是可以autoremove不管了😂

一般情况下你可以放心autoremove

你要是不放心就留着算了,你直接

sudo apt install grub-pc

把它设成手动安装,或者等卸载了再重装一遍,反正也不怎么占空间。

不过我个人认为应该没事doubt

Reply View the author
忘记、过去
deepin
2023-01-05 05:46
#8

安装 virtualbox 最好用 sudo apt --no-install-recommends install virtualbox-7.0,推荐的包里面有 5.3 内核和 pdfviewer 啥的,都用不上

Reply View the author