Help us understand the problem. What is going on with this article?

Ubuntu のアップデート方法

More than 1 year has passed since last update.

以下のコマンドを実施するとアップデートできる。
Ubuntu 18.10 でも有効な内容である。

Ubuntu の最新のパッケージ情報を再取得 - update サブコマンド

$ sudo apt update

Ubuntu のパッケージの更新 - dist-upgrade サブコマンド

パッケージを最新に更新、不要なパッケージの削除、カーネルの更新をしてくれます。
sudo apt upgrade という似たようなコマンドもあるが、そちらはパッケージを最新に更新するのみとなる。

$ sudo apt dist-upgrade

Ubuntu の依存関係で必要なくなったパッケージを削除 - autoremove サブコマンド

$ sudo apt autoremove

その他

他にも apt-get コマンドも存在する。

まとめ

$ sudo apt update
$ sudo apt dist-upgrade
$ sudo apt autoremove
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした