During previous Ubuntu releases, one could easily install Qt 5 by using:
sudo apt install qt5-default
qt5-default
package is no longer included with Ubuntu 21.04.
How can I install the Qt 5 development package on Ubuntu 21.04?
Visit Qt downloads page an download a 32-bit or 64-bit Linux installation depending your version of Ubuntu. The installation file can be also downloaded through the command line using wget. This is valid until 5.14. 2 due to policy change, distributing Open Source Qt linux package is discontinue from 5.15.
Download the Qt installer from its official download site at https://www.qt.io/download-qt-installer. The site should detect that your computer is running linux and recommend "Qt Online Installer for linux". Click the green "Download" button to download the installer.
Select Tools > Options > Build & Run > Qt Versions > Add. Select the qmake executable for the Qt version that you want to add. Select the Qt version to view and edit it. In the Version name field, edit the name that Qt Creator suggests for the Qt version. In the qmake location field, you can change the qmake location.
The library files are usually in /usr/include/qt4 .
Open a terminal. Type the following command and hit Enter: sudo apt-get install qt5-default Qt 5.x will be installed. Visit Qt downloads page an download a 32-bit or 64-bit Linux installation depending your version of Ubuntu. The installation file can be also downloaded through the command line using wget.
Packages can be installed without the qt5-default dependency with: This will install the package. The solution is not perfect. apt knows the missing dependency and it will remove the package if you do an upgrade, for example. sudo apt -f install will remove the package. But this is ok if you just want to try the application.
qt5-default is removed from Ubuntu 21.04#194 Closed mahdi-lnopened this issue Jun 17, 2021· 0 comments Closed qt5-default is removed from Ubuntu 21.04#194
To start the installation process, you must open up a terminal window. To open up a terminal window on the Ubuntu Linux desktop, press Ctrl + Alt + T on the keyboard. Alternatively, search for “Terminal” in the app menu and open it up that way. Once the terminal window is open on the Ubuntu desktop, the installation can begin.
qt5-default package is missed in ubuntu 21.04 repository, so you should just install all base packages by yourself by running command below
sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With