上个月看到OMG!Ubuntu!的一篇文章KDE neon is Now Based on Ubuntu 22.04 ‘Jammy Jellyfish’关于新版KDE Neon发布了,新版本基于Ubuntu 22.04,本以为像以前的版本一样,会自动有提示出现。结果挂在网上两天了也没见到提示。
看看怎么回事?Neon和Ubuntu还不太一样,不太适用do-release-upgrade。
但既然有提示,一定有软件程序来执行,先查下软件包看有没有和升级有关的:
kai@Widows:~$ dpkg -l | awk '{print $2}' | grep release
distro-release-notifier
lsb-release
ubuntu-release-upgrader-core
ubuntu-release-upgrader-qt
kai@Widows:~$ dpkg -l | awk '{print $2}' | grep upgrade
python3-distupgrade
ubuntu-release-upgrader-core
ubuntu-release-upgrader-qt
kai@Widows:~$ dpkg -l | awk '{print $2}' | grep neon
docker-neon
neon-adwaita
neon-apport
neon-configure-inotify
neon-desktop
neon-essentials-desktop
neon-hardware-integration
neon-keyring
neon-repositories-launchpad-mozilla
neon-settings-2
neon-ubuntu-advantage-tools
这个“distro-release-notifier”看着很像,看看这个包里都有些什么?:
kai@Widows:~$ dpkg -L distro-release-notifier
/.
/usr
/usr/bin
/usr/bin/neon-preview-upgrade
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/qt5
/usr/lib/x86_64-linux-gnu/qt5/plugins
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kded
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kded/distroreleasenotifier.so
/usr/share
/usr/share/distro-release-notifier
/usr/share/distro-release-notifier/releasechecker
/usr/share/doc
/usr/share/doc/distro-release-notifier
/usr/share/doc/distro-release-notifier/changelog.Debian.gz
/usr/share/doc/distro-release-notifier/copyright
/usr/share/locale
/usr/share/locale/ar
/usr/share/locale/ar/LC_MESSAGES
/usr/share/locale/ar/LC_MESSAGES/distro-release-notifier.mo
......
/usr/share/locale/zh_CN
/usr/share/locale/zh_CN/LC_MESSAGES
/usr/share/locale/zh_CN/LC_MESSAGES/distro-release-notifier.mo
/usr/share/locale/zh_TW
/usr/share/locale/zh_TW/LC_MESSAGES
/usr/share/locale/zh_TW/LC_MESSAGES/distro-release-notifier.mo
/etc/xdg/autostart/distro-release-notifier.desktop
“/usr/bin/neon-preview-upgrade”是个脚本,看了一下,不像是:
kai@Widows:~$ cat /usr/bin/neon-preview-upgrade
#!/bin/sh
# SPDX-FileCopyrightText: 2018-2020 Harald Sitter
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
export QT_SELECT=5
exec qdbus org.kde.DistroReleaseNotifier /org/kde/DistroReleaseNotifier org.kde.DistroReleaseNotifier.UseDevel true
“/usr/share/distro-release-notifier/releasechecker”也是个Python脚本
确实可以检查出来新版本,但肯定不会通知的
“/etc/xdg/autostart/distro-release-notifier.desktop”是个服务,从名字看是通知用的。看看服务中有没有这个服务:
kai@Widows:~$ cat /etc/xdg/autostart/distro-release-notifier.desktop
[Desktop Entry]
Exec=distro-release-notifier
Name=Distribution Release Notifier
Name[az]=Distribütör Buraxılışı Bildirişi
......
Name[zh_CN]=发行版通知工具
Name[zh_TW]=發行版釋出版本通知工具
OnlyShowIn=KDE;
Type=Application
X-KDE-StartupNotify=false
这名字不一样啊,可能服务的名字在翻译文件(/usr/share/locale/zh_CN/LC_MESSAGES/distro-release-notifier.mo)里吧,先重启试一下:
升级提醒很快就出现了,这提示的意思是说22天后现在的KDE Neon 5.26就不会再更新了吗?
好,升级正式开始了。
投稿作者 | 作者网站 |
---|---|
微信捐赠 | 支付宝捐赠 |
---|---|
评论功能已经关闭!