Unable to install any Qt 5.15.2 for Linux (Ubuntu 20.04.4 LTS)
-
Hello. I'm relatively new to Linux and Qt. Was trying to install Qt 5.15.2 on Linux using open source online installer: "qt-unified-linux-x64-4.4.1-online.run"
At first I was installing Qt Creator only and all was ok. But when I try to install such component as "Qt -> Qt 5.15.2 -> Desktop gcc 64-bit" the installation always fails. Installer just stops responding on the same spot.I was waiting all night, and nothing happened.
Last entry in "InstallationLog.txt" is:"Installation preconditions ok, installation can proceed!" [ "success" ]
Working on Ubuntu 20.04.4 hosted by VirtualBox on Windows 10
I've already tried:sudo apt-get update sudo apt-get install build-essential sudo apt-get install gcc (was already installed) sudo apt-get install g++ (was already installed) sudo apt-get install libgl1-mesa-dev sudo apt-get install libx11-doc sudo apt-get install libxcb-doc ldd --version (says I got ldd (Ubuntu GLIBC 2.31-0ubuntu9.2) 2.31)
I even tried to install Qt 5.12.5 instead, just to check, but the problem was the same.
Maybe there are other ways to install Qt 5.15.2 on my Linux to work with projects?
-
Is this a virtual machine? Then you might have configured only one CPU for it, which causes the installer to stall. See also https://forum.qt.io/topic/139349/installation-not-responding-at-98-in-virtualbox-ubuntu-qt6/4 and other bug reports...
-
@Alx_Sit
Before you go any further with custom/download installation of Qt5 under Ubuntu 20.04. Are you aware that Ubuntu 20.04 has complete Qt version 5.12.8 in its repo ready for your to fetch? If you are not fussed about having version 5.15.x and are happy with the provided one (which is all I use) you can fetch it all viaapt-get
without all the hassle of the Qt install/download. I think all you have to do issudo apt-get install qt5-default
. There is also a Qt Creator package I think. If you type as far asapt-get install qt5
and then press the Tab key twice you will see a list of packages which match. -
@JonB
Hi. Thank you for solution.
But I'm aware that Qt v.5.12.8 will not do, in my case.
But, since I can't install any Qt with maintenance tool from online installer... Maybe installing at least one Qt via command line will help me install other ones with maintenance tool.
What do you think? -
@Alx_Sit
No, don't try to mix the two. If you need > 5.12.x you need the online installer one. You should try a mirror for the download if this one is failing, search this forum formirror
, somewhere there is a link to available sites. I think somebody posted a mention of that link in a post yesterday, but I can't locate it.... -
@JonB
So I need to find URL of mirrors and use one of them as --mirror argumentto install Qt.5.15.2, right?
I need to use mirror only for Qt 5.15.2 installation with MaintenanceTool, or better purge all qt related stuff and use it with online installer to install everything from there? -
Is this a virtual machine? Then you might have configured only one CPU for it, which causes the installer to stall. See also https://forum.qt.io/topic/139349/installation-not-responding-at-98-in-virtualbox-ubuntu-qt6/4 and other bug reports...
1/8