Snapd runtime error in AL2023
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
Medium
|
Unassigned |
Bug Description
Hi, I'm having difficulties installing snaps in AL2023 OS.
I've tried in two different ways:
Boot an amazon linux machine (AL2023)
#uname -a
```
Linux ip-172-
```
Enable `squashfs` module (and add it to /etc/modules)
Squashfs config:
```
CONFIG_SQUASHFS=m
CONFIG_
# CONFIG_
CONFIG_
# CONFIG_
# CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
# CONFIG_
# CONFIG_
CONFIG_
```
Restart the VM, and make sure that:
`lsmod` outputs `squashfs` and `loop`
I tried installing it in two ways:
#### 1. Install from EPEL9 (some packages might not be necessary)
```
wget https:/
wget https:/
wget https:/
wget https:/
wget https:/
wget https:/
wget https:/
wget https:/
wget https:/
sudo yum install squashfuse-
```
Running `snap` returns help commands as expected
Run `(sudo) snap install snap-store-proxy` returns:
```
error: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:
/dev/loop0, missing codepage or helper program, or other error.
```
#### 2. Build from source
```
sudo dnf install -y git libseccomp-devel xfsprogs-devel libcap-devel go
git clone https:/
cd snapd/
mkdir -p /tmp/build
go build -o /tmp/build ./...
cd /tmp/build
sudo ./snapd
```
Log output
```
2023/11/30 11:32:10.048397 overlord.go:271: Acquiring state lock file
2023/11/30 11:32:10.048717 overlord.go:276: Acquired state lock file
2023/11/30 11:32:10.056725 patch.go:64: Patching system state level 6 to sublevel 1...
2023/11/30 11:32:10.059219 patch.go:64: Patching system state level 6 to sublevel 2...
2023/11/30 11:32:10.061908 patch.go:64: Patching system state level 6 to sublevel 3...
2023/11/30 11:32:10.071653 daemon.go:247: started snapd/2.
2023/11/30 11:32:10.116956 main.go:125: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount: /tmp/syscheck-
2023/11/30 11:32:10.117119 daemon.go:340: adjusting startup timeout by 30s (pessimistic estimate of 30s plus 5s per snap)
2023/11/30 11:32:10.118420 backends.go:58: AppArmor status: apparmor not enabled
2023/11/30 11:32:10.132644 system_key.go:254: running from non-installed location /tmp/build/snapd: ignoring system-key
2023/11/30 11:32:10.132729 helpers.go:146: error trying to compare the snap system key: system-key versions not comparable
2023/11/30 11:32:15.153860 daemon.go:519: gracefully waiting for running hooks
2023/11/30 11:32:15.153887 daemon.go:521: done waiting for running hooks
2023/11/30 11:32:18.154312 overlord.go:515: Released state lock file
daemon stop requested to wait for socket activation
```
Hi, thanks for raising this. AL2023 is not supported yet by snapd. The team is working on supporting this system. I'll keep you updated.