1

I have a fresh installation of Ubuntu 18.04 and when I try to install any snaps from Ubuntu Software I invariably get the message too early for operation, device not yet seeded or device model not acknowledged. I'm fairly new with Ubuntu, but I know how to google and follow instructions. I can't find a solution to this problem. Has anyone seen this?

enter image description here

0

Try the approach described here. This essentially refreshes a configuration file.

Open the terminal and issue following commands one by one (tip: triple-click a line to select it, then copy it and paste it in the terminal). On Ubuntu, you will need to install the jq command, so I added one command to do that. In addition, I added a command to backup the original file so you can restore the previous situation in case it did not solve the issue.

sudo apt install jq
sudo cp /var/lib/snapd/state.json /var/lib/snapd/state.json-old 
sudo systemctl stop snapd
sudo cat /var/lib/snapd/state.json | jq 'delpaths([["data", "auth", "device"]])' > state.json-new
sudo cp state.json-new /var/lib/snapd/state.json
sudo systemctl start snapd

To be sure, reboot the system and try it the problem is solved. If not, you can revert to the previous state by copying the old file back, deleting the backup and new file, and optionally deleting the command again:

sudo cp state.json-old /var/lib/snapd/state.json
sudo rm state.json-*
sudo apt remove jq ;  sudo apt autoremove

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.