下载安装程序 链接: https://download.qt.io/archive/online_installers/, 选择对应版本, 下载.run文件
定位到.run文件所在目录:![.run安装程序所在目录](https://img-blog.csdnimg.cn/c68fbc95f25f407b8a28f9c75d957d66.png)
按顺序执行下列命令
chmod +x qt安装程序.run ./qt安装程序.run
sudo apt-get install build-essential
sudo apt-get install libfontconfig1
sudo apt-get install mesa-common-dev
sudo apt-get install libglu1-mesa-dev -y
尝试运行安装程序: ![运行.run文件](https://img-blog.csdnimg.cn/616f9a21139b4401bfcced106291031f.png)
结果出现上述报错, 执行以下命令:
sudo apt install --reinstall libxcb-xinerama0
完成后, 再次运行.run文件, 可以看到安装程序界面: