Este meu script:
apt-get purge qt5-default -y
apt-get purge qt5-qmake -y
apt-get purge qtbase5-dev-tools -y
apt-get purge qttools5-dev-tools -y
apt-get install qt5-default -y
apt-get install qt5-qmake -y
apt-get install qtbase5-dev-tools -y
apt-get install qttools5-dev-tools -y