Related to my answer on Ask Ubuntu in more ways than one:
First, it goes to show how little attention I pay (or most users pay) to the MOTD. Most people seem to catch the Permission denied
message (which I assume you are seeing as well), but I never noticed (and no one has brought it up until now) that the System Information is also static.
Second, this also comes from the same package mentioned in that answer, and has the same root cause for the issue. The Landscape feature that displays it is for managing Ubuntu servers. It's unintentionally (but erroneously) includes in the WSL Ubuntu 22.04 distribution because it is based on Ubuntu Server.
Ultimately, it does update because Landscape uses Systemd, which isn't running by default (or easily) on WSL.
If you want to update it, you could run sudo update-motd
. Then rm ~/.motd_shown
and restart to see the updated info. This command (with the sudo
) could also be added to a "boot command" in the /etc/wsl.conf
under Windows 11 if you really wanted to update it each time WSL starts. See here for details. There's also a fallback method for Windows 10.
However, the better solution is simply to remove Landscape, since it requires Systemd and is not useful on WSL anyway:
sudo apt remove landscape-common
sudo apt autoremove # Optionally, but recommended
rm ~/.motd_shown