18
7月
2025
将 LXLE 20.04“focal”更新到版本 22.04“jammy”,第 2 部分
17:16

将 LXLE 20.04“focal”更新到版本 22.04“jammy”,第 2 部分

18 7月 2025 17:16

文章的第一部分。 此处讨论
LXLE 20.04 更新完成 截止至 22.04

简介

没有 LXLE 22.04 版本,因为...开发人员尚未发布 22.04 ISO,也没有更新 PPA。 我在 distrowatch.com 上读到一位用户的评论,他成功地将 Linux 更新到版本 22.04“Jammy”。 本文提供了更新的改进版本,消除了不必要的包和依赖项。

第 2 阶段:在 /etc/apt/sources.list.d 中准备 PPA 存储库配置文件以进行更新

2.1 Linux LXLE 中第三方 PPA 存储库组成的考虑

在升级之前,我决定删除不必要的分发 PPA。 (我建议复制该文件夹)。
目录 /etc/apt/sources.list.d 包含 *.list 文件。 LXLE 中默认的 *.list 文件集如下:

  1. anonbeat-ubuntu-guayadeque-bionic.list
  2. apandada1-ubuntu-blanket-focal.list
  3. apandada1-ubuntu-brightness-controller-bionic.list
  4. appgrid-stable.list
  5. Bitseater-ubuntu-ppa-bionic.list
  6. bookworm-team-ubuntu-bookworm-bionic.list
  7. 基本操作系统 ubuntu-stable-focal.list
  8. kelleyk-ubuntu-compton-bionic.list
  9. landronimirc-ubuntu-skippy-xd-bionic.list
    10.libreoffice-ubuntu-ppa-bionic.list
    11.librewolf.list
    12.linphone-ubuntu-release-bionic.list
    13.linrunner-ubuntu-tlp-bionic.list
    14.linuxuprising-ubuntu-apps-focal.list
    15.lxle-ubuntu-stable-bionic.list
    16.maarten-baert-ubuntu-simplescreenrecorder-bionic.list
    17.maxiberta-ubuntu-system76-scheduler-focal.list
    18.obsproject-ubuntu-obs-studio-focal.list
    19.ozmartian-ubuntu-apps-bionic.list
    20.ozmartian-ubuntu-apps-focal.list
    21.philip_scott-ubuntu-spice-up-daily-bionic.list
    22.phoerious-ubuntu-keepassxc-focal.list
    23.pinta-maintainers-ubuntu-pinta-stable-focal.list
    24.roguescholar-ubuntu-ppa-focal.list
    25.ubuntuhandbook1-ubuntu-apps-focal.list
    26.ubuntu-mate-dev-ubuntu-fresh-mate-focal.list
    27.utappia-ubuntu-stable-bionic.list
    28.videolan-ubuntu-stable-daily-bionic.list
    29.webupd8team-ubuntu-y-ppa-manager-bionic.list
    30.xtradeb-ubuntu-apps-focal.list

