当我在我的系统上运行时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.
Run Code Online (Sandbox Code Playgroud)
“APT 新闻”是什么意思?
谢谢。
Art*_*ild 38
这是 Canonical 将其“广告内容”添加到终端命令的另一个示例。
我相信,通过“APT 新闻”,他们只是在输出中引用自己的电视广告apt(因此可以说,这是一个元引用)。
运行此命令将禁用该输出:(sudo可能需要)
sudo pro config set apt_news=false
Run Code Online (Sandbox Code Playgroud)
对于手动配置,此命令写入文件/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
Run Code Online (Sandbox Code Playgroud)
因此,如果您编辑此文件,请务必随后运行此命令:
sudo pro refresh config
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9862 次 |
| 最近记录: |