几天前,我使用 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
答案1
好的,我在诊断中错过了一个重要部分。
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
解决了这个问题。