我的根分区几乎没有空间了,当我检查原因时,我意识到我安装了多个 linux-modules-extra 软件包,所有这些软件包都很重,并且上面有旧的内核版本。
当我跑步时
dpkg-query -W --showformat='${Installed-Size;10}\t${Package}\n' | sort -k1,1n
Run Code Online (Sandbox Code Playgroud)
我得到最后几个包的以下输出:
168006 linux-modules-extra-5.0.0-37-generic
168166 linux-modules-extra-5.0.0-36-generic
168204 linux-modules-extra-5.0.0-32-generic
174488 discord
176527 linux-modules-extra-5.3.0-53-generic
176554 linux-modules-extra-5.3.0-59-generic
176567 linux-modules-extra-5.3.0-61-generic
176601 linux-modules-extra-5.3.0-62-generic
176682 linux-modules-extra-5.3.0-28-generic
176683 linux-modules-extra-5.3.0-26-generic
176980 linux-modules-extra-5.3.0-46-generic
177026 linux-modules-extra-5.3.0-51-generic
177164 linux-modules-extra-5.3.0-40-generic
177199 linux-modules-extra-5.3.0-45-generic
177223 linux-modules-extra-5.3.0-42-generic
179195 linux-modules-extra-5.4.0-42-generic
179280 linux-modules-extra-5.4.0-47-generic
179315 linux-modules-extra-5.4.0-48-generic
179330 linux-modules-extra-5.4.0-52-generic
179388 linux-modules-extra-5.4.0-51-generic
233492 google-chrome-stable
243263 libgl1-mesa-dri
261334 libgl1-mesa-dri
296661 icaclient
328693 linux-firmware
Run Code Online (Sandbox Code Playgroud)
我的问题是,我可以删除所有 linux-modules-extra 软件包吗?