对于每个程序,我了解了该程序的用途以及卸载应用程序的命令(位于列表下方)。

  1. 1.瓜亚德克 - 音乐爱好者的音频文件播放器。 您可以改用假释媒体播放器。 我正在删除。
  2. 2.毯子 - 白噪音和自然声音的发生器 - 飞溅的波浪,风的噪音,。 暂时不需要。 我正在删除。
  3. 3.ubuntu 亮度控制器 - 使用滑块单独和联合调整图像通道 R、G、B、色温和亮度。 我正在删除。
  4. 4.应用网格- 轻量级应用程序商店,替代笨重的 Ubuntu 软件中心(ubuntu-软件包)。 留下了它。
  5. 5.比特座 - 天气预报。 可在 FlatHub 上使用,称为 “气象” 并在 Snap 上 (snap install meteo )。 我正在删除。
  6. bookworm-team-ubuntu-bookworm-bionic.list - 文件为空
  7. elementary-os-ubuntu-stable-focal.list - 文件为空
  8. kelleyk-ubuntu-compton-bionic.list - 文件为空
  9. landronimirc-ubuntu-skippy-xd-bionic.list - 文件为空
    10.libreoffice-ubuntu-ppa-bionic.list - 用于 LibreOffice 办公套件(文本编辑器、电子表格、演示文稿)。 我留下了它,但将来我会替换里面的版本 focal на jammy
    11.librewolf.list - 一个旨在保护隐私的网络浏览器(禁止在访问网站时收集有关用户偏好的数据)。 我删除它是因为...它在这台笔记本电脑上运行缓慢。 相反,我将使用 Firefox 和 Chromium 网络浏览器。
    12.linphone-ubuntu-release-bionic.list - 与虚拟 PBX 配合使用的免费 VoIP (SIP) 客户端。 C. 我不使用网络电话。 我正在删除。
    13.linrunner-ubuntu-tlp-bionic.list - 用于延长笔记本电脑电池寿命的 TLP 电源管理器程序。 我正在删除。
    14.linuxuprising-ubuntu-apps-focal.list - 来自 Ubuntu 未来版本插件的一个小实用程序包(生日、vlc-plugin-bittorrent 等)。 我不使用它。 我正在删除。
    15.lxle-ubuntu-stable-bionic.list - 可以删除,因为存储库中没有 OS 22.04 的 LXLE 版本的 Release 文件。 存储库没有用。16.maarten-baert-ubuntu-simplescreenrecorder-bionic.list - 简单的屏幕录制。 我不打算在这个非常弱的上网本上录制屏幕。 已删除。
    17.maxiberta-ubuntu-system76-scheduler-focal.list - 一个用于多核处理器的程序,用于改进多任务处理。 已删除。
    18.obsproject-ubuntu-obs-studio-focal.list - 视频流(用户通过流媒体不断从广播公司接收到消费者的多媒体)。 我正在删除。
    19.ozmartian-ubuntu-apps-bionic.list - 示例和视频转码。 我正在删除。
    20.ozmartian-ubuntu-apps-focal.list - 与操作系统版本 20.04 Focal Fossa 相同。 已删除。
    21.philip_scott-ubuntu-spice-up-daily-bionic.list - 用于创建演示文稿的 SpiceUP 程序(替换 LibreOffice Impress)。 我正在删除。
    22.phoerious-ubuntu-keepassxc-focal.list - 与 GNU PG 密钥的安全和存储相关的实用程序。 钥匙有 Seahorse。 我提供 keepassxc 包。23.pinta-maintainers-ubuntu-pinta-stable-focal.list - 绘图程序。 (它可以从不同的来源安装。例如 apt install pinta 从 Universe 存储库)删除。
    24.24.roguescholar-ubuntu-ppa-focal.list- 作者 Peter J. Mello (RogueScholar) 的系统实用程序。 我离开它是因为...它有 qBittorrent 包。
    25.ubuntuhandbook1-ubuntu-apps-focal.list- 在线出版物 Ubuntu 手册中的许多有用软件包 (aom-tools audacious audacious-dev audacious-plugins audacious-plugins-data converseen dav1d gnome-epub-thumbnailer gthumb gthumb-data gthumb-dev heif-gdk-pixbuf heif-thumbnailer Highway-doc humin humin-data humin-tools liferea liferea-data亮度 hdr parole parole-dev Pithos puddletag vokoscreen-ng x265)。 我会保留它,但我会更改版本 20.04 - 22.04(见下文)。26.ubuntu-mate-dev-ubuntu-fresh-mate-focal.list - 用于通过系统托盘弹出窗口进行通知,包含软件包 mate-desktop-common mate-notification-daemon mate-notification-daemon-common mate-utils mate-utils-common。 (存储库 ppa:ubuntu-mate-dev/fresh-mate). 22.04 版本运行正常。 升级到 22.04 后添加了存储库。 sudo add-apt-repository ppa:ubuntu-mate-dev/fresh-mate && sudo apt update && sudo apt install mate-notification-daemon。相反,您可以在从 20.04 升级到 22.04 后替换 ubuntu-mate-dev-ubuntu-fresh-mate-focal.list 文件中的 focus-jammy 版本。27. utappia-ubuntu-stable-bionic.list - 系统实用程序。我会保留它们,但会在 20.04 “focal” 版本和 22.04 “jammy” 版本之间切换。
    28.28.videolan-ubuntu-stable-daily-bionic.list~~ - VLC视频播放器的组装。 我不需要它,因为……我不打算在弱者上观看视频。 但你可以离开它。
    29.29.webupd8team-ubuntu-y-ppa-manager-bionic.list- 一个小实用程序“Y PPA Manager”,方便使用 PPA 存储库(例如,在迁移到新操作系统版本时对文本中的 *.list 文件进行批量重命名)。 留下了它。
    30.30.xtradeb-ubuntu-apps-focal.list- 用于其他实用程序和程序、游戏的 PPA 存储库。 支持 Jammy 22.04、Noble 24.04、Oracular 24.10、Plucky 25.04。 实际上,超网 类似于 DEB 格式的应用程序商店(适用于 Ubuntu、Debian)。 有浏览器 火狐。 留下了它。

我删除了一些 .list 文件,重命名了一些文件,并排除了一些 APT PPA 存储库。 因此,删除包和存储库的命令列表如下:

