snap is not working inside github codespaces #54655
Select Topic AreaQuestion BodyWhat I want: What I did:
What I expect: What I got:
Ubuntu version: How to fix that? |
Replies: 6 comments 3 replies
|
any update? |
|
any update here? |
|
jesus can we get some help? it's been 5 months |
|
Codespaces instances are hosted in a Docker container and because of this In short, it's doesn't seem like it's possible to run |
|
How about convert systemd script ( $ cat /lib/systemd/system/snapd.service
[Unit]
Description=Snap Daemon
After=snapd.socket
After=time-set.target
After=snapd.mounts.target
Wants=time-set.target
Wants=snapd.mounts.target
Requires=snapd.socket
OnFailure=snapd.failure.service
# This is handled by snapd
# X-Snapd-Snap: do-not-start
[Service]
# Disabled because it breaks lxd
# (https://bugs.launchpad.net/snapd/+bug/1709536)
#Nice=-5
OOMScoreAdjust=-900
ExecStart=/usr/lib/snapd/snapd
EnvironmentFile=-/etc/environment
Restart=always
WatchdogSec=5m
Type=notify
SuccessExitStatus=42
RestartPreventExitStatus=42
KillMode=process
[Install]
WantedBy=multi-user.targetBut it has some limits, see also https://forum.snapcraft.io/t/installing-and-running-snaps-without-systemd/3949/36 ... Update: I tried to install flutter in github codespaces, and after I installed snapd, I failed to start snapd, then found this discussion. Maybe I have to use method-2-manual-installation. |
Codespaces instances are hosted in a Docker container and because of this
systemdisn't used.systemdis a requirement forsnapdto run, which I found out from this StackOverflow answer.In short, it's doesn't seem like it's possible to run
snapinside of GitHub Codespace instances.