弊社が販売している LiveLiNQ Broadcast など 、固定設置端末やキオスク端末として設定したい場合に邪魔になる、OSとGoogle Chromeの自動更新通知を無効化する手順をご紹介します。
Ubuntuの自動更新通知の非表示化
下記コマンドをコンソールに入力し、現在の設定を確認します。
gsettings get com.ubuntu.update-notifier no-show-notification
gsettings get com.ubuntu.update-notifier no-show-notification
エンターキーを押して、返ってきた値が「false」の場合、更新通知が有効になっているので、下記コマンドで設定を変更します。
gsettings get com.ubuntu.update-notifier no-show-notification true
gsettings get com.ubuntu.update-notifier no-show-notification true
再度設定確認のコマンドを入力し、返り値が「true」になっていることを確認します。
Google Chrome 自動更新の無効化
1.APTリポジトリの無効化
下記コマンドでファイルを編集し、APTリポジトリからChromeに対するパッケージ更新を無効化します。
sudo vi /etc/apt/sources.list.d/google-chrome.list
sudo vi /etc/apt/sources.list.d/google-chrome.list
ファイルの内容をコメントアウトします。
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
2.パッケージの固定化
下記コマンドを入力し、chromeのパッケージを固定化します。
sudo apt-mark hold google-chrome-stable
sudo apt-mark hold google-chrome-stable
下記コマンドを入力し、固定化が完了したことを確認します。
入力後エンターを押し、出力されたリストに「
google-chrome-stable」があれば固定化完了です。
3.Chrome ポリシーファイルの設定
Chromeの自動更新チェックを無効化するポリシーファイルを作成します。
Chromeのポリシーファイルを設定するためのディレクトリを作成します。
sudo mkdir -p /etc/opt/chrome/policies/managed
sudo mkdir -p /etc/opt/chrome/policies/managed
作成したディレクトリに以下のjsonを含むポリシーファイルを追加します。
sudo vi /etc/opt/chrome/policies/managed/disable_autoupdate.json
sudo vi /etc/opt/chrome/policies/managed/disable_autoupdate.json
<
disable_autoupdate.json>
{
"AutoUpdateCheckPeriodMinutes": 0
}
{
"AutoUpdateCheckPeriodMinutes": 0
}