cd /etc/apt/sources.list.d
sudo apt remove guayadeque blanket brightness-controller meteo librewolf simplescreenrecorder mate-desktop-common mate-notification-daemon mate-notification-daemon-common mate-utils mate-utils-common spiceup keepassxc pinta
sudo add-apt-repository --remove ppa:anonbeat/guayadeque -y #1
sudo add-apt-repository --remove ppa:apandada1/blanket -y #2
sudo add-apt-repository --remove ppa:apandada1/亮度控制器 -y#3
sudo add-apt-repository --remove ppa:bitseater/ppa -y #5
sudo add-apt-repository --remove ppa:linrunner/tlp -y #13
sudo add-apt-repository --remove ppa:linuxuprising/apps -y #14
sudo add-apt-repository --remove ppa:maarten-baert/simplescreenrecorder -y #16
sudo add-apt-repository --remove ppa:philip.scott/spice-up-daily -y #21
sudo add-apt-repository --remove ppa:phoerious/keepassxc -y #22 号
sudo add-apt-repository --remove ppa:pinta-maintainers/pinta-stable -y #23
sudo rm anonbeat-ubuntu-guayadeque-bionic.list#1
sudo rm apandada1-ubuntu-blanket-focal.list #2
sudo rm apandada1-ubuntu-brightness-controller-bionic.list #3

sudo rm bitseater-ubuntu-ppa-bionic.list #5
sudo rm bookworm-team-ubuntu-bookworm-bionic.list #6

sudo rm elementary-os-ubuntu-stable-focal.list #7
sudo rm kelleyk-ubuntu-compton-bionic.list #8
sudo rm landronimirc-ubuntu-skippy-xd-bionic.list #9
sudo rm librewolf.list #11
sudo rm linphone-ubuntu-release-bionic.list #12
sudo rm linrunner-ubuntu-tlp-bionic.list#13
sudo rm linuxuprising-ubuntu-apps-focal.list #14
sudo rm lxle-ubuntu-stable-bionic.list #15
sudo rm maarten-baert-ubuntu-simplescreenrecorder-bionic.list #16
sudo rm maxiberta-ubuntu-system76-scheduler-focal.list #17 号
sudo rm obsproject-ubuntu-obs-studio-focal.list #18
sudo rm ozmartian-ubuntu-apps-bionic.list #19
sudo rm ozmartian-ubuntu-apps-focal.list #20
sudo rm philip_scott-ubuntu-spice-up-daily-bionic.list #21
sudo rm phoerious-ubuntu-keepassxc-focal.list #22 号
sudo rm pinta-maintainers-ubuntu-pinta-stable-focal.list#23

步骤 3:连接到 Wi-Fi 并将 20.04 软件包更新到最新版本

sudo apt update
sudo apt upgrade

第 4 阶段:使用“do-release-upgrade”命令从 20.04 升级到 22.04

sudo do-release-upgrade

当询问是否更换软件包时,请相应地回答所有问题“y”或“d”,然后按 Enter 键确认。

阶段 5. 编辑 PPA 存储库 - 指定“jammy"

进入 /etc/apt/sources.list.d 目录,使用 nano 修正所有文件中的文本 focal => jammy

cd /etc/apt/sources.list.d
ls -l *.list

nano appgrid-stable.list
sudo mv libreoffice-ubuntu-ppa-focal.list libreoffice-ubuntu-ppa-jammy.list
nano libreoffice-ubuntu-ppa-jammy.list

替换了文本 focus -> jammy
...
/etc/apt/sources.list.d 目录下的所有 *.list 文件中等等。

阶段 6. 更新操作系统软件包版本 22.04

sudo apt update
sudo apt upgrade

第七阶段.设置时间显示、更新apt完整升级包等、重启电脑

在系统行中 手表,右键单击时间并选择 “设置数字时钟”
将时钟格式 %r 替换为 %H:%M:%S%z %Z(将文本从工具提示格式复制到时钟格式)并删除 %z。 时钟格式现在为 %H:%M:%S %Z

软件包的全面更新,包括内核:

sudo apt full-upgrade

如果屏幕截图不起作用(开始 - 附件 - 截屏):

sudo apt install mate-utils mate-utils-common

删除未使用的软件包并清理系统

sudo apt autoremove && sudo apt autoclean

禁用 casper-md5check.service 服务(因为它设计为从 ISO CD 启动并且不起作用)。

sudo systemctl 禁用 casper-md5check.service
sudo systemctl stop casper-md5check.service
sudo systemctl mask casper-md5check.service

如果俄语键盘布局消失并且切换 En/Ru 语言不起作用

如果切换语言时显示 INET(EVDEV) Alt+Shift,只需右键单击屏幕一角的标志图标即可配置小程序。 “配置键盘布局处理程序。"

*取消选中“保存系统布局”。*
添加俄语布局** (“添加”按钮)

  • 根据需要更改布局顺序。
    *点击 “关闭”
    布局
    在此图中,可以通过单击标记为的按钮在同一窗口中更改使用 Ctrl+Shift 组合的切换 “组:”

第 8 阶段:安装附加软件包 flatpak、xdg-desktop-portal、chromium、firefox

