After upgrading my Ubuntu installation from 17.04 to 17.10, I was unable to start the snapd service with the following error:

-- Unit snapd.service has begun starting up.

Jan 20 17:58:00 hostname snapd[7848]: AppArmor status: apparmor is enabled but some features are missing: dbus, network

Jan 20 17:58:00 hostname snapd[7848]: AppArmor status: apparmor is enabled but some features are missing: dbus, network

Jan 20 17:58:00 hostname snapd[7848]: error: invalid character 'e' looking for beginning of value

Jan 20 17:58:00 hostname systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE

Jan 20 17:58:00 hostname systemd[1]: Failed to start Snappy daemon.

-- Subject: Unit snapd.service has failed

-- Defined-By: systemd

-- Support: http://www.ubuntu.com/support

--

-- Unit snapd.service has failed.

--

-- The result is failed.

Jan 20 17:58:00 hostname systemd[1]: snapd.service: Unit entered failed state.

Jan 20 17:58:00 hostname systemd[1]: snapd.service: Failed with result 'exit-code'.

Jan 20 17:58:00 hostname systemd[1]: snapd.service: Service hold-off time over, scheduling restart.

The cause of the problem is a corrupted /var/lib/snapd/state.json file.

The solution is to just delete the file and issue a "sudo systemctl start snapd.service"

Note: The snaps still worked fine on the system, I just couldn't run any snap commands or find/update snaps.

References: my askubuntu post

Previous Post