I have these packages from trusty-proposed: libsodium18 python3-libnacl python3-pymacaroons
root@trusty-sru-1822780:~# apt-cache policy libsodium18 python3-libnacl python3-pymacaroons
libsodium18:
Installed: 1.0.8-5~ubuntu14.04.1
Candidate: 1.0.8-5~ubuntu14.04.1
Version table:
*** 1.0.8-5~ubuntu14.04.1 0
500 http://br.archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
100 /var/lib/dpkg/status
python3-libnacl:
Installed: 1.4.5-0ubuntu1~ubuntu14.04.1
Candidate: 1.4.5-0ubuntu1~ubuntu14.04.1
Version table:
*** 1.4.5-0ubuntu1~ubuntu14.04.1 0
500 http://br.archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
100 /var/lib/dpkg/status
python3-pymacaroons:
Installed: 0.9.2-0ubuntu1~ubuntu14.04.2
Candidate: 0.9.2-0ubuntu1~ubuntu14.04.2
Version table:
*** 0.9.2-0ubuntu1~ubuntu14.04.2 0
500 http://br.archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
100 /var/lib/dpkg/status
I then installed a devel version of ubuntu-advantage, and was able to successfully attach to a subscription:
root@trusty-sru-1822780:~# ua attach
Email: <email address hidden>
Password:
Second-factor auth: xxxxxx
This machine is now attached to '<email address hidden>'.
Account: <email address hidden>
Subscription: <email address hidden>
Valid until: 0001-01-01
Technical support level: not included
cc entitled n/a
cis-audit none inactive
esm entitled inactive
fips entitled n/a
fips-updates none n/a
livepatch entitled n/a
trusty verification
I have these packages from trusty-proposed: libsodium18 python3-libnacl python3-pymacaroons sru-1822780: ~# apt-cache policy libsodium18 python3-libnacl python3-pymacaroons ubuntu14. 04.1 ubuntu14. 04.1 ubuntu14. 04.1 0 br.archive. ubuntu. com/ubuntu/ trusty- proposed/ main amd64 Packages dpkg/status ubuntu14. 04.1 ubuntu14. 04.1 ubuntu14. 04.1 0 br.archive. ubuntu. com/ubuntu/ trusty- proposed/ main amd64 Packages dpkg/status pymacaroons: ubuntu14. 04.2 ubuntu14. 04.2 ubuntu14. 04.2 0 br.archive. ubuntu. com/ubuntu/ trusty- proposed/ main amd64 Packages dpkg/status
root@trusty-
libsodium18:
Installed: 1.0.8-5~
Candidate: 1.0.8-5~
Version table:
*** 1.0.8-5~
500 http://
100 /var/lib/
python3-libnacl:
Installed: 1.4.5-0ubuntu1~
Candidate: 1.4.5-0ubuntu1~
Version table:
*** 1.4.5-0ubuntu1~
500 http://
100 /var/lib/
python3-
Installed: 0.9.2-0ubuntu1~
Candidate: 0.9.2-0ubuntu1~
Version table:
*** 0.9.2-0ubuntu1~
500 http://
100 /var/lib/
I then installed a devel version of ubuntu-advantage, and was able to successfully attach to a subscription: sru-1822780: ~# ua attach
root@trusty-
Email: <email address hidden>
Password:
Second-factor auth: xxxxxx
This machine is now attached to '<email address hidden>'.
Account: <email address hidden>
Subscription: <email address hidden>
Valid until: 0001-01-01
Technical support level: not included
cc entitled n/a
cis-audit none inactive
esm entitled inactive
fips entitled n/a
fips-updates none n/a
livepatch entitled n/a
Enable entitlements with `ua enable <service>`
# l /var/lib/ ubuntu- advantage/ private/ root-macaroon. json ubuntu- advantage/ private/ root-macaroon. json
-rw------- 1 root root 959 Apr 16 21:18 /var/lib/
This used macaroons, and wouldn't have worked without that package.
Finally, test scripts from the quickstart (https:/ /github. com/ecordell/ pymacaroons# quickstart) mentioned in the sru template:
root@trusty- sru-1822780: ~# python3 ./macaroon- quickstart. py service. example. com d3cffe045634f54 4ffaf712ff2c51a c34828ae8a42b27 7f8f uIGNvb2wtcGljdH VyZS1zZXJ2aWNlL mV4YW1wbGUuY29t CjAwMWJpZGVudGl maWVyIGtleS1mb3 ItYm9iCjAwMjdja WQgcGljdHVyZV9p ZCA9IGJvYnNfY29 vbF9jYXQuanBnCj AwMmZzaWduYXR1c mUgg9j6KAsJk408 _-BFY09UT_ r3Ev8sUaw0gorop Csnf48K
location cool-picture-
identifier key-for-bob
cid picture_id = bobs_cool_cat.jpg
signature 83d8fa280b09938
MDAyZWxvY2F0aW9
Trusty verification succeeded