Liquorix Kernel在ubuntu18.04下的安装

Liquorix是一个发行版内核的替代品,也就是Liquorix仅仅是个内核,但是它可以驱动各类Linux发行版,它基于桌面、多媒体和游戏工作负载的最佳配置进行构建。下面就介绍一下如何使用Liquorix内核替换ubuntu18.04下的原生内核。

按照官方操作即可

基操步骤:

sudo apt install curl
curl 'https://liquorix.net/add-liquorix-repo.sh' | sudo bash
sudo add-apt-repository ppa:damentz/liquorix && sudo apt-get update
sudo apt-get install linux-image-liquorix-amd64 linux-headers-liquorix-amd64
caozilong@caozilong-Vostro-3268:~/Workspace/liquorix$ sudo apt install curl
[sudo] caozilong 的密码: 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包是自动安装的并且现在不需要了:
  libegl1-mesa libfwup1 libllvm9
使用'sudo apt autoremove'来卸载它(它们)。
将会同时安装下列软件:
  libcurl4
下列【新】软件包将被安装:
  curl libcurl4
升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 5 个软件包未被升级。
需要下载 378 kB 的归档。
解压缩后会消耗 1,051 kB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcurl4 amd64 7.58.0-2ubuntu3.13 [219 kB]
获取:2 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 curl amd64 7.58.0-2ubuntu3.13 [159 kB]
已下载 378 kB,耗时 3秒 (142 kB/s)
正在选中未选择的软件包 libcurl4:amd64。
(正在读取数据库 ... 系统当前共安装有 220198 个文件和目录。)
正准备解包 .../libcurl4_7.58.0-2ubuntu3.13_amd64.deb  ...
正在解包 libcurl4:amd64 (7.58.0-2ubuntu3.13) ...
正在选中未选择的软件包 curl。
正准备解包 .../curl_7.58.0-2ubuntu3.13_amd64.deb  ...
正在解包 curl (7.58.0-2ubuntu3.13) ...
正在设置 libcurl4:amd64 (7.58.0-2ubuntu3.13) ...
正在设置 curl (7.58.0-2ubuntu3.13) ...
正在处理用于 man-db (2.8.3-2ubuntu0.1) 的触发器 ...
正在处理用于 libc-bin (2.27-3ubuntu1.4) 的触发器 ...
caozilong@caozilong-Vostro-3268:~/Workspace/liquorix$ curl 'https://liquorix.net/add-liquorix-repo.sh' | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1176  100  1176    0     0   1649      0 --:--:-- --:--:-- --:--:--  1647
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
lsb-release 已经是最新版 (9.20170808ubuntu1)。
lsb-release 已设置为手动安装。
下列软件包是自动安装的并且现在不需要了:
  libegl1-mesa libfwup1 libllvm9
使用'apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 5 个软件包未被升级。
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
curl 已经是最新版 (7.58.0-2ubuntu3.13)。
下列软件包是自动安装的并且现在不需要了:
  libegl1-mesa libfwup1 libllvm9
使用'apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 5 个软件包未被升级。
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3441  100  3441    0     0   4860      0 --:--:-- --:--:-- --:--:--  4853

[INFO ] Liquorix keyring added to /etc/apt/trusted.gpg.d/liquorix-keyring.gpg

正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包是自动安装的并且现在不需要了:
  libegl1-mesa libfwup1 libllvm9
使用'apt autoremove'来卸载它(它们)。
下列【新】软件包将被安装:
  apt-transport-https
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 5 个软件包未被升级。
需要下载 4,348 B 的归档。
解压缩后会消耗 154 kB 的额外空间。
获取:1 http://cn.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 apt-transport-https all 1.6.14 [4,348 B]
已下载 4,348 B,耗时 0秒 (9,169 B/s)            
正在选中未选择的软件包 apt-transport-https。
(正在读取数据库 ... 系统当前共安装有 220211 个文件和目录。)
正准备解包 .../apt-transport-https_1.6.14_all.deb  ...
正在解包 apt-transport-https (1.6.14) ...
正在设置 apt-transport-https (1.6.14) ...
命中:1 http://cn.archive.ubuntu.com/ubuntu bionic InRelease
命中:2 http://security.ubuntu.com/ubuntu bionic-security InRelease 
命中:3 http://cn.archive.ubuntu.com/ubuntu bionic-updates InRelease            
命中:5 http://cn.archive.ubuntu.com/ubuntu bionic-backports InRelease  
忽略:4 https://liquorix.net/debian bionic InRelease
错误:6 https://liquorix.net/debian bionic Release
  404  Not Found [IP: 45.79.167.183 443]
