See 2026 UPDATE.

I wish I didn’t have to use this abomination of a software from MicroSlop, but I have to. After spending countless hours (and even more in 2026) I had to document this, at least for my own sake.

Common misconceptions

General steps

  1. Create and install a dummy openjdk-11-jre package (see 2026 UPDATE).
  2. sudo apt install msopenjdk-11 (comes from MicroSlop’s repository, which you added at the previous step).
  3. Symlink openjdk-11-jdk to msopenjdk-11:
    ln -s \
      /usr/lib/jvm/msopenjdk-11-amd64 \
      /usr/lib/jvm/java-11-openjdk-amd64
    
  4. update-alternatives --config java and select the one that points to msopenjdk-11.
  5. Follow Ubuntu 22.04 instructions to install Intune.
  6. Finally run intune-portal.

Troubleshooting

Keyring Troubleshooting

This chapter is also 2026 updated.

To be totally safe, we will create a new keyring setup. You will have to figure out yourself how to merge it later with the old one, or check if someone already commented on it.

  1. Install seahorse (unless already installed):
    sudo apt install seahorse
    
  2. Move your old keyring setup somewhere else, e.g. rename it to keyrings~:
    mv -v ~/.local/share/keyrings{,~}
    
  3. Restart gnome-keyring-daemon (this will also recreate the keyring directory in ~/.local/share/keyrings):
    systemctl --user restart gnome-keyring-daemon.service
    
  4. Re-login, to avoid any running application to try access a not-yet-ready keyring.

  5. Start seahorse. In the UI click the plus button “+”, then select “Password keyring”, name it “Default”, optionally set the password (previously blank password was fine but I’m 100% sure anymore, check if someone already commented on it), finally click “Create”. Right click the “Default” keyring in the side bar and select “Set as default”.

  6. Now start intune-portal and try to enroll again.

2026 UPDATE

Pretty much the old guide still applies with one correction: intune-portal now has a hard dependency on openjdk-11-jre package. Workaround is to create a dummy package:

  1. Install equivs:
    sudo apt install equivs
    
  2. Create package description template:
    mkdir dummy-openjdk-11-jre
    cd dummy-openjdk-11-jre
    equivs-control openjdk-11-jre
    
  3. Edit openjdk-11-jre file and replace all the content with following:
    Package: openjdk-11-jre
    Version: 11.999
    Provides: openjdk-11-jre
    
  4. Create a .deb package:
    equivs-build openjdk-11-jre
    
  5. Install the newly created package:
    sudo dpkg -i ./openjdk-11-jre_11.999_all.deb
    

Now you can install intune-portal normally.