我照做了sudo apt-get update && sudo apt-get upgrade
。它一直运行,直到遇到 sudo 包,而 sudoers 文件已被更改。我在 VIM 中调用 diff 并使用 退出:q
。它没有再次提示我,而是采取了默认操作并保留了我更改的版本。
我打算安装 /etc/sudoers 的软件包分发版本,事后我该怎么做?我试过了apt-get install --reinstall sudo
,没有任何变化。
输出apt-get upgrade
:
Setting up sudo (1.8.16-0ubuntu1.2) ...
Configuration file '/etc/sudoers'
==> 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.
*** sudoers (Y/I/N/O/D/Z) [default=N] ? D
Configuration file '/etc/sudoers'
==> 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.
*** sudoers (Y/I/N/O/D/Z) [default=N] ?
...