怎样在系统上使用Ubuntu专业版
获取Ubuntu Pro 免费个人订阅
在Ubuntu注册账号,获取 Livepatch 订阅号,使用该订阅号,可以免费在五台系统上使用Ubuntu专业版。
在系统上使用Ubuntu Livepatch
- # sudo ua attach [订阅号]
系统会返回如下:
- silky-cn@ubuntu:~$ sudo ua attach[你的订阅号]
- Enabling default service esm-infra
- Updating package lists
- Ubuntu Pro: ESM Infra enabled
- Enabling default service livepatch
- Installing snapd
- Updating package lists
- Installing canonical-livepatch snap
- Canonical livepatch enabled.
- This machine is now attached to ‘Ubuntu Pro – free personal subscription’
- SERVICE ENTITLED STATUS DESCRIPTION
- esm-infra yes enabled Expanded Security Maintenance for Infrastructure
- fips yes disabled NIST-certified core packages
- fips-updates yes disabled NIST-certified core packages with priority security updates
- livepatch yes enabled Canonical Livepatch service
- usg yes disabled Security compliance and audit tools
- NOTICES
- Operation in progress: pro attach
- Enable services with: pro enable <service>
- Account: [你的账号邮箱号码]
- Subscription: Ubuntu Pro – free personal subscription
在系统上启用Livepatch
- # sudo ua enable livepatch
查询Ubuntu 是否启用livepatch状态
使用命令:
- # sudo pro enable livepatch
启用Livepatch,将返回如下:
One moment, checking your subscription first
Livepatch is already enabled.
查询Ubuntu pro 的状态
使用命令:
- # canonical-livepatch status
将返回如下:
- last check: 56 minutes ago
- kernel: 5.15.0-57.63-generic
- server check-in: succeeded
- patch state: ✓ no livepatches needed for this kernel yet
- tier: updates (Free usage; This machine beta tests new patches.)
- machine id:215698nm56nh4303652koh2f02km62m3