2014-08-24

停用 Ubuntu 擾人的更新和升級通知

更新管理員 (update manager) 是 Ubuntu 內建的軟體更新套件,它就如同 Windows 一般會在背景偷偷運作並跳出善意的通知,讓我們知道可以進行更新 (Update) 和升級 (Upgrade)。

這對哥倆還有個共同的特色,那就是它們都會跳出煩人的對話視窗來打斷我們的思緒,對於喜愛使用指令 (command) 進行 GNU/Linux 更新和升級的凍仁而言是個很擾人的存在,幸好在 Ubuntu 上我們還可以手動關閉它,以下分別為圖形化介面 (GUI)和終端機介面 (Console) 的設定方法。

1. GUI


  1. 開啟 update-manager
  2. 切到更新 update 的頁籤。
  3. 停用更新通知:將 Automatically check for updates 一欄更改成 Never
  4. 停用升級通知:將 Notify me of a new Ubuntu version 一欄更改成 Never

▲ Update Manager on Ubuntu 14.04

2. Console


2.1. 停用更新通知。
[ jonny@trusty ~ ]
$ sudo vi /etc/apt/apt.conf.d/10periodic [Enter]
#APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";

2.2. 停用升級通知。
[ jonny@trusty ~ ]
$ sudo vi /etc/update-manager/release-upgrades [Enter]
# Default behavior for the release upgrader.

[DEFAULT]
# Default prompting behavior, valid options:
#
#  never  - Never check for a new release.
#  normal - Check to see if a new release is available.  If more than one new
#           release is found, the release upgrader will attempt to upgrade to
#           the release that immediately succeeds the currently-running
#           release.
#  lts    - Check to see if a new LTS release is available.  The upgrader
#           will attempt to upgrade to the first LTS release available after
#           the currently-running one.  Note that this option should not be
#           used if the currently-running release is not itself an LTS
#           release, since in that case the upgrader won't be able to
#           determine if a newer release is available.
#Prompt=lts
Prompt=never 

最後,我們也可以移除更新管理員來永絕後患,但前提是要會先學會怎麼裝得回來還有會定期使用指令更新才行。
[ jonny@trusty ~ ]
$ sudo apt-get remove update-manager-core [Enter]

資料來源:
How to disable the update manager popup? - Ask Ubuntu
upgrade - Disable Ubuntu Update Manager's new version warning - Ask Ubuntu

沒有留言 :

張貼留言

謝謝您的寶貴意見,凍仁一定會盡快處理 ~^^