At first, I'm trying to install Qt with apt-get install qtchooser libgl-dev qt5-default qttools5-dev-tools python3.6 qtwebengine5-dev
.
However, this install a Qt version of 5.9.
And I have tried to install Qt by using
sudo wget http://download.qt.io/official_releases/qt/5.13/5.13.1/qt-opensource-linux-x64-5.13.1.run;
sudo chmod +x ./qt-opensource-linux-x64-5.13.1.run;
sudo ./qt-opensource-linux-x64-5.13.1.run;
And this gave another error:
QStandardPaths: wrong ownership on runtime directory /run/user/2000, 2000 instead of 0
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display
What is the proper solution to install Qt 5.13 on travis-ci linux?
Based on two people's answer(thank you very much), I have update my .travis.yml
like this:
addons:
apt:
sources:
- sourceline: 'ppa:beineri/opt-qt-5.13.2-bionic'
packages:
- qt513base
- qt513tools
- qt513webengine
- qt513x11extras
- qt513translations
- qt513scxml
- qt513script
However, another error appear:
ome packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
qt513webengine:i386 : Depends: qt513base:i386 but it is not going to be installed
Depends: qt513declarative:i386 but it is not going to be installed
Depends: qt513location:i386 but it is not going to be installed
Depends: qt513quickcontrols2:i386 but it is not going to be installed
Depends: qt513webchannel:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
How to solve that?