I can confirm that update doesn't work on bionic, but it worked with focal and jammy.
MAAS installed from 3.2/stable inside LXC container running ubuntu:bionic
root@cosmic-crayfish:~# snap install maas
Download snap "maas" (23947) from channel "3.2/stable"
maas (3.2/stable) 3.2.6-12016-g.19812b4da from Canonical✓ installed
root@cosmic-crayfish:~# snap refresh --channel=3.3/beta maas
error: cannot perform the following tasks:
- Run post-refresh hook of "maas" snap if present (run hook "post-refresh":
-----
Traceback (most recent call last):
File "/snap/maas/24685/bin/maas", line 5, in <module>
from maascli import main
File "/snap/maas/24685/lib/python3.10/site-packages/maascli/__init__.py", line 10, in <module>
from maascli.parser import get_deepest_subparser, prepare_parser
File "/snap/maas/24685/lib/python3.10/site-packages/maascli/parser.py", line 11, in <module>
from maascli import api
File "/snap/maas/24685/lib/python3.10/site-packages/maascli/api.py", line 19, in <module>
import httplib2
File "/snap/maas/24685/usr/lib/python3/dist-packages/httplib2/__init__.py", line 40, in <module>
import ssl
File "/usr/lib/python3.10/ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: /usr/lib/python3.10/lib-dynload/_ssl.cpython-310-x86_64-linux-gnu.so: failed to map segment from shared object
-----)
I can confirm that update doesn't work on bionic, but it worked with focal and jammy.
MAAS installed from 3.2/stable inside LXC container running ubuntu:bionic
root@cosmic- crayfish: ~# snap install maas g.19812b4da from Canonical✓ installed
Download snap "maas" (23947) from channel "3.2/stable"
maas (3.2/stable) 3.2.6-12016-
root@cosmic- crayfish: ~# snap refresh --channel=3.3/beta maas maas/24685/ bin/maas" , line 5, in <module> maas/24685/ lib/python3. 10/site- packages/ maascli/ __init_ _.py", line 10, in <module> subparser, prepare_parser maas/24685/ lib/python3. 10/site- packages/ maascli/ parser. py", line 11, in <module> maas/24685/ lib/python3. 10/site- packages/ maascli/ api.py" , line 19, in <module> maas/24685/ usr/lib/ python3/ dist-packages/ httplib2/ __init_ _.py", line 40, in <module> python3. 10/ssl. py", line 98, in <module> python3. 10/lib- dynload/ _ssl.cpython- 310-x86_ 64-linux- gnu.so: failed to map segment from shared object
error: cannot perform the following tasks:
- Run post-refresh hook of "maas" snap if present (run hook "post-refresh":
-----
Traceback (most recent call last):
File "/snap/
from maascli import main
File "/snap/
from maascli.parser import get_deepest_
File "/snap/
from maascli import api
File "/snap/
import httplib2
File "/snap/
import ssl
File "/usr/lib/
import _ssl # if we can't import it, let the error propagate
ImportError: /usr/lib/
-----)