Deepin升级Linux5.0内核(目前最新5.7)
Tofloor
poster avatar
文刀
deepin
2019-03-11 17:28
Author
本帖最后由 deepinY 于 2020-6-8 19:15 编辑

以下是自己升级deepin的Linux内核的步骤,有需要的可以参考,内核升级有一定风险,风险自己承担
1.下载新的内核
内核库地址https://kernel.ubuntu.com/~kernel-ppa/mainline/
(这个是本文演示5.0.1的目录https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0.1/
下载四个文件(统一使用generic版本或lowlatency版本,这里使用generic版本兼容性高些)
linux-modules-xxx-generic_xxx_amd64.deb(内核驱动包)
linux-image-unsigned-xxx-generic_xxx_amd64.deb(内核镜像包)
linux-headers-xxx_all.deb(内核头文件包1)
linux-headers-xxx-generic_xxx_amd64.deb(内核头文件包2)
2.准备安装
将下载好的四个安装包放在同一文件夹下
右键在该文件夹内打开终端
准备开始安装
3.开始安装
在终端内输入下面代码,开始安装
  1. sudo dpkg -i *.deb
Copy the Code
安装完成后保险起见手动更新新内核的引导项(正常自动会更新,这里保险起见)
  1. sudo update-grub
Copy the Code
4.重启选择新内核启动即可
5.更新完成
使用下面代码查看内核版本
  1. uname -a
Copy the Code

再次提醒,仅供参考,升级有一定风险

5.0的内核存在Android虚拟机的问题,目前测试5.1,5.2的新内核已经不存在Android虚拟机问题了
内核升级后会导致NV显卡切换失败问题目前可以使用终端升级但是目前使用已知新内核切换到NVPrime方案,启动Android虚拟机会出问题

再次提醒,切换有风险
升级后如果无法正常加载内核,不用慌,可以在选择就内核进入系统后,卸载新的内核


Reply Favorite View the author
All Replies
...4 / 9
To page
avatar
nero28
deepin
2019-03-23 06:02
#61
想remove掉5.0.1但提示以下错误,有谁知道怎么搞定么?4个remove了3个,就这1个remove出错。。。。

nero@shinelon:~$ sudo apt-get remove linux-image-unsigned-5.0.1-050001-generic
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
下列软件包将被【卸载】:
  linux-image-unsigned-5.0.1-050001-generic
升级了 0 个软件包,新安装了 0 个软件包,要卸载 1 个软件包,有 0 个软件包未被升级。
有 1 个软件包没有被完全安装或卸载。
解压缩后将会空出 8,703 kB 的空间。
您希望继续执行吗? [Y/n] y
(正在读取数据库 ... 系统当前共安装有 203106 个文件和目录。)
正在卸载 linux-image-unsigned-5.0.1-050001-generic (5.0.1-050001.201903100732) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.0.1-050001-generic
/etc/kernel/postrm.d/zz-update-grub:
/usr/sbin/grub-probe:错误: failed to get canonical path of `overlayroot'.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
dpkg: 处理软件包 linux-image-unsigned-5.0.1-050001-generic (--remove)时出错:
installed linux-image-unsigned-5.0.1-050001-generic package post-removal script subprocess returned error exit status 1
在处理时有错误发生:
linux-image-unsigned-5.0.1-050001-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reply View the author
avatar
superendermansm
deepin
2019-03-23 20:44
#62
https://bbs.deepin.org/post/175411
谢谢!现在是这样,没象上面的显deepio的图形,也不知成功否?

那个是一个软件,screenfetch
sudo apt install screenfetch  安装
screenfetch运行
Reply View the author
avatar
superendermansm
deepin
2019-03-23 20:46
#63
https://bbs.deepin.org/post/175411
为啥要升级内核呀?升级了有啥好处吗?
我还是觉得跟着官方走,安全

比较新的硬件deepin的内核太旧,没有驱动
冷门的硬件deepin编译内核的时候优化掉了,安装这个内核
有些硬件使用旧版内核性能比新版内核差
Reply View the author
avatar
152******88
deepin
2019-04-12 06:11
#64
更新内核重启显示logo后黑屏请问怎么处理?左上角有个光标都不闪
Reply View the author
avatar
文刀
deepin
2019-04-12 06:23
#65
https://bbs.deepin.org/post/175411
更新内核重启显示logo后黑屏请问怎么处理?左上角有个光标都不闪

出问题的话就退回原内核就好了,抱歉目前内核问题我也不是很清楚
Reply View the author
avatar
zgg
deepin
2019-07-16 04:29
#66
有没有升级5.2.1rc的,我的升完之后发现xDroid 里面的安卓应用开在安卓启动画面
Reply View the author
avatar
love1659280
deepin
2019-09-04 22:45
#67
升级完内核无线网没了 - -!!!
Reply View the author
Comments
spencer023
2020-02-21 04:34
可能是升级的内核太新,网卡驱动未适配呢。不要用最新的内核哟
avatar
文刀
deepin
2019-09-05 01:59
#68
https://bbs.deepin.org/post/175411
升级完内核无线网没了 - -!!!

关机后退回原来的内核
Reply View the author
avatar
shenlongdaka
deepin
2019-09-05 10:42
#69
内核更新完成,但是安装的时候出现错误,重启后内核更新好了,现在无法切换大黄蜂显卡方案,终端也没法切换,求教。。
Reply View the author
avatar
文刀
deepin
2019-09-08 02:02
#70
https://bbs.deepin.org/post/175411
内核更新完成,但是安装的时候出现错误,重启后内核更新好了,现在无法切换大黄蜂显卡方案,终端也没法切换 ...

抱歉,目前我已经不使用deepin了,现在使用的是Manjaro,对于大黄蜂显卡方案可以等待deepin V20看看是否能够解决
Reply View the author
avatar
海鸥
deepin
2019-09-08 15:01
#71
支持分享。按法国一朋友的方法升过,个人没觉得有多变化。
Reply View the author
avatar
byx8848320105
deepin
2019-09-08 15:22
#72
可能是我的机器比较老,更新内核后,要等好久才能进入桌面,性能并没有提升。
Reply View the author
avatar
文刀
deepin
2019-09-08 17:30
#73
https://bbs.deepin.org/post/175411
可能是我的机器比较老,更新内核后,要等好久才能进入桌面,性能并没有提升。 ...

内核还是稳定为主,新的内核主要在于对于新硬件的兼容,机器老用的没问题没必要升级内核
Reply View the author
avatar
188******09
deepin
2019-09-28 11:42
#74
不知道是不是错觉,感觉电脑快了好多
Reply View the author
avatar
文刀
deepin
2019-10-02 05:00
#75
https://bbs.deepin.org/post/175411
不知道是不是错觉,感觉电脑快了好多

对于新的硬件应该更加合适
Reply View the author
avatar
weisheng
deepin
2019-10-03 06:54
#76
笔记本试试最新版5.4rc1,成功了就回来
Reply View the author
avatar
weisheng
deepin
2019-10-03 07:32
#77
内核加载失败了,这是systemctl的错误信息
Reply View the author
avatar
byx8848320105
deepin
2019-10-03 15:01
#78
以前换过多次,都是无法进入桌面,需要等好久,或者敲击鼠标键盘才能进去。今天早上换了5.4的内核,直接进去了。点赞。
Reply View the author
avatar
文刀
deepin
2019-10-03 17:07
#79
https://bbs.deepin.org/post/175411
内核加载失败了,这是systemctl的错误信息

那就从之前的内核进入系统后卸载新的内核
Reply View the author
avatar
文刀
deepin
2019-10-03 17:10
#80
https://bbs.deepin.org/post/175411
以前换过多次,都是无法进入桌面,需要等好久,或者敲击鼠标键盘才能进去。今天早上换了5.4的内核,直接进 ...

新内核比较适合新的硬件设备,前几次换新内核,一开始感觉快,但是过了几天就发现有时候会卡顿,还是需要官方适配一下比较好,deepin如果能像Manjaro一样出一个管理器,安装卸载内核也会比较方便,不过目前来看,还是期待一下V20
Reply View the author
...4 / 9
To page