3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Ubuntu の apt upgrade で "not upgraded" と表示された時の対処法

Posted at

きっかけ

Ubnntu を利用しており、ソフトパッケージの差分更新時に not upgraded と表示され、気持ち悪かったので修正しました。

表示例

自分の環境では以下のように表示されていました。

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  docker-ce
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. の部分です。
上記では docker-ce のパッケージ更新が保留されていました。

修正方法

こちらは単に更新が保留されているだけで、明示的にパッケージをインストールすること(apt install docker-ce)で解消されます。

以下が、修正時の例です。

$ sudo apt install docker-ce

インストール完了後、 updateupgrade を実行し、not upgraded の有無を確認してみます。

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

表示されなくなりました!

3
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?