microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.46k stars 822 forks source link

Clean ubuntu 22.04.1 updating gives error #8864

Closed kangarooo closed 9 months ago

kangarooo commented 2 years ago

Version

21H2

WSL Version

Kernel Version

Linux version 5.10.102.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Wed Mar 2 00:30:59 UTC 2022

Distro Version

Ubuntu 22.04.1

Other Software

No response

Repro Steps

Updating sudo apt update sudo apt dist-upgrade got this error

Failed to retrieve available kernel versions.

Failed to check for processor microcode upgrades.

No services need to be restarted.

No containers need to be restarted.

User sessions running outdated binaries: root @ /dev/pts/1: apt[350,2226]

No VM guests are running outdated hypervisor (qemu) binaries on this host.

Screenshot

image

Expected Behavior

Should update all

Actual Behavior

Didnt update

Diagnostic Logs

No response

elsaco commented 2 years ago

@kangarooo those are harmless warnings. They are from needrestart. I think they can be turned off in one of the /etc/needrestart config files. I never bothered to disabled them!

whoismaruf commented 2 years ago

I'm also looking for the solutions 👀

bobc0d3p commented 1 year ago

sudo apt-get purge needrestart

microsoft-github-policy-service[bot] commented 9 months ago

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!