![一旦我在“apt-get升級”中失敗,如何替換自訂/etc/sudoers?](https://rvso.com/image/886361/%E4%B8%80%E6%97%A6%E6%88%91%E5%9C%A8%E2%80%9Capt-get%E5%8D%87%E7%B4%9A%E2%80%9D%E4%B8%AD%E5%A4%B1%E6%95%97%EF%BC%8C%E5%A6%82%E4%BD%95%E6%9B%BF%E6%8F%9B%E8%87%AA%E8%A8%82%2Fetc%2Fsudoers%EF%BC%9F.png)
我做到了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] ?
...