snapd installation hangs apt with error: cannot read the state file: open /var/lib/snapd/state.json: no such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Tried to install Firefox, apt hangs at 54%.
This may be related to the fact that calamares reported a failed installation when I tried to install element, but it still let me boot into it. I reported that bug against calamares but it could have been snapd at fault.
apt output:
```
$ sudo apt install firefox
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
snapd squashfs-tools
Suggested packages:
zenity | kdialog
The following NEW packages will be installed:
firefox snapd squashfs-tools
upgraded, 3 newly installed, 0 to remove and not upgraded.
Need to get 27.5 MB of archives.
After this operation, 111 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://
Get:2 http://
Fetched 27.5 MB in 1s (33.4 MB/s)
Preconfiguring packages
Selecting previously unselected package squashfs-tools.
(Reading database .. 254744 files and directories currently installed.) Preparing to unpack.
Unpacking squashfs-tools (1:4.6.1-1)
Selecting previously unselected package snapd.
Preparing to unpack.
Unpacking snapd (2.60.4+23.10)
Setting up squashfs-tools (1:4.6.1-1) Setting up snapd (2.60.4+23.10)
error: cannot read the state file: open /var/lib/
Created symlink /etc/systemd/
pt-listener.
I Created symlink /etc/systemd/
Created symlink /etc/systemd/
Created symlink /etc/systemd/
ice.
Created
symlink /etc/systemd/
ecovery-
Created symlink /etc/systemd/
Created symlink /etc/systemd/
Unit /lib/systemd/
Created symlink /etc/systemd/
Created
Created symlink /etc/systemd/
.service.
snapd.failure.
snapd.mounts.target is a disabled or a static unit, not starting it.
snapd.snap-
```
This was copied/ocr from a photo of the screen, apologies if there are typos
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: snapd 2.60.4+23.10
ProcVersionSign
Uname: Linux 6.5.0-9-generic x86_64
ApportVersion: 2.27.0-0ubuntu6
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: LXQt
Date: Thu Jan 4 20:00:17 2024
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)