はじめに
$ssh host
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-68-generic x86_64)
New release '16.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
言う通りに、Ubuntu 16.04.1 LTSへアップグレードします。
手順
- パッケージを最新にしておく
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
- 再起動する
$ sudo reboot
- アップグレードする
$ sudo do-release-upgrade
- アップグレード中に出現するダイアログメモ
各自環境に応じて選択してください
If you continue, an additional ssh daemon will be started at port
'1022'.
Do you want to continue?
-> Continue [yN] y
Installing the upgrade can take several hours. Once the download has
finished, the process cannot be canceled.
-> Continue [yN] Details [d]y
-> YES
Configuration file '/etc/nginx/sites-available/default'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
-> *** default (Y/I/N/O/D/Z) [default=N] ? N
90 packages are going to be removed.
-> Continue [yN] Details [d]
To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.
-> Continue [yN] y
- 再起動後ログイン確認
$ ssh host
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 3.13.0-107-generic x86_64)
以上、めでたしめでたし!!
- 追記
rails環境が動いているサーバだったのですが、assets precompileにて以下のエラーが発生
libmysqlclient.so.18: cannot open shared object file: No such file or directory
railsのappフォルダにて、vendor/bundleを削除して、bundle installすることで解消