How to Install Glances on Ubuntu (APT, Pipx and Pip Guide)

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.

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 glances is 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 61208 is reachable.
  • If you installed with pip and later want a cleaner setup, move to pipx or a virtual environment.

Related Glances guides

This page should rank for Ubuntu-specific Glances installs. Use the hub page if you need to compare methods across distributions.

Elsewhere On TurboGeek:  How to Install and Update the AWS CLI (Windows, macOS, & Linux Guide)

Richard Bailey

Richard Bailey is the founder of TurboGeek and has spent more than a decade working across Windows Server, Linux, virtualization, cloud infrastructure and automation. He writes hands-on technical guides for sysadmins, engineers and IT teams, with a focus on clear instructions, practical troubleshooting and real-world infrastructure work.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

Translate »