Snap error on Ubuntu 22.04 when installing any package

On a fresh install of Ubuntu 22.04, when I write this command:

sudo snap install hello-world

I get this error:

error: cannot communicate with server: Post "http://localhost/v2/snaps/hello-world": EOF

snapd is properly running and I see a crash in the journal log:

Oct 16 11:31:04 Blake snapd[31196]: api_snaps.go:412: Installing snap "hello-world" revision unset
Oct 16 11:31:04 Blake snapd[31196]: unexpected fault address 0x180006ee970
Oct 16 11:31:04 Blake snapd[31196]: fatal error: fault
Oct 16 11:31:04 Blake snapd[31196]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x180006ee970 pc=0x5593d3ede242]
Oct 16 11:31:04 Blake snapd[31196]: goroutine 40 [running]:
Oct 16 11:31:04 Blake snapd[31196]: runtime.throw({0x5593d41a45ff?, 0x0?})
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/runtime/panic.go:992 +0x71 fp=0xc0002e86a0 sp=0xc0002e8670 pc=0x5593d3885851
Oct 16 11:31:04 Blake snapd[31196]: runtime.sigpanic()
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/runtime/signal_unix.go:825 +0x305 fp=0xc0002e86f0 sp=0xc0002e86a0 pc=0x5593d389bec5
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/overlord/state.(*State).Changes(...)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/overlord/state/state.go:329
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/overlord/snapstate.checkChangeConflictExclusiveKinds(0xc000162a10?, {0x0?, 0x0?}, {0x0?, 0x0?})
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/overlord/snapstate/conflict.go:102 +0xa2 fp=0xc0002e8880 sp=0xc0002e86f0 pc=0x5593d3ede242
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/overlord/snapstate.CheckChangeConflictMany(0xc000162a10, {0xc0002e8ad8, 0x1, 0xc000cdd7a0?}, {0x0, 0x0})
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/overlord/snapstate/conflict.go:201 +0x10a fp=0xc0002e8a88 sp=0xc0002e8880 pc=0x5593d3edebea
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/overlord/snapstate.checkChangeConflictIgnoringOneChange(0x5593d4771938?, {0xc0005c69d0, 0xb}, 0xc00058e500, {0x0?, 0xc0002e8ca0?})
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/overlord/snapstate/conflict.go:239 +0x5c fp=0xc0002e8af8 sp=0xc0002e8a88 pc=0x5593d3edf17c
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/overlord/snapstate.doInstall(0x5593d4662740?, 0xc00058e500, 0xc0001e8000, 0x0, {0x0, 0x0}, 0x0)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/overlord/snapstate/snapstate.go:387 +0x3c5 fp=0xc0002e8fe0 sp=0xc0002e8af8 pc=0x5593d3f0faa5
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/overlord/snapstate.InstallWithDeviceContext({0x5593d4779518, 0xc000be83f0}, 0x0?, {0xc0004a609f, 0xb}, 0x5593d385d527?, 0x0, {0x0, 0x0, 0x0, ...}, ...)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/overlord/snapstate/snapstate.go:1293 +0x1052 fp=0xc0002e9338 sp=0xc0002e8fe0 pc=0x5593d3f171f2
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/overlord/snapstate.Install({0x5593d4779518?, 0xc000be83f0?}, 0x5593d38669a5?, {0xc0004a609f?, 0x0?}, 0xc0002754d0?, 0x5593d3b4ead8?, {0x0, 0x0, 0x0, ...})
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/overlord/snapstate/snapstate.go:1204 +0x8f fp=0xc0002e93e8 sp=0xc0002e9338 pc=0x5593d3f1612f
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/daemon.snapInstall(0xc0005d4400, 0xc000111890?)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/daemon/api_snaps.go:417 +0x438 fp=0xc0002e9638 sp=0xc0002e93e8 pc=0x5593d4181638
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/daemon.postSnap(0x5593d4d231c0, 0xc0005d4300, 0x0)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/daemon/api_snaps.go:147 +0x393 fp=0xc0002e9780 sp=0xc0002e9638 pc=0x5593d417fcd3
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/daemon.(*Command).ServeHTTP(0x5593d4d231c0, {0x5593d47780d8, 0xc0002da0a8}, 0xc0005d4200)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/daemon/daemon.go:161 +0x557 fp=0xc0002e9878 sp=0xc0002e9780 pc=0x5593d4192b57
Oct 16 11:31:04 Blake snapd[31196]: github.com/gorilla/mux.(*Router).ServeHTTP(0xc000408900, {0x5593d47780d8, 0xc0002da0a8}, 0xc0005d4000)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/vendor/github.com/gorilla/mux/mux.go:212 +0x202 fp=0xc0002e99a8 sp=0xc0002e9878 pc=0x5593d3ffbbe2
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/daemon.logit.func1({0x5593d4778708?, 0xc000376000}, 0xc0005d4000)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/daemon/daemon.go:213 +0xdd fp=0xc0002e9a70 sp=0xc0002e99a8 pc=0x5593d419323d
Oct 16 11:31:04 Blake snapd[31196]: net/http.HandlerFunc.ServeHTTP(0x0?, {0x5593d4778708?, 0xc000376000?}, 0x5593d385d1c5?)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/http/server.go:2084 +0x2f fp=0xc0002e9a98 sp=0xc0002e9a70 pc=0x5593d3b15b8f
Oct 16 11:31:04 Blake snapd[31196]: net/http.serverHandler.ServeHTTP({0x5593d47767b8?}, {0x5593d4778708, 0xc000376000}, 0xc0005d4000)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/http/server.go:2916 +0x43b fp=0xc0002e9b58 sp=0xc0002e9a98 pc=0x5593d3b1917b
Oct 16 11:31:04 Blake snapd[31196]: net/http.(*conn).serve(0xc0003d4000, {0x5593d4779518, 0xc000be8870})
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/http/server.go:1966 +0x5d7 fp=0xc0002e9fb8 sp=0xc0002e9b58 pc=0x5593d3b14637
Oct 16 11:31:04 Blake snapd[31196]: net/http.(*Server).Serve.func3()
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/http/server.go:3071 +0x2e fp=0xc0002e9fe0 sp=0xc0002e9fb8 pc=0x5593d3b19ace
Oct 16 11:31:04 Blake snapd[31196]: runtime.goexit()
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc0002e9fe8 sp=0xc0002e9fe0 pc=0x5593d38b8ac1
Oct 16 11:31:04 Blake snapd[31196]: created by net/http.(*Server).Serve
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/http/server.go:3071 +0x4db
Oct 16 11:31:04 Blake snapd[31196]: goroutine 1 [select, 8 minutes]:
Oct 16 11:31:04 Blake snapd[31196]: main.run(0xc00009d200)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/cmd/snapd/main.go:153 +0x43f
Oct 16 11:31:04 Blake snapd[31196]: main.main()
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/cmd/snapd/main.go:64 +0xdb
Oct 16 11:31:04 Blake snapd[31196]: goroutine 24 [syscall, 8 minutes]:
Oct 16 11:31:04 Blake snapd[31196]: os/signal.signal_recv()
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/runtime/sigqueue.go:151 +0x2f
Oct 16 11:31:04 Blake snapd[31196]: os/signal.loop()
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/os/signal/signal_unix.go:23 +0x19
Oct 16 11:31:04 Blake snapd[31196]: created by os/signal.Notify.func1.1
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/os/signal/signal.go:151 +0x2a
Oct 16 11:31:04 Blake snapd[31196]: goroutine 70 [select, 1 minutes]:
Oct 16 11:31:04 Blake snapd[31196]: main.runWatchdog.func1()
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/cmd/snapd/main.go:93 +0x9c
Oct 16 11:31:04 Blake snapd[31196]: created by main.runWatchdog
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/cmd/snapd/main.go:91 +0x10e
Oct 16 11:31:04 Blake snapd[31196]: goroutine 69 [IO wait, 1 minutes]:
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.runtime_pollWait(0x7ffada858568, 0x72)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/runtime/netpoll.go:302 +0x89
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.(*pollDesc).wait(0xc000263e00?, 0x203000?, 0x0)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/internal/poll/fd_poll_runtime.go:83 +0x32
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.(*pollDesc).waitRead(...)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/internal/poll/fd_poll_runtime.go:88
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.(*FD).Accept(0xc000263e00)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/internal/poll/fd_unix.go:614 +0x22c
Oct 16 11:31:04 Blake snapd[31196]: net.(*netFD).accept(0xc000263e00)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/fd_unix.go:172 +0x35
Oct 16 11:31:04 Blake snapd[31196]: net.(*UnixListener).accept(0xc000596d50?)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/unixsock_posix.go:166 +0x1c
Oct 16 11:31:04 Blake snapd[31196]: net.(*UnixListener).Accept(0xc00023d8f0)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/unixsock.go:260 +0x3d
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/daemon.(*ucrednetListener).Accept(0x5593d3b1983b?)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/daemon/ucrednet.go:112 +0x25
Oct 16 11:31:04 Blake snapd[31196]: net/http.(*Server).Serve(0xc0003762a0, {0x5593d47780a8, 0xc00023d9b0})
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/http/server.go:3039 +0x385
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/daemon.(*Daemon).Start.func1()
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/daemon/daemon.go:378 +0x8a
Oct 16 11:31:04 Blake snapd[31196]: gopkg.in/tomb%2ev2.(*Tomb).run(0xc00056e140, 0x0?)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/vendor/gopkg.in/tomb.v2/tomb.go:163 +0x36
Oct 16 11:31:04 Blake snapd[31196]: created by gopkg.in/tomb%2ev2.(*Tomb).Go
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/vendor/gopkg.in/tomb.v2/tomb.go:159 +0xee
Oct 16 11:31:04 Blake snapd[31196]: goroutine 68 [select, 4 minutes]:
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/overlord.(*Overlord).Loop.func1()
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/overlord/overlord.go:477 +0x185
Oct 16 11:31:04 Blake snapd[31196]: gopkg.in/tomb%2ev2.(*Tomb).run(0xc000122500, 0x0?)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/vendor/gopkg.in/tomb.v2/tomb.go:163 +0x36
Oct 16 11:31:04 Blake snapd[31196]: created by gopkg.in/tomb%2ev2.(*Tomb).Go
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/vendor/gopkg.in/tomb.v2/tomb.go:159 +0xee
Oct 16 11:31:04 Blake snapd[31196]: goroutine 57 [IO wait, 8 minutes]:
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.runtime_pollWait(0x7ffada858838, 0x72)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/runtime/netpoll.go:302 +0x89
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.(*pollDesc).wait(0xc000262000?, 0xc0002feaf0?, 0x0)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/internal/poll/fd_poll_runtime.go:83 +0x32
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.(*pollDesc).waitRead(...)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/internal/poll/fd_poll_runtime.go:88
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.(*FD).ReadMsg(0xc000262000, {0xc0002feaf0, 0x10, 0x10}, {0xc00016a620, 0x1000, 0x1000}, 0x1?)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/internal/poll/fd_unix.go:304 +0x31c
Oct 16 11:31:04 Blake snapd[31196]: net.(*netFD).readMsg(0xc000262000, {0xc0002feaf0?, 0x5593d477c1b0?, 0x1?}, {0xc00016a620?, 0x0?, 0x8?}, 0x5593d4cf2e70?)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/fd_posix.go:78 +0x37
Oct 16 11:31:04 Blake snapd[31196]: net.(*UnixConn).readMsg(0xc0002820d0, {0xc0002feaf0?, 0xc000472bd0?, 0x5593d47708d8?}, {0xc00016a620?, 0x5593d47708d8?, 0xc0006f8720?})
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/unixsock_posix.go:115 +0x4f
Oct 16 11:31:04 Blake snapd[31196]: net.(*UnixConn).ReadMsgUnix(0xc0002820d0, {0xc0002feaf0?, 0xc000277df8?, 0x5593d385d1c5?}, {0xc00016a620?, 0xc000277da0?, 0x5593d3888420?})
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/unixsock.go:143 +0x3c
Oct 16 11:31:04 Blake snapd[31196]: github.com/godbus/dbus.(*oobReader).Read(0xc00016a600, {0xc0002feaf0?, 0xc000277e20?, 0x5593d385d527?})
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/vendor/github.com/godbus/dbus/transport_unix.go:21 +0x45
Oct 16 11:31:04 Blake snapd[31196]: io.ReadAtLeast({0x5593d4770ff8, 0xc00016a600}, {0xc0002feaf0, 0x10, 0x10}, 0x10)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/io/io.go:331 +0x9a
Oct 16 11:31:04 Blake snapd[31196]: io.ReadFull(...)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/io/io.go:350
Oct 16 11:31:04 Blake snapd[31196]: github.com/godbus/dbus.(*unixTransport).ReadMessage(0xc000472948)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/vendor/github.com/godbus/dbus/transport_unix.go:91 +0x11e
Oct 16 11:31:04 Blake snapd[31196]: github.com/godbus/dbus.(*Conn).inWorker(0xc0006263f0)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/vendor/github.com/godbus/dbus/conn.go:294 +0x3b
Oct 16 11:31:04 Blake snapd[31196]: created by github.com/godbus/dbus.(*Conn).Auth
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/vendor/github.com/godbus/dbus/auth.go:118 +0x9ed
Oct 16 11:31:04 Blake snapd[31196]: goroutine 67 [select, 4 minutes]:
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/overlord/standby.(*StandbyOpinions).Start.func1()
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/overlord/standby/standby.go:105 +0x11b
Oct 16 11:31:04 Blake snapd[31196]: created by github.com/snapcore/snapd/overlord/standby.(*StandbyOpinions).Start
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/overlord/standby/standby.go:96 +0x9b
Oct 16 11:31:04 Blake snapd[31196]: goroutine 71 [IO wait, 8 minutes]:
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.runtime_pollWait(0x7ffada858748, 0x72)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/runtime/netpoll.go:302 +0x89
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.(*pollDesc).wait(0xc000263f00?, 0x0?, 0x0)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/internal/poll/fd_poll_runtime.go:83 +0x32
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.(*pollDesc).waitRead(...)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/internal/poll/fd_poll_runtime.go:88
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.(*FD).Accept(0xc000263f00)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/internal/poll/fd_unix.go:614 +0x22c
Oct 16 11:31:04 Blake snapd[31196]: net.(*netFD).accept(0xc000263f00)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/fd_unix.go:172 +0x35
Oct 16 11:31:04 Blake snapd[31196]: net.(*UnixListener).accept(0x0?)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/unixsock_posix.go:166 +0x1c
Oct 16 11:31:04 Blake snapd[31196]: net.(*UnixListener).Accept(0xc00023d950)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/unixsock.go:260 +0x3d
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/daemon.(*ucrednetListener).Accept(0x5593d4d17670?)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/daemon/ucrednet.go:112 +0x25
Oct 16 11:31:04 Blake snapd[31196]: net/http.(*Server).Serve(0xc0003762a0, {0x5593d47780a8, 0xc00023da10})
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/http/server.go:3039 +0x385
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/daemon.(*Daemon).Start.func1.1()
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/daemon/daemon.go:370 +0x32
Oct 16 11:31:04 Blake snapd[31196]: gopkg.in/tomb%2ev2.(*Tomb).run(0xc00056e140, 0x0?)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/vendor/gopkg.in/tomb.v2/tomb.go:163 +0x36
Oct 16 11:31:04 Blake snapd[31196]: created by gopkg.in/tomb%2ev2.(*Tomb).Go
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/vendor/gopkg.in/tomb.v2/tomb.go:159 +0xee
Oct 16 11:31:04 Blake snapd[31196]: goroutine 48 [select]:
Oct 16 11:31:04 Blake snapd[31196]: net/http.(*persistConn).writeLoop(0xc0006a0480)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/http/transport.go:2392 +0xf5
Oct 16 11:31:04 Blake snapd[31196]: created by net/http.(*Transport).dialConn
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/http/transport.go:1751 +0x1791
Oct 16 11:31:04 Blake snapd[31196]: goroutine 47 [IO wait]:
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.runtime_pollWait(0x7ffada858478, 0x72)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/runtime/netpoll.go:302 +0x89
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.(*pollDesc).wait(0xc000262200?, 0xc000250600?, 0x0)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/internal/poll/fd_poll_runtime.go:83 +0x32
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.(*pollDesc).waitRead(...)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/internal/poll/fd_poll_runtime.go:88
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.(*FD).Read(0xc000262200, {0xc000250600, 0x107e, 0x107e})
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/internal/poll/fd_unix.go:167 +0x25a
Oct 16 11:31:04 Blake snapd[31196]: net.(*netFD).Read(0xc000262200, {0xc000250600?, 0xc0005e1f40?, 0xc000250605?})
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/fd_posix.go:55 +0x29
Oct 16 11:31:04 Blake snapd[31196]: net.(*conn).Read(0xc000282378, {0xc000250600?, 0x150?, 0x203000?})
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/net.go:183 +0x45
Oct 16 11:31:04 Blake snapd[31196]: crypto/tls.(*atLeastReader).Read(0xc000416150, {0xc000250600?, 0x0?, 0x3a?})
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/crypto/tls/conn.go:784 +0x3d
Oct 16 11:31:04 Blake snapd[31196]: bytes.(*Buffer).ReadFrom(0xc000264278, {0x5593d4770a78, 0xc000416150})
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/bytes/buffer.go:204 +0x98
Oct 16 11:31:04 Blake snapd[31196]: crypto/tls.(*Conn).readFromUntil(0xc000264000, {0x5593d4772918?, 0xc000282378}, 0x846?)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/crypto/tls/conn.go:806 +0xe5
Oct 16 11:31:04 Blake snapd[31196]: crypto/tls.(*Conn).readRecordOrCCS(0xc000264000, 0x0)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/crypto/tls/conn.go:613 +0x116
Oct 16 11:31:04 Blake snapd[31196]: crypto/tls.(*Conn).readRecord(...)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/crypto/tls/conn.go:581
Oct 16 11:31:04 Blake snapd[31196]: crypto/tls.(*Conn).Read(0xc000264000, {0xc000017000, 0x1000, 0x1?})
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/crypto/tls/conn.go:1284 +0x16f
Oct 16 11:31:04 Blake snapd[31196]: net/http.(*persistConn).Read(0xc0006a0480, {0xc000017000?, 0xc000b55bc0?, 0xc000082d30?})
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/http/transport.go:1929 +0x4e
Oct 16 11:31:04 Blake snapd[31196]: bufio.(*Reader).fill(0xc000979c20)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/bufio/bufio.go:106 +0x103
Oct 16 11:31:04 Blake snapd[31196]: bufio.(*Reader).Peek(0xc000979c20, 0x1)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/bufio/bufio.go:144 +0x5d
Oct 16 11:31:04 Blake snapd[31196]: net/http.(*persistConn).readLoop(0xc0006a0480)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/http/transport.go:2093 +0x1ac
Oct 16 11:31:04 Blake snapd[31196]: created by net/http.(*Transport).dialConn
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/http/transport.go:1750 +0x173e
Oct 16 11:31:04 Blake snapd[31196]: goroutine 41 [IO wait, 1 minutes]:
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.runtime_pollWait(0x7ffada858298, 0x72)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/runtime/netpoll.go:302 +0x89
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.(*pollDesc).wait(0xc000040100?, 0xc000be81f1?, 0x0)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/internal/poll/fd_poll_runtime.go:83 +0x32
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.(*pollDesc).waitRead(...)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/internal/poll/fd_poll_runtime.go:88
Oct 16 11:31:04 Blake snapd[31196]: internal/poll.(*FD).Read(0xc000040100, {0xc000be81f1, 0x1, 0x1})
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/internal/poll/fd_unix.go:167 +0x25a
Oct 16 11:31:04 Blake snapd[31196]: net.(*netFD).Read(0xc000040100, {0xc000be81f1?, 0xc0000320a0?, 0xc000960e98?})
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/fd_posix.go:55 +0x29
Oct 16 11:31:04 Blake snapd[31196]: net.(*conn).Read(0xc000208008, {0xc000be81f1?, 0x5593d38553dd?, 0xc000960e40?})
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/net.go:183 +0x45
Oct 16 11:31:04 Blake snapd[31196]: net/http.(*connReader).backgroundRead(0xc000be81e0)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/http/server.go:672 +0x3f
Oct 16 11:31:04 Blake snapd[31196]: created by net/http.(*connReader).startBackgroundRead
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/net/http/server.go:668 +0xca
Oct 16 11:31:04 Blake snapd[31196]: goroutine 81 [syscall, 8 minutes]:
Oct 16 11:31:04 Blake snapd[31196]: syscall.Syscall6(0x17, 0xc, 0xc0005ece48, 0x0, 0x0, 0x0, 0x0)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/syscall/asm_linux_amd64.s:43 +0x5
Oct 16 11:31:04 Blake snapd[31196]: syscall.Select(0x5593d390655b?, 0x5593d3902ed4?, 0x48?, 0xb?, 0x4?)
Oct 16 11:31:04 Blake snapd[31196]:         /usr/lib/go-1.18/src/syscall/zsyscall_linux_amd64.go:1280 +0x6a
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/osutil/udev/netlink.stopperSelectReadable(0x0?, 0xb)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/osutil/udev/netlink/rawsockstop.go:57 +0x168
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/osutil/udev/netlink.RawSockStopper.func1()
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/osutil/udev/netlink/rawsockstop.go:31 +0x67
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/osutil/udev/netlink.(*UEventConn).Monitor.func4()
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/osutil/udev/netlink/conn.go:139 +0x82
Oct 16 11:31:04 Blake snapd[31196]: created by github.com/snapcore/snapd/osutil/udev/netlink.(*UEventConn).Monitor
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/osutil/udev/netlink/conn.go:136 +0x2d1
Oct 16 11:31:04 Blake snapd[31196]: goroutine 146 [select, 8 minutes]:
Oct 16 11:31:04 Blake snapd[31196]: github.com/snapcore/snapd/overlord/ifacestate/udevmonitor.(*Monitor).Run.func1()
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/overlord/ifacestate/udevmonitor/udevmon.go:147 +0x205
Oct 16 11:31:04 Blake snapd[31196]: gopkg.in/tomb%2ev2.(*Tomb).run(0xc0006ff560, 0x0?)
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/vendor/gopkg.in/tomb.v2/tomb.go:163 +0x36
Oct 16 11:31:04 Blake snapd[31196]: created by gopkg.in/tomb%2ev2.(*Tomb).Go
Oct 16 11:31:04 Blake snapd[31196]:         /build/snapd/parts/snapd-deb/build/vendor/gopkg.in/tomb.v2/tomb.go:159 +0xee
Oct 16 11:31:04 Blake systemd[1]: snapd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT

Snap Version:

snap    2.60.4
snapd   2.60.4
series  16
ubuntu  22.04
kernel  6.2.0-34-generic

I was able to fix it by:

  • Reboot the computer
  • sudo apt autoremove --purge snapd
  • sudo apt install snapd
  • sudo systemctl enable snapd