If you want the distro overview first, start with How to Install Glances on Linux. This page is focused on Ubuntu specifically and compares the three main install paths: apt, pipx, and pip.
Quick Answer
- Install via APT:
sudo apt update && sudo apt install glances -y - Or install a newer version with pipx:
pipx install glances - Verify:
glances --version - Launch:
glances(pressqto quit)
Which method should you use on Ubuntu?
- APT: easiest and most Ubuntu-native option.
- pipx: cleaner if you want a newer Glances release without mixing packages into the system Python environment.
- pip: acceptable for labs, but less tidy on long-lived hosts.
If you just need Glances running quickly on a server, start with APT. If you want the newest release and a cleaner Python workflow, prefer pipx.
Method 1: Install Glances with APT
Step 1: Refresh package metadata
sudo apt update
sudo apt upgrade -y
Step 2: Install the package
sudo apt install glances -y
Step 3: Verify the install
glances --version
Method 2: Install Glances with pipx
pipx is a good choice when you want a newer release but do not want to clutter the system Python packages.
Step 1: Install pipx
sudo apt update
sudo apt install pipx -y
pipx ensurepath
Step 2: Install Glances
pipx install "glances[all]"
Log out and back in if your shell does not immediately pick up the new pipx path.
Method 3: Install Glances with pip
Use this if you explicitly want a Python-package install and understand the trade-off.
sudo apt install python3 python3-pip -y
sudo pip3 install "glances[all]"
How to run Glances on Ubuntu
Terminal mode
glances
Press q or Esc to exit.
Web UI mode
glances -w
Then open:
http://<your_server_ip>:61208
If Ubuntu’s firewall is enabled, allow the default port:
sudo ufw allow 61208/tcp
Quick checks and troubleshooting
- If
glancesis not found after a pipx install, start a new shell session. - If the web UI does not load, confirm the process is running and port
61208is reachable. - If you installed with pip and later want a cleaner setup, move to pipx or a virtual environment.
Related Glances guides
- How to Install Glances on Linux
- How to Install Glances on RHEL 9/8, Rocky Linux and AlmaLinux
- How to Install Glances on CentOS Stream
- How to Install Grafana and Prometheus on Ubuntu 24.04
This page should rank for Ubuntu-specific Glances installs. Use the hub page if you need to compare methods across distributions.