正在读取软件包列表... 完成
E: 仓库 “http://liquorix.net/debian bionic Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
caozilong@caozilong-Vostro-3268:~/Workspace/liquorix$ curl 'https://liquorix.net/add-liquorix-repo.sh' | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1176  100  1176    0     0   1665      0 --:--:-- --:--:-- --:--:--  1665
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
lsb-release 已经是最新版 (9.20170808ubuntu1)。
下列软件包是自动安装的并且现在不需要了:
  libegl1-mesa libfwup1 libllvm9
使用'apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 5 个软件包未被升级。
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
curl 已经是最新版 (7.58.0-2ubuntu3.13)。
下列软件包是自动安装的并且现在不需要了:
  libegl1-mesa libfwup1 libllvm9
使用'apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 5 个软件包未被升级。
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3441  100  3441    0     0   4873      0 --:--:-- --:--:-- --:--:--  4873

[INFO ] Liquorix keyring added to /etc/apt/trusted.gpg.d/liquorix-keyring.gpg

正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
apt-transport-https 已经是最新版 (1.6.14)。
下列软件包是自动安装的并且现在不需要了:
  libegl1-mesa libfwup1 libllvm9
使用'apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 5 个软件包未被升级。
命中:2 http://cn.archive.ubuntu.com/ubuntu bionic InRelease
命中:3 http://security.ubuntu.com/ubuntu bionic-security InRelease
命中:4 http://cn.archive.ubuntu.com/ubuntu bionic-updates InRelease            
命中:5 http://cn.archive.ubuntu.com/ubuntu bionic-backports InRelease          
忽略:1 https://liquorix.net/debian bionic InRelease                      
错误:6 https://liquorix.net/debian bionic Release
  404  Not Found [IP: 45.79.167.183 443]
正在读取软件包列表... 完成
E: 仓库 “http://liquorix.net/debian bionic Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
caozilong@caozilong-Vostro-3268:~/Workspace/liquorix$ sudo add-apt-repository ppa:damentz/liquorix && sudo apt-get update
 Liquorix is a distro kernel replacement built using the best configuration and kernel sources for desktop, multimedia, and gaming workloads.

Website: https://liquorix.net
Package Source: https://github.com/damentz/liquorix-package
Kernel Source: https://github.com/zen-kernel/zen-kernel
 更多信息: https://launchpad.net/~damentz/+archive/ubuntu/liquorix
按 [ENTER] 继续或 Ctrl-c 取消安装。

命中:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
命中:3 http://cn.archive.ubuntu.com/ubuntu bionic InRelease        
命中:4 http://cn.archive.ubuntu.com/ubuntu bionic-updates InRelease            
命中:5 http://cn.archive.ubuntu.com/ubuntu bionic-backports InRelease          
忽略:1 https://liquorix.net/debian bionic InRelease                      
错误:6 https://liquorix.net/debian bionic Release
  404  Not Found [IP: 45.79.167.183 443]
获取:7 http://ppa.launchpad.net/damentz/liquorix/ubuntu bionic InRelease [15.9 kB]
获取:8 http://ppa.launchpad.net/damentz/liquorix/ubuntu bionic/main amd64 Packages [1,492 B]
97% [正在连接 ppa.launchpad.net (91.189.95.85)]                           
获取:9 http://ppa.launchpad.net/damentz/liquorix/ubuntu bionic/main Translation-en [644 B]
正在读取软件包列表... 完成                         
E: 仓库 “http://liquorix.net/debian bionic Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
caozilong@caozilong-Vostro-3268:~/Workspace/liquorix$ 
caozilong@caozilong-Vostro-3268:~/Workspace/liquorix$ sudo apt-get install linux-image-liquorix-amd64 linux-headers-liquorix-amd64
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包是自动安装的并且现在不需要了:
  libegl1-mesa libfwup1 libllvm9
使用'sudo apt autoremove'来卸载它(它们)。
将会同时安装下列软件:
  linux-headers-5.12.0-14.2-liquorix-amd64
  linux-image-5.12.0-14.2-liquorix-amd64
建议安装:
  linux-doc-5.12
下列【新】软件包将被安装:
  linux-headers-5.12.0-14.2-liquorix-amd64 linux-headers-liquorix-amd64
  linux-image-5.12.0-14.2-liquorix-amd64 linux-image-liquorix-amd64
