Is it possible to run snaps? I tried to install snapd inside an Ubuntu container, but it didn't work

Snapd successfully installs inside the Ubuntu 22.04 LTS container, but when I run sudo snap install code --classic I get this response: error: cannot communicate with server: Post "http://localhost/v2/snaps/code": dial unix /run/snapd.socket: connect: no such file or directory It doesn't look like I can install snapd with with system either:
[*****@blend ~]$ sudo system install snapd
[sudo] password for *****:
>> i: attempting to acquire system lock
>> i: this operation will replace the current overlay on the next boot

Spawning container blendrw on /.blendrw.
Press Ctrl-] three times within 1s to kill container.
Host and machine ids are equal (d83175c6713a4c1284d7ff6499b35a1e): refusing to link journals
:: Synchronizing package databases...
core is up to date
extra is up to date
error: target not found: snapd

Container blendrw failed with error code 1.
>> e: error occurred during installation, abandoning changes
[*****@blend ~]$ sudo system install snapd
[sudo] password for *****:
>> i: attempting to acquire system lock
>> i: this operation will replace the current overlay on the next boot

Spawning container blendrw on /.blendrw.
Press Ctrl-] three times within 1s to kill container.
Host and machine ids are equal (d83175c6713a4c1284d7ff6499b35a1e): refusing to link journals
:: Synchronizing package databases...
core is up to date
extra is up to date
error: target not found: snapd

Container blendrw failed with error code 1.
>> e: error occurred during installation, abandoning changes
2 Replies
Asterisk
Asterisk3y ago
No snap >:( Use flatpak Snapd is in the AUR BTW so you can’t get it for now
Wanderingwolf
WanderingwolfOP3y ago
Aaaalright. Thanks for your response.

Did you find this page helpful?