以下の内容はhttps://kazuhira-r.hatenablog.com/entry/2025/02/15/151712より取得しました。


Ubuntu Linux 24.04 LTSで、ubuntu-metaパッケージを使ってデスクトップ(ubuntu-desktop)やサーバー(ubuntu-server)のパッケージをまとめてインストールする

これは、なにをしたくて書いたもの?

よくVagrantUbuntu Linuxを使っているのですが、基本的にはこれらのBoxは小さい構成になっています。

ここにもしもデスクトップ環境をインストールしようと思った場合には?ということで、ちょっとやってみました。

ちなみにUbuntu Linux 22.04 LTSの時もやっています。この時はさらにRDP接続していますね。

Ubuntu Linux 22.04 LTSにデスクトップ環境をインストールして、RDP(リモートデスクトップ)接続する - CLOVER🍀

ubuntu-metaパッケージ

ubuntu-metaパッケージはこちら。

ubuntu-meta package : Ubuntu

ubuntu-metaパッケージには、以下の内容が含まれているようです。

Ubuntu Linuxのデスクトップ環境を作りたい場合は、ubuntu-*パッケージを使えばよさそうですね。

今回はこちらを使ってデスクトップ環境をインストールしてみましょう。

Ubuntu – noble の ubuntu-desktop パッケージに関する詳細

環境

今回の環境はこちら。

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.2 LTS
Release:        24.04
Codename:       noble


$ uname -srvmpio
Linux 6.8.0-53-generic #55-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 17 15:37:52 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

前提

使っているUbuntu Linux 24.04 LTSのBoxはこちらです。

cloud-image/ubuntu-24.04

また、以下のエントリーの内容を実行して日本語環境までは揃えたものとします。

Vagrantで使っているUbuntu Linux 24.04 LTSを日本語化する - CLOVER🍀

ちなみに、デフォルトのターゲットはgraphical.targetになっているようです。

$ systemctl get-default
graphical.target

ubuntu-desktopパッケージをインストールする

では、ubuntu-desktopパッケージをインストールしてみます。

最初にパッケージの内容を見てみましょう。

$ apt show ubuntu-desktop
Package: ubuntu-desktop
Version: 1.539.2
Priority: optional
Section: metapackages
Source: ubuntu-meta
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 17.4 kB
Provides: packagekit-installer
Depends: alsa-base, alsa-utils, anacron, at-spi2-core, bc, ca-certificates, dmz-cursor-theme, fontconfig, fonts-dejavu-core, foomatic-db-compressed-ppds, gdm3, ghostscript, gnome-control-center, gnome-menus, gnome-session-canberra, gnome-settings-daemon, gnome-shell, gnome-shell-extension-appindicator, gnome-shell-extension-desktop-icons-ng, gnome-shell-extension-ubuntu-dock, gnome-shell-extension-ubuntu-tiling-assistant, gstreamer1.0-alsa, gstreamer1.0-packagekit, gstreamer1.0-plugins-base-apps, inputattach, language-selector-common, language-selector-gnome, libatk-adaptor, libnotify-bin, libsasl2-modules, libu2f-udev, nautilus, openprinting-ppds, pipewire-pulse, printer-driver-pnm2ppa, rfkill, software-properties-gtk, spice-vdagent, ubuntu-desktop-minimal, ubuntu-drivers-common, ubuntu-release-upgrader-gtk, ubuntu-session, ubuntu-settings, unzip, update-manager, update-notifier, wireless-tools, wireplumber, wpasupplicant, xdg-user-dirs, xdg-user-dirs-gtk, xkb-data, xorg, yelp, zenity, zip
Recommends: apport-gtk, appstream, apt-config-icons-hidpi, avahi-daemon, baobab, bluez, bluez-cups, brltty, cloud-init, cups, cups-bsd, cups-client, cups-filters, deja-dup, dirmngr, eog, evince, file-roller, firefox, fonts-liberation, fonts-noto-cjk, fonts-noto-color-emoji, fonts-noto-core, fonts-ubuntu, fwupd, fwupd-signed, gamemode, gir1.2-gmenu-3.0, gnome-accessibility-themes, gnome-bluetooth-sendto, gnome-calculator, gnome-calendar, gnome-characters, gnome-clocks, gnome-disk-utility, gnome-font-viewer, gnome-initial-setup, gnome-keyring, gnome-logs, gnome-power-manager, gnome-remote-desktop, gnome-snapshot, gnome-system-monitor, gnome-terminal, gnome-text-editor, gpg-agent, gsettings-ubuntu-schemas, gvfs-fuse, hplip, ibus, ibus-gtk, ibus-gtk3, ibus-table, im-config, kerneloops, laptop-detect, libglib2.0-bin, libnss-mdns, libpam-fprintd, libpam-gnome-keyring, libpam-sss, libproxy1-plugin-gsettings, libproxy1-plugin-networkmanager, libreoffice-calc, libreoffice-gnome, libreoffice-impress, libreoffice-math, libreoffice-style-yaru, libreoffice-writer, libspa-0.2-bluetooth, libwmf0.2-7-gtk, memtest86+, mousetweaks, nautilus-sendto, network-manager, network-manager-config-connectivity-ubuntu, network-manager-openvpn-gnome, network-manager-pptp-gnome, orca, packagekit, pcmciautils, plymouth-theme-spinner, policykit-desktop-privileges, printer-driver-brlaser, printer-driver-c2esp, printer-driver-foo2zjs, printer-driver-m2300w, printer-driver-min12xxw, printer-driver-ptouch, printer-driver-pxljr, printer-driver-sag-gdi, printer-driver-splix, remmina, rhythmbox, seahorse, shotwell, simple-scan, snapd, speech-dispatcher, systemd-oomd, thunderbird, totem, transmission-gtk, ubuntu-docs, ubuntu-report, ubuntu-wallpapers, usb-creator-gtk, whoopsie, xcursor-themes, xdg-desktop-portal-gnome, xdg-utils, yaru-theme-gnome-shell, yaru-theme-gtk, yaru-theme-icon, yaru-theme-sound
Task: ubuntu-desktop, ubuntu-desktop-raspi
Download-Size: 2,476 B
APT-Sources: http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
Description: Ubuntu desktop system
 This package depends on all of the packages in the Ubuntu desktop system
 .
 It is also used to help ensure proper upgrades, so it is recommended that
 it not be removed.

N: 追加レコードが 1 件あります。表示するには '-a' スイッチを付けてください。

確かにデスクトップ環境が入りそうです。

This package depends on all of the packages in the Ubuntu desktop system

ちなみに、ubuntu-metaというパッケージ自体はないみたいですね。

$ apt show ubuntu-meta
N: パッケージ ubuntu-meta が見つかりません
N: パッケージ ubuntu-meta が見つかりません
E: パッケージが見つかりません

それではインストール。

$ sudo apt install ubuntu-desktop

まあまあ時間がかかります…。自分の環境では30分近くパッケージをインストールしていました。

あと、ディスクの残りがかなり少なくなります…。

完了したら、1度再起動しておきます。

これでUbuntu Linuxのデスクトップ環境が使えるようになります。

GNOME環境も日本語にする場合は、こちらのパッケージもインストールしましょう。

$ sudo apt install language-pack-gnome-ja
$ sudo apt install $(check-language-support -l ja)

接続確認

この後で、TigerVNCをインストールして確認しました。

Ubuntu Linux 24.04 LTSにVNCサーバーをインストールする - CLOVER🍀




以上の内容はhttps://kazuhira-r.hatenablog.com/entry/2025/02/15/151712より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14