1

I am trying to update Qt from 5.5.1 to 5.7 or higher.

I tried sudo apt-get install qt-default qtdeclarative5-dev gives me following output on console:

qtdeclarative5-dev is already the newest version (5.5.1-2ubuntu6).

qt5-default is already the newest version (5.5.1+dfsg-16ubuntu7.6).

How can I update Qt to 5.7 or higher version?

Community
  • 1
  • 1
Deep
  • 616
  • 1
  • 9
  • 17

2 Answers2

2

Ubuntu packages in standard repository are always outdated. I suggest you install Qt from .run file they provide .

But you can possibly run into problems, as i did, using Qt + CMake without Qt Creator

0

I followed this post and was able to update Qt to 5.11 using PPA following commands:

sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial
sudo apt update
sudo apt install qt511-meta-full

For system wide usage, create default.conf file at /etc/xdg/qtchooser with following content:

/opt/qt511/bin
/opt/qt511/lib

That's it, it should be updated by now. qmake -v outputs the current Qt and qmake version

Deep
  • 616
  • 1
  • 9
  • 17
  • I got a reply: Updating from such a repository can't be done securely, and is therefore disabled by default. – ivan866 Jan 19 '20 at 10:42