我希望能够编写脚本apt-get upgrade
以在没有提示的情况下无缝运行,但在我的实验中,我无法让它停止显示提示,即使使用-y
or也是如此--force yes
。最近,当从头开始设置 RPis 时,这是一个示例违规者,我只需点击q
它即可继续升级:
ca-certificates (20141019+deb8u2) stable; urgency=medium
Update Mozilla certificate authority bundle to version 2.9.
The following certificate authorities were added (+):
+ "Certplus Root CA G1"
+ "Certplus Root CA G2"
+ "Certum Trusted Network CA 2"
+ "Hellenic Academic and Research Institutions ECC RootCA 2015"
+ "Hellenic Academic and Research Institutions RootCA 2015"
+ "ISRG Root X1"
+ "OpenTrust Root CA G1"
+ "OpenTrust Root CA G2"
+ "OpenTrust Root CA G3"
+ "SZAFIR ROOT CA2"
The following certificate authorities were removed (-):
- "CA Disig"
- "NetLock Business (Class B) Root"
- "NetLock Express (Class C) Root"
- "NetLock Notary (Class A) Root"
- "NetLock Qualified (Class QA) Root"
- "Sonera Class 1 Root CA"
- "Staat der Nederlanden Root CA"
- "Verisign Class 1 Public Primary Certification Authority - G2"
- "Verisign Class 3 Public Primary Certification Authority"
- "Verisign Class 3 Public Primary Certification Authority - G2"
-- Michael Shuler <[email protected]> Fri, 18 Nov 2016 09:09:47 -0600
老实说,即使我手动运行程序,这也很烦人,因为它可能需要几分钟,我会走开,期待回到已完成的任务,却发现它在中途暂停。
我看到了一些关于让它更安静的-qq
东西,但我有点担心它可能会覆盖一个与默认值不同的 conf 文件(虽然很烦人,但我觉得这是可以接受的)。
所以,老实说,我什至不知道如何提出正确的问题——我只是希望这个提示消失。
您看到的输出来自
apt-listchanges
包,这不是默认值。有多种方法可以防止更改暂停更新过程:APT_LISTCHANGES_FRONTEND=cat
在环境中/etc/apt/listchanges.conf
和设置frontend=cat
apt
apt-listchanges
软件包