Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

Ubuntuの古いカーネルがディスクを圧迫するときの対処法

More than 1 year has passed since last update.

ディスクを圧迫している状態

$ sudo du -h -d 1 /usr/src/
13M     /usr/src/linux-headers-4.4.0-1050-aws
13M     /usr/src/linux-headers-4.4.0-1052-aws
...
3.7G    /usr/src/

おうふ。

古いカーネルイメージを一発できれいにする

$ sudo apt autoremove -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  linux-aws-headers-4.4.0-1094
The following packages will be REMOVED:
  linux-aws-headers-4.4.0-1050 linux-aws-headers-4.4.0-1052
  linux-aws-headers-4.4.0-1054 linux-aws-headers-4.4.0-1055
  ...
done
tabian
画像認識技術を用いて、新しいポスター体験を提供する「ポ写」を開発している全員副業のスタートアップです! エンジニアが自由に、でも真面目に技術に向き合える環境、それは最新技術にとことんこだわれることだと思って日々Qiitaの更新頑張ってます。
https://tabian.co.jp
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