snapcraft login doens't work on fresh multipass or lxd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
Creating a fresh Ubuntu VM or container with multipass or LXD doesn't seem to let me login with snapcraft.
After installing snapcraft, calling snapcraft login fails with:
craft-store error: No keyring found to store or retrieve credentials from.
Recommended resolution: Ensure the keyring is working or SNAPCRAFT_
For more information, check out: https:/
So I followed the instructions on https:/
I install gnome-keyring. Then run
ubuntu@ubuntu:~$ dbus-run-session -- sh
$ gnome-keyring-
The last command gives no output at all, instead of prompting for a passphrase. It doesn't even return.
If I press ctrl+D, I drop back into my dbus-run-session -- sh shell.
If I try again the call snapcraft login it gives me:
ubuntu@ubuntu:~$ snapcraft login
Enter your Ubuntu One e-mail address and password.
If you do not have an Ubuntu One account, you can create one at https:/
Email: MYEMAIL
Password:
Traceback (most recent call last):
File "/snap/
raise DBusErrorRespon
jeepney.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/snap/
return Collection(
File "/snap/
self.
File "/snap/
(signature, value), = self.send_
File "/snap/
raise ItemNotFoundExc
secretstorage.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/snap/
collection = secretstorage.
File "/snap/
return create_
File "/snap/
raise PromptDismissed
secretstorage.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/snap/
sys.exit(run())
File "/snap/
_run_
File "/snap/
dispatcher.
File "/snap/
return self._loaded_
File "/snap/
store.
File "/snap/
credentials = self.store_
File "/snap/
self.
File "/snap/
if self._keyring.
File "/snap/
collection = self.get_
File "/snap/
raise InitError("Failed to create the collection: %s." % e)
keyring.
snapcraft 7.5.2
snap 2.59.5
snapd 2.59.5
series 16
ubuntu 22.04
kernel 5.15.0-79-generic