Guides 11792 Published by

Looking to turn your SDR rig into a fully functional platform on Ubuntu 22.04 LTS? This walkthrough guides you through keeping the system fresh with updates, adding the official GNU Radio PPA for the latest binaries, installing the core meta‑package and optional extras like gr-osmosdr or qtgui, while cautioning against the unstable snap version. After confirming the expected v3.10.x release with gnuradio‑companion, you can fire up a quick test flowgraph that captures RTL‑SDR data and displays it in QT GUI, but if issues pop up—missing dependencies, GPU driver quirks or library path errors—the guide offers quick fixes such as sudo apt install -f or sourcing the profile script. With everything set, you’re ready to explore DSP experiments and even build a custom radio station, so dive in and happy hacking.



How to Install GNU Radio on Ubuntu 22.04 LTS

If you’re looking to get your SDR rig up and running, this guide will walk you through installing GNU Radio the easy way on Ubuntu 22.04 LTS. You’ll learn how to pull in the right packages, avoid common pitfalls, and get a fresh install that’s ready for hacking.

Prerequisites: Make Sure Your System Is Fresh

Before diving into package managers, verify you’re not working on a bleeding‑edge or partially upgraded system. Run:

sudo apt update && sudo apt upgrade -y

Why it matters: An out‑of‑date system can trigger unmet dependency errors that force you to chase broken packages.

Add the Official GNU Radio PPA

The Ubuntu repositories ship an older version of GNU Radio (3.8.x). For a recent, well‑maintained build, add the official PPA:

sudo add-apt-repository ppa:gnuradio/ppa -y

I’ve seen people skip this step and then try to install from snap only to end up with a sluggish GUI that stutters. The PPA gives you the latest stable binaries.

Install the Core Packages
sudo apt update
sudo apt install gnuradio -y

Why it matters: Installing just the gnuradio meta‑package pulls in all the core blocks and libraries you need for most flowgraphs. If you want Python 3 support, add python3-gnuradio.

Verify the Installation

Run:

gnuradio-companion --version

You should see something like GNU Radio v3.10.x. If it prints an older version, double‑check that your /etc/apt/sources.list.d/* files still reference the PPA and not the old Ubuntu repos.

Optional: Install Extra Blocks and Tools

Many users love the gr-osmosdr plugin for RTL‑SDR support. It’s not included by default:

sudo apt install gr-osmosdr -y

Also consider gnuradio-qtgui if you want an interactive graphing UI.

Quick Test Flowgraph

Open GRC:

gnuradio-companion

Add an Osmocom Source block wired to a QT GUI Sink. Set the device address to rtl=0. Hit Run. If you hear or see the spectrum, congratulations—you’re ready to dive deeper.

Troubleshooting
  • Missing dependencies: Run sudo apt install -f to fix broken installs.
  • GUI freezing: Check that your GPU drivers are up‑to‑date; older Intel drivers can cause QT issues.
  • Library path errors: If you built from source, remember to run source /opt/gnuradio/3.10/etc/profile.d/gnuradio.sh.
Wrap‑up

That’s all the heavy lifting. With GNU Radio installed via the PPA, you’re free to experiment with SDR, DSP, and even build your own custom radio station.