安装 ESM 后,它会更新 apt 的源列表,例如:
$ cat /etc/apt/sources.list.d/ubuntu-esm-apps.list
deb https://esm.ubuntu.com/apps/ubuntu bionic-apps-security main
# deb-src https://esm.ubuntu.com/apps/ubuntu bionic-apps-security main
deb https://esm.ubuntu.com/apps/ubuntu bionic-apps-updates main
# deb-src https://esm.ubuntu.com/apps/ubuntu bionic-apps-updates main
我想使用基于 JFrog 的代理服务器,而不是直接访问 esm.ubuntu.com。对于普通软件包来说,这对我来说没问题,但是一旦我修改此文件,专业状态就会切换为“已禁用”。
pro status
SERVICE ENTITLED STATUS DESCRIPTION
cc-eal yes disabled Common Criteria EAL2 Provisioning Packages
cis yes disabled Security compliance and audit tools
esm-apps yes disabled Expanded Security Maintenance for Applications
esm-infra yes disabled 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
ros yes disabled Security Updates for the Robot Operating System
ros-updates yes disabled All Updates for the Robot Operating System
那么 - 如何修改 sources.list 而不触发 pro 中的错误?
答案1
/etc/apt/auth.conf.d
ESM 存储库需要身份验证。您可能需要使用通过以下方式配置的凭据来配置代理:ubuntu 优势。