[Ubuntu] packages can be updated や updates are security updates というメッセージが表示されたときの対応手順

Ubuntu で packages can be updated. や updates are security updates. などのメッセージがターミナルに表示されたら対応すべきことをご紹介します。

メッセージの例

Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-72-generic x86_64)
 
 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
 
  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud
 
42 packages can be updated.
0 updates are security updates.

対応方法 apt-get update/upgrade

対応方法は apt-get updateapt-get upgrade を実行するだけで完了です。

sudo apt-get update
sudo apt-get upgrade

Ubuntu のパッケージのアップデートはこまめにしておきましょう。