Ubuntu Update Causes Browser Downloads to Fail Silently

sysadmin desktop ubuntu

15 April 2025

Summary:
After a recent Ubuntu update (in my case, 22.04 LTS), all browsers suddenly stopped downloading files. Clicking download links would either do nothing, fail silently, or never show a file picker dialog. This turned out to be caused by missing xdg-desktop-portal packages — a dependency increasingly required by sandboxed browsers like Brave, Chromium, and sometimes Firefox (especially Snap versions).

What Happened:
I lost a good chunk of my day debugging a strange issue:

Eventually, I found that installing the following packages resolved the issue instantly:

sudo apt install xdg-desktop-portal xdg-desktop-portal-gtk

After restarting the browser, downloads worked normally again.

Why This Happens:
Ubuntu is transitioning toward more sandboxed app models (Snap, Flatpak, Wayland-native apps), which rely on the xdg-desktop-portal system for access to things like file pickers, downloads, and device permissions. If these packages are missing — or mismatched with your desktop environment — certain apps silently fail to complete file operations.

This especially impacts:

Lessons Learned:

Fix (for GNOME-based desktops):

sudo apt install xdg-desktop-portal xdg-desktop-portal-gtk

(For KDE users: use xdg-desktop-portal-kde instead.)