Ubuntu版本升级后,除.dpkg-dist和.ucf-dist外需手动更新/合并的维护者版本文件咨询
前阵子我给Ubuntu Server 20.04 LTS做了版本升级,升到了22.04 LTS。
升级安装过程中,系统多次弹出关于配置文件的询问,比如下面这样:
Configuration file '/etc/foo/bar.list'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** defaults.list (Y/I/N/O/D/Z) [default=N] ?
为了确保系统兼容性,我每次都选择了N,也就是保留自己修改过的当前版本文件。
不过我注意到,在选择N保留原有文件之后,Ubuntu的升级程序还会把维护者提供的新版本文件以不同的扩展名存放在同一个目录下……
备注:内容来源于stack exchange,提问作者DanRan

