升级到正式版内核还是5.4和5.3
Tofloor
poster avatar
rekees2020
deepin
2020-09-12 05:40
Author
一路从beta升级过来的,今天用apt upgrade升级到正式版,发现内核还是5.4和5.3, 不应该是5.7和5.4么?

Reply Favorite View the author
All Replies
SamLukeYes
deepin
2020-09-12 05:56
#1
旧的内核不会自动卸载,5.7 需要手动安装
Reply View the author
rekees2020
deepin
2020-09-12 05:58
#2
装好了,成了三内核,5.3的下列残留是不是都可以删除--
linux-headers-5.3.0-3-amd64
linux-headers-5.3.0-3-common
linux-image-5.3.0-3-amd64-unsigned
linux-kbuild-5.3
Reply View the author
SamLukeYes
deepin
2020-09-12 06:28
#3
https://bbs.deepin.org/post/201794
装好了,成了三内核,5.3的下列残留是不是都可以删除--
linux-headers-5.3.0-3-amd64
linux-headers-5.3.0- ...

autoremove 一下看看
Reply View the author
rekees2020
deepin
2020-09-12 06:47
#4
好主意,这样删应该更安全,5.3能删的应该都删了,输出如下
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  linux-compiler-gcc-8-x86 linux-headers-5.3.0-3-amd64
  linux-headers-5.3.0-3-common linux-image-5.3.0-3-amd64-unsigned
  linux-kbuild-5.3
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 332 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 286422 files and directories currently installed.)
Removing linux-headers-5.3.0-3-amd64 (5.3.15-6apricot) ...
Removing linux-compiler-gcc-8-x86 (5.3.15-6apricot) ...
Removing linux-headers-5.3.0-3-common (5.3.15-6apricot) ...
Removing linux-image-5.3.0-3-amd64-unsigned (5.3.15-6apricot) ...
/etc/kernel/prerm.d/dkms:
dkms: removing: bcmwl 6.30.223.271+bdcom (5.3.0-3-amd64) (x86_64)

-------- Uninstall Beginning --------
Module:  bcmwl
Version: 6.30.223.271+bdcom
Kernel:  5.3.0-3-amd64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

wl.ko:
- Uninstallation
   - Deleting from: /lib/modules/5.3.0-3-amd64/updates/
rmdir: failed to remove 'updates': Directory not empty
- Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.
dkms: removing: deepin-anything 0.0 (5.3.0-3-amd64) (x86_64)

-------- Uninstall Beginning --------
Module:  deepin-anything
Version: 0.0
Kernel:  5.3.0-3-amd64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vfs_monitor.ko:
- Uninstallation
   - Deleting from: /lib/modules/5.3.0-3-amd64/updates//
rmdir: failed to remove 'updates/': Directory not empty
- Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.
dkms: removing: huawei-wmi 1.0 (5.3.0-3-amd64) (x86_64)

-------- Uninstall Beginning --------
Module:  huawei-wmi
Version: 1.0
Kernel:  5.3.0-3-amd64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

huawei-wmi.ko:
- Uninstallation
   - Deleting from: /lib/modules/5.3.0-3-amd64/updates//
- Original module
   - Archived original module found in the DKMS tree
   - Moving it to: /lib/modules/5.3.0-3-amd64/updates//
depmod...

Removing original_module from DKMS tree for kernel 5.3.0-3-amd64 (x86_64)

DKMS: uninstall completed.
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.3.0-3-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.7.7-amd64-desktop
Found initrd image: /boot/initrd.img-5.7.7-amd64-desktop
Found linux image: /boot/vmlinuz-5.4.50-amd64-desktop
Found initrd image: /boot/initrd.img-5.4.50-amd64-desktop
Adding boot menu entry for EFI firmware configuration
done
Removing linux-kbuild-5.3 (5.3.15-6apricot) ...
Reply View the author
睡梦中人
deepin
2020-09-12 07:11
#5
It has been deleted!
rekees2020
deepin
2020-09-12 07:22
#6
https://bbs.deepin.org/post/201794
升级只能升到5.4版本,想要选5.7版本需要重新安装,再在安装时选择5.4或5.7,两者内核版本不共存,只能任选 ...

用命令行可以升上去,升了之后是5.3、5.4、5.7三内核,autoremove会删掉5.3
Reply View the author