Ubuntu インストール後 Ubuntu 5.4.0-6ubuntu1~16.04.5 2018/01

パッケージの更新
# #サーバーからリストパッケージを入手する
# apt update

# #パッケージををアップグレードする
# apt dist-upgrade

# #不要になったパッケージを削除する
# apt autoremove
∗ dist-upgradeは、upgradeのパッケージのアップグレードに加えて、不要パッケージの削除とカーネルの更新を行う。

dist-upgrade時に以下のエラーが出る場合は別プロセスが走っているので、15分程度待ってから再度実行する。
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

開発環境のインスト―ル
# apt-get install build-essential
∗ gcc, g++, ...

ホスト名変更
/etc/hostname
/etc/host

ユーザの追加
adduser $UserName