0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntuのパッケージ更新時に出る"Which services should be restarted?"や"Pending kernel upgrade"のダイアログをスキップする方法

Last updated at Posted at 2024-08-18

はじめに

以下のような画面のことです。

image.png

image.png

せっかくapt upgrade-yオプションなどでプロンプトをスキップしても、これらが出るとエンターキーを押すために画面の前で待たなければなりません。

アップグレード中にコーヒーでも淹れて戻ってきたら完了している、という理想を実現するために、これらをスキップしましょう!

方法

以下のコマンドを実行して99_skip_dialog.confファイルを作成します。

sudo tee /etc/needrestart/conf.d/99_skip_dialog.conf <<EOF
\$nrconf{kernelhints} = '0';
\$nrconf{restart} = 'a';
EOF

快適な自動化ライフを😊

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?