升级了 0 个软件包,新安装了 4 个软件包,要卸载 0 个软件包,有 5 个软件包未被升级。
需要下载 73.3 MB 的归档。
解压缩后会消耗 384 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://ppa.launchpad.net/damentz/liquorix/ubuntu bionic/main amd64 linux-headers-5.12.0-14.2-liquorix-amd64 amd64 5.12-20ubuntu1~bionic [11.6 MB]
获取:2 http://ppa.launchpad.net/damentz/liquorix/ubuntu bionic/main amd64 linux-image-5.12.0-14.2-liquorix-amd64 amd64 5.12-20ubuntu1~bionic [61.4 MB]
获取:3 http://ppa.launchpad.net/damentz/liquorix/ubuntu bionic/main amd64 linux-headers-liquorix-amd64 amd64 5.12-20ubuntu1~bionic [164 kB]
获取:4 http://ppa.launchpad.net/damentz/liquorix/ubuntu bionic/main amd64 linux-image-liquorix-amd64 amd64 5.12-20ubuntu1~bionic [164 kB]
已下载 73.3 MB,耗时 22秒 (3,331 kB/s)                                         
正在选中未选择的软件包 linux-headers-5.12.0-14.2-liquorix-amd64。
(正在读取数据库 ... 系统当前共安装有 220215 个文件和目录。)
正准备解包 .../linux-headers-5.12.0-14.2-liquorix-amd64_5.12-20ubuntu1~bionic_amd64.deb  ...
正在解包 linux-headers-5.12.0-14.2-liquorix-amd64 (5.12-20ubuntu1~bionic) ...
正在选中未选择的软件包 linux-image-5.12.0-14.2-liquorix-amd64。
正准备解包 .../linux-image-5.12.0-14.2-liquorix-amd64_5.12-20ubuntu1~bionic_amd64.deb  ...
正在解包 linux-image-5.12.0-14.2-liquorix-amd64 (5.12-20ubuntu1~bionic) ...
正在选中未选择的软件包 linux-headers-liquorix-amd64。
正准备解包 .../linux-headers-liquorix-amd64_5.12-20ubuntu1~bionic_amd64.deb  ...
正在解包 linux-headers-liquorix-amd64 (5.12-20ubuntu1~bionic) ...
正在选中未选择的软件包 linux-image-liquorix-amd64。
正准备解包 .../linux-image-liquorix-amd64_5.12-20ubuntu1~bionic_amd64.deb  ...
正在解包 linux-image-liquorix-amd64 (5.12-20ubuntu1~bionic) ...
正在设置 linux-image-5.12.0-14.2-liquorix-amd64 (5.12-20ubuntu1~bionic) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-5.4.129+
I: /initrd.img.old is now a symlink to boot/initrd.img-5.4.129+
I: /vmlinuz is now a symlink to boot/vmlinuz-5.12.0-14.2-liquorix-amd64
I: /initrd.img is now a symlink to boot/initrd.img-5.12.0-14.2-liquorix-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.12.0-14.2-liquorix-amd64
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125b-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125a-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168fp-3.fw for module r8169
I: The initramfs will attempt to resume from /dev/sdb7
I: (UUID=16874c1b-6f4c-4ef7-922a-36e2b8d0eccf)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.12.0-14.2-liquorix-amd64
Found initrd image: /boot/initrd.img-5.12.0-14.2-liquorix-amd64
Found linux image: /boot/vmlinuz-5.4.129+
Found initrd image: /boot/initrd.img-5.4.129+
Found linux image: /boot/vmlinuz-5.4.129+.old
Found initrd image: /boot/initrd.img-5.4.129+
Found linux image: /boot/vmlinuz-5.4.0-77-generic
Found initrd image: /boot/initrd.img-5.4.0-77-generic
Found linux image: /boot/vmlinuz-5.3.0-28-generic
Found initrd image: /boot/initrd.img-5.3.0-28-generic
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
正在设置 linux-headers-5.12.0-14.2-liquorix-amd64 (5.12-20ubuntu1~bionic) ...
正在设置 linux-image-liquorix-amd64 (5.12-20ubuntu1~bionic) ...
正在设置 linux-headers-liquorix-amd64 (5.12-20ubuntu1~bionic) ...
caozilong@caozilong-Vostro-3268:~/Workspace/liquorix$ 

之后,重启系统:

进入系统后,查看系统内核版本.

可见成功更新为新的内核。


结束!

  • 7
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

papaofdoudou

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值