Eth*_*mon 8 linux ubuntu ubuntu-20.04
我们为每个用户创建一个在 Ubuntu 20.04.2 LTS (Focal Fossa) 上运行的数字海洋服务器。每隔几个月,这个过程就会陷入困境,因为更新中的某些内容需要“是”或“是”等。我们不断寻找新的方法来处理“自动说是”,但每隔几个月,我们就会出现一个新的事情好像还没处理过。
我们现在的更新命令是:yes Y | sudo apt-get dist-upgrade -qq -y
。
我们最近的一站是:
Configuring openssh-server
--------------------------
A new version (/tmp/fileJQ04gT) of configuration file /etc/ssh/sshd_config is
available, but the version installed currently has been locally modified.
1. install the package maintainer's version
2. keep the local version currently installed
3. show the differences between the versions
4. show a side-by-side difference between the versions
5. show a 3-way difference between available versions
6. do a 3-way merge between available versions
7. start a new shell to examine the situation
What do you want to do about modified configuration file sshd_config
Run Code Online (Sandbox Code Playgroud)
这是自动对更新中的所有问题说“是”的方式(还是只是默默地更新)?
超级用户帖子 非交互式 apt 升级 建议使用以下脚本:
DEBIAN_FRONTEND=noninteractive \
apt-get \
-o Dpkg::Options::=--force-confold \
-o Dpkg::Options::=--force-confdef \
-y --allow-downgrades --allow-remove-essential --allow-change-held-packages
Run Code Online (Sandbox Code Playgroud)
您还可以考虑使用该unattended-upgrades
软件包在无人值守的情况下自动下载和安装安全升级。有关更多信息,请参阅相关文章之一:
如何在 Ubuntu Server 18.04 或 20.04 上设置自动更新。
归档时间: |
|
查看次数: |
8097 次 |
最近记录: |