How to Install Qt4 on Ubuntu 22.04 – Step-by-step

February 27, 2022 | By the+gnu+linux+evangelist.

GNU/Linux Ubuntu 22.04 Installing Qt4 – QuickStart Guide

Hi! The Tutorial shows you Step-by-Step How to Install Qt4 in Ubuntu 22.04 Jammy LTS GNU/Linux Desktop.

And Qt4 for Ubuntu Jammy is not any more supported from the Canonical Apt Repositories.

So this guide includes detailed instructions about to Add Qt4 PPA Repository for Ubuntu 22.04.

Finally, this Setup is Valid for All the Ubuntu-Based Distros like:

  • Linux Mint
  • Zorin OS
  • Lubuntu
  • Elementary OS
  • Kde Neon
  • Pop_OS!
  • Xubuntu
  • Linux Lite
  • Bodhi
  • Puppy
  • Kubuntu
  • LXLE
  • Trisquel
  • Voyager
  • feren OS
  • Peppermint
  • Linux Ultimate Edition
  • (You may just need to Discover what’s the Parent Release)
Qt4 Installation in Ubuntu 22.04 Guide - Featured
  1. 1. Accessing Shell

    Open a Terminal window
    Ctrl+Alt+t on Desktop
    (Press “Enter” to Execute Commands)

    Qt4 Installation in Ubuntu 22.04 Guide - Open Terminal Shell Emulator
    In case first see: Terminal QuickStart Guide.
  2. 2. Enabling Qt4 Repository

    Add Qt4 PPA Repository for Ubuntu GNU/Linux

    Enabling Qt4 Repo for Ubuntu
  3. 3. Installing Qt4

    Then to Install Qt4 in Ubuntu
    Simply run:

    sudo apt install qt4-default
    Authenticate with the User’s Admin Pass.
    If Got “User is Not in Sudoers file” then see: How to Enable sudo.
    Next to make it fixed and so integrate it definitely into the System:
    sudo apt-mark manual qt4-default qt4-qmake qtcore4-l10n libllvm9 libmng2 libodbc1 libqt4-dbus libqt4-declarative libqt4-designer libqt4-dev libqt4-dev-bin libqt4-help libqt4-network libqt4-opengl libqt4-opengl-dev libqt4-qt3support libqt4-script libqt4-scripttools libqt4-sql libqt4-sql-odbc libqt4-svg libqt4-test libqt4-xml libqt4-xmlpatterns libqtdbus4 libqtgui4 qdbus qt4-linguist-tools
  4. 4. Reinstalling Qt5

    Now you have to Reinstall Qt5
    This because the default Ubuntu setup suppose only one version is enough:

    sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
    Again to reset Qt5 Qmake as Default:
    sudo update-alternatives --install "/usr/bin/qmake" "qmake" "/usr/lib/x86_64-linux-gnu/qt5/bin/qmake" 40
  5. 5. Testing Qt4

    Finally, to Test Qt4 Setup
    On Command Line play:

    qmake-qt4 -v
  6. So Now I’m truly Happy if My Guide could Help you to Install Qt4 on Ubuntu 22.04 Jammy!


QuickChic Theme • Powered by WordPress