I recently upgraded my desktop to 18.04, and am trying to generate a system user assertion using the make-system-user snap from @kyleN. On 16.04 that worked fine, but it now fails with
/usr/bin/python3: /snap/core/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /usr/bin/python3)
since it appears the libc6 version that ships with 18.04, namely 2.27, is too new. I’m not too keen to downgrade just so I can run this. What options do I have?
By the way I get the same using make-system-user from both the stable and beta channels. Oddly, the edge channel has a 25MB snap (as opposed to 8kB in the others), which simply says
Interesting. I realized that for the edge channel, the command needed to run the script has changed from make-system-user.run to simply make-system-user.
That said, on my 18.04 desktop running that still fails with
error: cannot sign assertion: cannot sign using GPG: /usr/bin/gpg --personal-digest-preferences SHA512 --default-key 0x[something] --detach-sign failed: exit status 2 ("gpg: WARNING: unsafe ownership on homedir '/home/user/.snap/gnupg'\ngpg: signing failed: No such file or directory\ngpg: signing failed: No such file or directory\n")
Done. You may copy auto-import.assert to a USB stick and insert it into an unmanaged Core system, after which you can log in using the username and password you provided.
It does produce an output file but it appears to be incomplete. Maybe the solution is obvious - I can’t say I’ve tried to troubleshoot further.
On the whole I think I’ve learned my lesson: which is that I should just stick to 16.04 for building stuff. Everything seems to work fine there
make-system-user rev 15 version 8 is now on channel edge (for amd64).
It’s built using core18 as a base, and it includes various code that it used to assume was present on the system, so it is larger than the current stable rev.
If anyone cares to verify it on bionic (18.04) and let me know, I’ll release to stable if all is well.
Hi,
I am using latest/stable: 12 2021-08-09 (26) 6MB classic. This issue started only after i added export GPG_TTY=$(tty). Before that it used to give
error: cannot sign assertion: cannot sign using GPG: /usr/bin/gpg --personal-digest-preferences SHA512 --default-key 0x[something] --detach-sign failed: exit status 2 ("gpg: WARNING: unsafe ownership on homedir '/home/user/.snap/gnupg'\ngpg: signing failed: No such file or directory\ngpg: signing failed: No such file or directory\n")
make-system-user requires you to enter the login credentials on every execution. If that is what you are referring to then it is not a bug. Can you clarify the issue you are having?
error: cannot sign assertion: cannot sign using GPG: /usr/bin/gpg --personal-digest-preferences SHA512 --default-key 0xAECDB62C038387BBB73B13751D334B946F1C0107 --detach-sign failed: exit status 2 (“gpg: WARNING: unsafe ownership on homedir ‘/home/rahul/.snap/gnupg’\ngpg: signing failed: No such file or directory\ngpg: signing failed: No such file or directory\n”)
Done. You may copy auto-import.assert to a USB stick and insert it into an unmanaged Core system, after which you can log in using the credentials you provided.
I tried following these steps and I get the same error
“error: cannot sign assertion: cannot sign using GPG: /usr/bin/gpg --personal-digest-preferences SHA512 --default-key 0xAECDB62C038387BBB73B13751D334B946F1C0107 --detach-sign failed: exit status 2 (“gpg: WARNING: unsafe ownership on homedir ‘/home/rahul/.snap/gnupg’\ngpg: signing failed: No such file or directory\ngpg: signing failed: No such file or directory\n”) Done. You may copy auto-import.assert to a USB stick and insert it into an unmanaged Core system, after which you can log in using the credentials you provided.”