0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu 25.04 へのアップグレード

Last updated at Posted at 2025-04-17

ノートパソコンにインストールされている Ubuntu 24.10 を Ubuntu 25.04 にアップグレードしました。

準備

sudo apt update
sudo apt upgrade
sudo apt autoremove --purge
sudo apt clean

アップグレード

sudo do-release-upgrade -d

次のエラーが出て失敗しました。

アップグレードを中断しました。アップグレードには '/' に空き領域が 9,567 M 必要です。
'/' の空き領域を少なくとも 5,744 M 確保してください。
'sudo apt clean' 
を使って、以前のインストールに利用した一時的なパッケージを削除し、ゴミ箱も空にしてください。

この時の / の残量

/dev/nvme0n1p8  60754732 53796432   3799724  94% /

対策

大きいパッケージを削除しました。

Mariadb
PostgreSQL
Mono
Jdk
R 言語
elixir

削除したら必ず次を実行しました。

sudo apt autoremove --purge
sudo apt clean

再度の挑戦

/ の残量

$ df -BM /
Filesystem     1M-blocks   Used Available Use% Mounted on
/dev/nvme0n1p8    59331M 48053M     8194M  86% /

パッケージを減らすと、アップグレードに必要な容量も減るようなので、これで
トライ

sudo do-release-upgrade -d

成功して再起動

OS のバージョン

$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 25.04"
NAME="Ubuntu"
VERSION_ID="25.04"
VERSION="25.04 (Plucky Puffin)"
VERSION_CODENAME=plucky
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=plucky
LOGO=ubuntu-logo

/ の残量

$ df -BM /
Filesystem     1M-blocks   Used Available Use% Mounted on
/dev/nvme0n1p8    59331M 48879M     7368M  87% /
0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?