I started a docker container and then installed ubuntu-advantage-tools in the container, although had following error messages during the installation, i assume it does not matter.
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
After that, i can get following commands run correctly:
# pro --version
27.11.2~22.04.1
# uname -a
Linux c67b17708016 4.12.14-120-default #1 SMP Thu Nov 7 16:39:09 UTC 2019 (fd9dc36) x86_64 x86_64 x86_64 GNU/Linux
# dpkg -l | grep advantage
ii ubuntu-advantage-tools 27.11.2~22.04.1 amd64 management tools for Ubuntu Advantage
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
root@c67b17708016:/# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
However, other more commands with following exceptions:
# pro --help
WARNING:root:failed to process /proc/version_signature.
# cat /proc/version_signature
cat: /proc/version_signature: No such file or directory
# pro security-status
failed to process /proc/version_signature.
Looks like the kernel failed to launch the pro client somehow.
Anyone met same problem? Thanks a lot.
cat /proc/version_signature? – Terrance Nov 04 '22 at 03:47No such file or directory. – jake Nov 04 '22 at 06:22uname -aas well, please. Use code formatting for commands and command output. – muru Nov 04 '22 at 06:234.12.14-120-defaultdoesn't look like any current Ubuntu kernel. Ah, I see you're doing this in a container. Then the kernel is shared with the host, so it seems the only thing to do here if you really need UA in a container (why, though?) is to run in an Ubuntu host. – muru Nov 04 '22 at 06:48# pro --help Failed to access URL: https://contracts.canonical.com/v1/resources?architecture=amd64&kernel=5.15.0-52-generic&series=jammy Cannot verify certificate of server Please check your openssl configuration.how to resolve it?
– jake Nov 04 '22 at 09:01#pro --help, I assume failure of this command indicates something wrong which blocks me moving forward (i.e.#pro atach [token]etc) the next step, this error must be resolved. Now, i tried more other command like#pro security-status, same failure message shown. Again, i tried#pro attach [my token i received], the error message isFailed to attach machine. See https://ubuntu.com/pro( as i supposed though). – jake Nov 07 '22 at 07:41cat /etc/os-releaseshows following informationPRETTY_NAME="Ubuntu 22.04.1 LTS" VERSION="22.04.1 LTS (Jammy Jellyfish)"; And also,uname -rcmd shows5.15.0-52-genericthus I assume the kernel version is fine to support UA. – jake Nov 09 '22 at 06:26