---
title: "Fix \"Failed to load module xapp-gtk3-module\" on Ubuntu"
description: "Fix the \"Failed to load module xapp-gtk3-module\" message on Ubuntu 22.04, 24.04 or 26.04: install the right XApp package or stop the session asking."
url: https://devicetests.com/fix-failed-to-load-module-xapp-gtk3-module-error-ubuntu-2004
language: en
---

# How To Fix "Failed to load module xapp-gtk3-module" Error in Ubuntu 20.04

By Brent Cohen · Updated November 4, 2026 · First published July 22, 2023

Short answer

The message means a GTK3 app was told to load Linux Mint’s XApp module, but the module isn’t installed. It’s only a warning: the app still works. To silence it, install the package that holds the module, or stop your session from asking for it.

The module is loaded through the `GTK3_MODULES` setting, which a login script sets when XApp or Cinnamon packages are, or were, installed. If the module itself is missing, GTK3 apps started from a terminal print this message.

## Fix 1: Install the module

The package name depends on your Ubuntu version.

### Ubuntu 22.04

```
sudo apt update
sudo apt install xapp
```

Already installed? Reinstall it:

```
sudo apt install --reinstall xapp libxapp1 gir1.2-xapp-1.0 xapps-common
```

### Ubuntu 24.04 or 26.04

There is no `xapp` package here. The module is in `libxapp-gtk3-module`:

```
sudo apt update
sudo apt install libxapp-gtk3-module
```

Already installed? Reinstall it:

```
sudo apt install --reinstall libxapp-gtk3-module libxapp1 gir1.2-xapp-1.0 xapps-common
```

Close and reopen the app. The message should be gone.

> On Ubuntu 20.04
>
> Ubuntu 20.04’s own XApp has no GTK3 module, so `sudo apt install xapp` fails there. The message only appears if Mint or Cinnamon packages came from another source. Use Fix 2. 20.04 is past standard support, so upgrading is the better long-term fix.

## Fix 2: Stop the session asking for it

Use this if you don’t use Cinnamon or Mint apps.

1. See what asks for the module:

   ```
   echo "$GTK3_MODULES $GTK_MODULES"
   grep -rs xapp /etc/X11/Xsession.d/ ~/.profile ~/.xsessionrc ~/.bashrc
   ```

2. Test the fix in the current terminal, then start the app from the same terminal:

   ```
   unset GTK_MODULES GTK3_MODULES
   ```

3. If the message is gone, remove `xapp-gtk3-module` where step 1 found it.

On Ubuntu 24.04 and 26.04, the login script is `/etc/X11/Xsession.d/80xapp-gtk3-module`. It stays behind when you remove the package without purging it. Purge the package to delete it, then log out and back in:

```
sudo apt purge libxapp-gtk3-module
```

## Fix 3: Ignore it

The message doesn’t stop the app. If everything works, you can leave it.

## Questions people ask

**Can I ignore the "Failed to load module 'xapp-gtk3-module'" message?**

Yes. It’s a message, not an error. The app runs without the module and only misses a few small XApp features.

## Sources

- [Linux Mint: XApp source and changelog (GTK3_MODULES since 2.0.6)](https://github.com/linuxmint/xapp)
- [Ubuntu packages: xapp on 22.04 (contains the module)](https://packages.ubuntu.com/jammy/amd64/xapp/filelist)
- [Ubuntu packages: libxapp-gtk3-module on 24.04](https://packages.ubuntu.com/noble/amd64/libxapp-gtk3-module/filelist)
- [Launchpad: xapp in Ubuntu (20.04 has no GTK3 module; 26.04 versions)](https://launchpad.net/ubuntu/+source/xapp)
- [GTK 3: Running GTK applications (GTK_MODULES, GTK3_MODULES)](https://docs.gtk.org/gtk3/running.html)

## Test it yourself

Check your own device with a free test. It runs in your web browser.

- [My device](https://devicetests.com/my-device): See your system, browser, screen, graphics and memory in plain words, and copy them as one report.
- [Printer test page](https://devicetests.com/printer-test-page): Print a colour, black and white, grey or alignment page, or save it as a PDF, and read what it shows.
- [GPU test](https://devicetests.com/gpu-test): See which graphics chip your browser uses, what it supports, and how fast it draws.
