Microsoft Intune on Ubuntu 24.04 LTS

Nov 25, 2024

As we can see in the official installation guide, as of today 25/11/2024, the Microsoft Intune app is not available for Ubuntu 24.04 (noble).

We can verify this by searching for intune-platform in the package list of microsoft repository for Ubuntu 22.04 and 24.04:

As of today, you will find it only in the first one.

Follow the official installation guide for Ubuntu 22.04, then come back here.

Hey! Nice to see you again :)

Install intune-portal

# ignore recommendations, i.e. microsoft edge
sudo apt install intune-portal --no-install-recommends

This will fail due to two dependencies that are not present on noble:

On noble only the updated versions are present:

Change the file /etc/apt/sources.list.d/ubuntu.sources by adding the following lines:

## The following are only required because of intune-portal (not packaged for noble)
## libjavascriptcoregtk-4.0-18 libwebkit2gtk-4.0-37

Types: deb
URIs: http://archive.ubuntu.com/ubuntu
Suites: jammy jammy-updates
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

## Ubuntu security updates. Aside from URIs and Suites,
## this should mirror your choices in the previous section.
Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: jammy-security
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

This will add jammy repositories.

WARNING: mixing repositories from different distributions it is usually not a good idea and must be done carefully. Use jammy repositories only in this case and do not install other packages from it. When you install new packages check carefully what apt will do in advance.

sudo apt update
sudo apt install intune-portal --no-install-recommends

Try to start Intune:

intune-portal

The app should start, but this does not mean that it would work correctly. Try to follow this tutorial.

Keep an eye on systemd journal for error logs:

journalctl -xe

If everything goes well, great! Otherwise go on.

Install Java 11 JRE

As suggested in this tutorial, we have to install openjdk-11-jre. If this is the case, you should see some relevant errors in systemd journal logs.

sudo apt install openjdk-11-jre

Log out, log in and try to run the app again.

If everything goes well, great! Otherwise go on.

gnome-keyring

In systemd journal logs you may read some errors related to a missing default keyring. This is especially likely if, like me, you are not using Gnome as desktop environment (I use KDE).

As we can see, intune-portal depends on gnome-keyring.

apt depends intune-portal

To manage Gnome keyrings, install seahorse.

sudo apt install seahorse

seahorse

Create a password keyring, then right-click it and “Set as default”. This is the keyring that will be used by Intune.

As last step, pray for it to be working and try again to complete the device enrollment.