我更改了一些设置,以便 14.04 可以在我的 Dell Inspirion 11 上运行。我记得这是在文件中注释掉几行。如果我能找到我更改的内容的参考,我就不会问这个问题了。升级后所有配置文件都会被覆盖吗?
答案1
如果需要覆盖(即新的配置格式版本),并且如果当前配置文件被报告为已更改,则配置文件往往会被覆盖。
如果是这种情况,apt
将提示您决定是否保留旧文件或替换它。您的提示将如下所示:
Configuration file `/opt/application/conf/XXX.conf'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
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 : background this process to examine the situation
从此以后,选择权完全在你手中。除非文件未发生改变,否则 Apt 不会在未事先询问你的情况下覆盖文件。