Ubuntu-14.04

如果您有像 Squid 這樣的 HTTP 連接代理,如何啟動/更新 Ubuntu Advantage/ESM?

  • April 27, 2022

如果您有 Squid 之類的 HTTP 連接代理,如何在 Ubuntu 14.04 上啟動/更新 Ubuntu Advantage/ESM - 以便再次獲得安全更新?使用舊工具時,我會收到錯誤和/或超時sudo apt update && sudo apt dist-upgrade

與此同時,我自己發現:

cat /etc/apt/apt.conf  # check for proxy FQDN! Or create empty file!

cat /etc/environment  # check for proxy FQDN!

sudo rm /etc/apt/sources.list.d/ubuntu-esm-infra*.list*

sudo apt update

sudo -E add-apt-repository ppa:ua-client/stable  # press Enter

sudo apt update

sudo apt install --reinstall ubuntu-advantage-tools

sudo -E ua status

sudo -E ua detach  # optional

sudo -E ua attach <ID_VIA_SEE_IMAGE_BELOW>

### sudo -E ua enable esm-infra

### sudo -E ua status

### sudo update

sudo apt dist-upgrade

Ubuntu 優勢/ESM

https://support.canonical.com/selfservice/s/article/Obtaining-ESM-Credentials-And-Enabling-ESM-On-Ubuntu-14-04-LTS-Trusty

也很有趣:

# Livepatch with Ubuntu 14 und Ubuntu 16
# Sometimes sudo isn't enough -> sometimes you need a real root terminal!
#
sudo -E canonical-livepatch config http-proxy=http://<HOST>:<PORT>
sudo -E canonical-livepatch config https-proxy=http://<HOST>:<PORT>
#
sudo -E ua enable livepatch
# Landscape with Ubuntu 14 und Ubuntu 16
# sudo apt update
sudo apt --yes install landscape-client
sudo -E landscape-config -a <SUBSCRIPTION_NAME> -t $(hostname -f)
# Enter (Y)
# Enter (no Account-Registration-Key)
# Enter (HTTP-Proxy)
# Enter (HTTPS-Proxy)
# y (activate scripts)
# ALL (scripts for all)
# Enter (no Access-Group)
# Leave empty or continuous_use, reboot_ok, reboot_stops (tags)
# Enter (Y)

引用自:https://serverfault.com/questions/1060211