当我在系统上运行apt update
并时,收到此消息:apt upgrade
News about significant security updates, features and services will
appear here to raise awareness and perhaps tease /r/Linux ;)
Use 'pro config set apt_news=false' to hide this and future APT news.
‘APT 新闻’ 是什么意思?
谢谢。
答案1
这是 Canonical 添加其“广告内容”到终端命令。
我认为,他们所说的“APT 新闻”只是在输出中指他们自己的电视广告apt
(因此可以说它是一个元引用)。
运行此命令将禁用该输出:(sudo
可能需要)
sudo pro config set apt_news=false
对于手动配置,此命令将写入文件/etc/ubuntu-advantage/uaclient.conf
。这是一个示例配置文件:
# Ubuntu Pro client config file.
# If you modify this file, run "pro refresh config" to ensure changes are
# picked up by Ubuntu Pro client.
contract_url: https://contracts.canonical.com
daemon_log_file: /var/log/ubuntu-advantage-daemon.log
data_dir: /var/lib/ubuntu-advantage
log_file: /var/log/ubuntu-advantage.log
log_level: debug
security_url: https://ubuntu.com/security
timer_log_file: /var/log/ubuntu-advantage-timer.log
ua_config:
apt_http_proxy: null
apt_https_proxy: null
apt_news: false
global_apt_http_proxy: null
global_apt_https_proxy: null
http_proxy: null
https_proxy: null
metering_timer: 14400
ua_apt_http_proxy: null
ua_apt_https_proxy: null
update_messaging_timer: 21600
update_status_timer: 43200
因此,如果您编辑此文件,请确保随后运行此命令:
sudo pro refresh config