I looked at the service logs for snapd and everytime I have experienced this issue it was due to this:
snapd[986]: autorefresh.go:467: Cannot prepare auto-refresh change due to a permanent network error: persistent network error: Post https://api.snapcraft.io/v2/snaps/refr>
The network error gave me a clue as to why this might be happening. I have another unrelated issue where sometimes the network card in my computer is not recognized unless I reboot. So whenever I reboot my computer to fix my network card issue I experience this bug.
I still experience this bug:
$ snap --version
snap 2.48.2
snapd 2.48.2
series 16
ubuntu 20.04
kernel 5.4.0-64-generic
I looked at the service logs for snapd and everytime I have experienced this issue it was due to this: /api.snapcraft. io/v2/snaps/ refr>
snapd[986]: autorefresh.go:467: Cannot prepare auto-refresh change due to a permanent network error: persistent network error: Post https:/
The network error gave me a clue as to why this might be happening. I have another unrelated issue where sometimes the network card in my computer is not recognized unless I reboot. So whenever I reboot my computer to fix my network card issue I experience this bug.