我刚刚在 Ubuntu Server 16.04.6 LTS 上安装了 canonical-livepatch,当我尝试注册机器时,我在启用命令上得到了这个:
2019/10/20 11:33:55 error executing enable: cannot enable machine: cannot send request: Post https://livepatch.canonical.com/api/machine-tokens: proxyconnect tcp: dial tcp: lookup "http: no such host
在系统日志中还有以下内容:
Oct 20 11:27:18 lorina canonical-livepatch[3287]: during refresh: cannot check: No machine-token. Please run 'canonical-livepatch enable'!
Oct 20 11:27:29 lorina kernel: [701248.639128] audit: type=1400 audit(1571567249.885:210): apparmor="DENIED" operation="open" profile="snap.canonical-livepatch.canonical-livepatch" name="/sys/kernel/mm/transparent_hugepage/hpage_pmd_size" pid=3420 comm="canonical-livep" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Oct 20 11:29:04 lorina kernel: [701343.340206] audit: type=1400 audit(1571567344.591:211): apparmor="DENIED" operation="open" profile="snap.canonical-livepatch.canonical-livepatch" name="/sys/kernel/mm/transparent_hugepage/hpage_pmd_size" pid=3552 comm="canonical-livep" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
如果我运行host livepatch.canonical.com
它,它就能正常解决。代理也允许 http 请求,但当我禁用防火墙时,错误仍然会发生。
有人知道从哪里开始吗?