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で apt upgrade による自動再起動を無効にする

Posted at

はじめに

apt upgradeっと。。。
あれ?なんか勝手に再起動されている。。。なんでなんや

無効にする設定

とりあえず、作業するファイルをバックアップ

$ sudo cp /etc/apt/apt.conf.d/50unattended-upgrades ~/50unattended-upgrades

vim で編集します。nanoでもいいです。

$ sudo vim /etc/apt/apt.conf.d/50unattended-upgrades

以下の行の truefalse に変更します。

Unattended-Upgrade::Automatic-Reboot "true";

修正後はこんな感じ

$ diff ~/50unattended-upgrades /etc/apt/apt.conf.d/50unattended-upgrades
94c94
< Unattended-Upgrade::Automatic-Reboot "true";
---
> Unattended-Upgrade::Automatic-Reboot "false";

さいごに

かんたんでしたね

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?