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
...8 / 9
To page
avatar
tzho
deepin
2020-01-29 17:49
#141
https://bbs.deepin.org/post/175411
安装了最新的那个5.4.rc版,发现v-box无法使用,删了,换成5.3.8,成功

请问你是如何删除内核的?
Reply View the author
avatar
zed7th
deepin
2020-01-29 18:21
#142
https://bbs.deepin.org/post/175411
请问你是如何删除内核的?

重启在登陆的时候选择系统的界面选择advance ,选择你要使用的内核进入系统,然后使用 dpkg --get-selections | grep linux  或者 dpkg --list |grep linux 命令查看已有内核,使用 sudo apt-get purge linux-image-<版本号> 命令删除内核,使用 sudo update-grub 命令更新grub后重启即可
Reply View the author
avatar
hickeyhao
deepin
2020-01-29 21:08
#143
https://bbs.deepin.org/post/175411
请问你是在哪里下的linux-modules-extra

85#                              。
Reply View the author
avatar
enjuster
deepin
2020-02-01 02:21
#144
amd老版双显卡的能按这个走吗
Reply View the author
avatar
文刀
deepin
2020-02-04 05:28
#145
https://bbs.deepin.org/post/175411
amd老版双显卡的能按这个走吗

这个我就不清楚了,你可以试试,出问题就切回来版本的内核
Reply View the author
avatar
小明Hackintosh
deepin
2020-04-02 22:55
#146
真是不容易呀,我也安装成功了。好像 是要先安装linux-firmware-20200316.tar.gz可以到 清华源下载。下载最新那个就好了。解压进入目录,执行
  1. sudo make install
Copy the Code
之后再
  1. sudo update-initramfs -uk all
Copy the Code
就可以了。

Reply View the author
avatar
文刀
deepin
2020-04-04 17:01
#147
https://bbs.deepin.org/post/175411
感谢楼主,用系统原本的内核版本,不能正常的关机重启,用个把小时还会卡死,升级完内核之后可以了,用起来 ...

好用就行,更新内核也有一定风险,如果当前内核用的没什么问题,还是等深度来更新
Reply View the author
avatar
acalbert
deepin
2020-04-07 00:18
#148
感谢分享~
Reply View the author
avatar
wafree
deepin
2020-04-16 00:59
#149
今天按楼主的办法测试升级5.64版本内核成功,谢谢楼主!!!
Reply View the author
avatar
panjk0518
deepin
2020-04-26 06:20
#150
我的用另外一个帖子中的方法升级了,安装时也有报错,但是重启进入新内核后非常顺利,正在用Kernel5.6.7回复此帖(V20是5.3.0.3)
Reply View the author
avatar
honda-s660
deepin
2020-06-09 00:22
#151
强烈推荐再下载并安装第5个软件包

linux-modules-extra-xxx-generic_xxx_amd64.deb(内核附加驱动包)

[图片]
到底是哪个     我就是台式机USB网卡不能用
Reply View the author
avatar
honda-s660
deepin
2020-06-09 00:33
#152
https://bbs.deepin.org/post/175411
回楼主:
------------------

“强烈推荐再下载并安装第5个软件包

linux-modules-extra-xxx-generic_xxx_amd64.deb(内核附加驱动包)”



哪个是第五个
网站一共7个文件
按顺序 楼主给的是1 2 4  6       一共 4个文件
按其顺序 你说的第五个就是           linux-image-unsigned-5.0.1-050001-lowlatency_5.0.1-050001.201903100732_amd64.deb   这个了       而不是你给的名称    你给的名称的应该是第六个   楼主已经标了
Reply View the author
avatar
honda-s660
deepin
2020-06-09 00:41
#153
现在升级5.4          应该没什么问题了吧   风险大吗
Reply View the author
avatar
haohu1193
deepin
2020-06-09 00:45
#154
虚拟机直接干到5.7了...







Reply View the author
avatar
honda-s660
deepin
2020-06-09 01:04
#155
https://bbs.deepin.org/post/175411
刚才看了一下, ubuntu ppa 确实没有  linux-modules-extra 相关的包。

但是,在华为云镜像,可以找到 5 ...

现在有5.4的吗       准备升级    2楼说的第五个包不知道到底是哪个    网站没有那个名字的     
Reply View the author
avatar
honda-s660
deepin
2020-06-09 01:07
#156
https://bbs.deepin.org/post/175411
5.3的linux-modules-extra-xxx-generic_xxx_amd64.deb在哪下载?

想找5.4的   准备升级
Reply View the author
avatar
honda-s660
deepin
2020-06-09 01:38
#157
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4-rc8/   最新的              5.4   cr8
Reply View the author
avatar
jianguo922
deepin
2020-06-09 04:19
#158
谢谢楼主分享
Reply View the author
avatar
honda-s660
deepin
2020-06-09 18:03
#159
https://bbs.deepin.org/post/175411
刚才看了一下, ubuntu ppa 确实没有  linux-modules-extra 相关的包。

但是,在华为云镜像,可以找到 5 ...

现在有15个    哪个版本高  是最新的
Reply View the author
avatar
honda-s660
deepin
2020-06-09 18:06
#160
https://bbs.deepin.org/post/175411
刚才看了一下, ubuntu ppa 确实没有  linux-modules-extra 相关的包。

但是,在华为云镜像,可以找到 5 ...

下面还有5.4的
Reply View the author
...8 / 9
To page