<a名称=“flatpak”>

安装系统以安装 Flatpak 应用程序

Flatpak 应用程序在沙箱中运行,这提供了更高的安全性,这在 Internet 上工作时尤其重要。

sudo apt update
sudo apt 安装 flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

<a名称=“铬”>

安装 Chromium 浏览器

flatpak install flathub org.chromium.Chromium -y

<a名称=“火狐”>

从 Flatpak 安装 Mozilla Firefox 网络浏览器

使用 Flatpak 中的 FireFox 浏览器:

flatpak install flathub org.mozilla.firefox -y
flatpak install org.freedesktop.Platform.ffmpeg-full

在 Firefox 中启用硬件加速 - about:config

gfx.webrender.all=true
media.ffmpeg.vaapi.enabled=true

启动火狐浏览器

flatpak run org.mozilla.firefox

如果将来需要更新,请在几天后运行命令

flatpak update

要在“开始”菜单中显示启动 Mozilla Firefox 和 Google Chromium 的快捷方式 - 请参阅文章 在 LXDE 菜单中安装 Flatpak 和 Snap 应用程序快捷方式

安装 xdg-desktop-portal 和 xdg-utils 软件包

xdg-desktop-portal 包旨在打开文件 - 打开菜单,以便从 Flatpak 沙箱访问 PC 硬盘。 xdg-utils 软件包包含用于在容器外部运行命令行应用程序 xdg-open filename 或 xdg-open url Flatpak 应用程序的实用程序。
安装 Flathub 后不需要在 Ubuntu 22.04 版本中进行安装,因为...系统中存在 xdg-desktop-portal 和 xdg-utils 软件包,如命令输出所示:

dpkg -s xdg-desktop-portal
dpkg -s xdg-utils

安装 mate-utils 包的系统实用程序

20.04更新到22.04后,按照这个方案截图就不行了。 申请缺失 mate-screenshot。 问题的解决办法很简单:

sudo apt install mate-utils

该软件包包含有用的实用程序:

  • mate-disk-user-analizer - 通过摘要统计信息确定磁盘文件夹的大小(磁盘使用情况分析器)
  • mate-dictionary - “MATE Dictionary” - 一个通过互联网快速确定英语单词含义的程序
  • mate-search-tool - 在主菜单“开始”-“搜索”中。 按文件名或文件内容搜索文件。 文件搜索程序 mate-search-tool 替换 catfish。您还可以安装并使用另一个文件搜索程序:“searchmonkey” (sudo apt install searchmonkey),在 https://sourceforge.net 上有 5 颗星。
  • mate-system-log - 查看日志 auth.log、boot、... debug、dmesg、dpkg、gufw、...、kern
  • mate-screenshot - 用于创建屏幕截图并将其保存到磁盘上的文件的实用程序(“开始”-“附件”-“截取屏幕截图”)。

安装 gnome-disks 磁盘管理实用程序

我喜欢磁盘实用程序(来自 gnome-disk-utility 包的 gnome-disk 外部命令)。

它的目的是:

  • 格式化和分区磁盘
  • 安装和卸载卷
  • 查询S.M.A.R.T属性。

    sudo apt install gnome-disk-utility

磁盘程序将添加到“开始”-“附件”菜单中。

测量操作系统启动时间、RAM消耗

带有普通硬盘的笔记本电脑。

操作系统 操作系统启动时间,分:秒
安装后立即安装 LXLE 20.04 1:25 1:25
软件包更新后的 LXLE 20.04 1:38
将 20.04 更新到 22.04 工作操作系统后的 LXLE 22.04(未做任何准备!) 2:50 2:50
根据这些说明(清理操作系统然后更新)将 20.04 更新到 22.04 操作系统后立即使用 LXLE 22.04 1:50 1:50
从 Flatpak 和 Snap 安装浏览器后的 LXLE 22.04 3:10
LXLE 22.04 移除后 sudo apt purge chromium-browser snapd && rm ~/.local/share/applications/chromium_chromium.desktop 1:52 1:52

!!因此,snapd 大大减慢了操作系统的启动速度,而删除 snap 应用程序对操作系统的启动时间有非常积极的影响。

LXLE桌面外观

桌面

LXLE 内存使用情况

按照以下说明操作后,LXLE 22.04 操作系统空闲时的 RAM 使用情况: 373MB (8 GB 起)。

内存使用情况

(如果删除 snapd 软件包,RAM 消耗会下降到 335MB )。

在 LXDE 菜单中创建第三方 Flatpak 应用程序的快捷方式

看文章 在 LXDE 菜单中安装 Flatpak 和 Snap 应用程序快捷方式

测量应用程序启动速度

要测量网络浏览器的启动速度,请参阅 下一篇文章 - “测量 Linux 上网络浏览器的启动速度”



相关出版物