Can't update the Supervisor

Raspberry Pi 4B+, 4GB RAM, with Ethernet to router. Just created a new installation microSD card with Raspberry Pi Imager. Fired it up, first thing it wants to do is update the Supervisor. It can’t do it, for different reasons on different attempts, can’t reach ghcr.io, can’t load apparmor_stable.txt, and so on.

Made sure the DNS is reliable, and everything it complains that it can’t reach is reachable from other local machines. Tried to update from the CLI (first adding more DNS servers), and got:

Update of Supervisor failed: Can’t install ghcr.io/home-assistant/aarch64-hassio-supervisor:2025.11.5: 500 Server Error for http+docker://localhost/v1.51/images/create?tag=2025.11.5&fromImage=ghcr.io%2Fhome-assistant%2Faarch64-hassio-supervisor&platform=linux%2Farm64:Internal Server Error (“Get “https://ghcr.io/v2/”: dial tcp: lookup ghcr.io: no such host”)

Previous attempts have resulted in that message or a few others. If I go to ghcr.io/v2 on another machine, I was getting another error (don’t recall), but now it’s 404.

Any clues?

EDIT: somehow, the supervisor updated, I think through the web interface. I also think that, somehow, my add-on of Studio Code Server was interfering. I uninstalled it, got the Supervisor updated, and went to re-install Studio Code Server. That failed, complaining about ghcr.io again. Will not install. It’s a mystery

VSCode is a huge memory hog (>1gb possible when running). If it was running, it may have been interfering.
Make sure VSCode is only running when you are using it. Same with other add-ons that you only need when you need them. If you have 4gb of memory or more, you are OK but if less than that, use it sparingly.