几天前,我使用 do-release-upgrade 将我的家庭服务器从 ubuntu 21.04 升级到 21.10。
在此过程中安装中断,但我认为我能够修复(感谢此处的其他帖子)。
但是,我的行为不一致。
MOTD 说我有470 upgrade that can be applied immediately
。
它建议运行apt list --upgradable
,但这个命令告诉每件事都是最新的。
怎么了?怎么修?
如果有帮助:
sudo run-parts /etc/update-motd.d/
cat /run/motd.dynamic.new
输出:
Welcome to Ubuntu 21.10 (GNU/Linux 5.13.0-21-generic aarch64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
* Super-optimized for small spaces - read how we shrank the memory
footprint of MicroK8s to make it the smallest full K8s around.
https://ubuntu.com/blog/microk8s-memory-optimisation
470 updates can be applied immediately.
To see these additional updates run: apt list --upgradable
sudo apt list --upgradable
输出Listing... Done
sudo apt update
:
Hit:1 http://ports.ubuntu.com/ubuntu-ports impish InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports impish-updates InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports impish-backports InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports impish-security InRelease
Hit:5 https://apt.syncthing.net syncthing InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
uname -a
输出
Linux homeserver 5.13.0-21-generic #21-Ubuntu SMP Tue Oct 19 09:01:50 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
最后,lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.10
Release: 21.10
Codename: impish
好的,我错过了诊断中的一个重要部分。
sudo run-parts /etc/update-motd.d/
输出也(错过了我的复制/粘贴中的最新行)
/etc/update-motd.d//90-updates-available: 7: /usr/share/update-notifier/notify-updates-outdated: not found run-parts: /etc/update-motd.d//90-updates-available exited with return code 127
这导致了这篇文章。
基本上,缺少一个包(不确定为什么会丢失)。
正如另一篇文章所述,跑步
sudo apt install update-notifier-common
解决了这个问题。