使用官方 .run 安装程序通过 ssh 连接使用 xvfb-run 安装 headless 时,安装 qt5 会挂起

使用官方 .run 安装程序通过 ssh 连接使用 xvfb-run 安装 headless 时,安装 qt5 会挂起

我在尝试安装 QT 时遇到问题。我按照以下说明进行操作http://splash.readthedocs.io/en/latest/install.html我从他们的源代码provision.sh使用这些命令尝试通过 qt 网站上提供的离线安装程序安装 QT5

curl -L -o /downloads/qt-installer.run \
               http://download.qt.io/official_releases/qt/5.9/5.9.1/qt-opensource-linux-x64-5.9.1.run && \
    chmod +x /downloads/qt-installer.run && \
    xvfb-run /downloads/qt-installer.run

由于我尝试通过远程计算机进行安装,我必须使用 xvfb-run 来尝试无头安装它,但是当我运行xvfb-run /downloads/qt-installer.run我的命令行时,它会在一些提示之后挂起,我不知道它们是什么意思,经过几个小时的谷歌搜索,我似乎无法弄清楚我应该做什么或者我做错了什么。

它的输出如下:

xvfb-run /downloads/qt-installer.run
Fontconfig warning: ignoring UTF-8: not a valid region tag
[106] Warning: Unsupported screen format: depth: 8, red_mask: 0, blue_mask: 0
[115] Warning: QPainter::begin: Paint device returned engine == 0, type: 3
[115] Warning: QPainter::setCompositionMode: Painter not active
[115] Warning: QWidget::paintEngine: Should no longer be called
[115] Warning: QPainter::begin: Paint device returned engine == 0, type: 1
[115] Warning: QPainter::deviceTransform: Painter not active
[115] Warning: QPainter::worldTransform: Painter not active
[115] Warning: QPainter::pen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QWidget::paintEngine: Should no longer be called
[115] Warning: QPainter::begin: Paint device returned engine == 0, type: 1
[115] Warning: QWidget::paintEngine: Should no longer be called
[115] Warning: QPainter::begin: Paint device returned engine == 0, type: 1
[115] Warning: QPainter::save: Painter not active
[115] Warning: QPainter::translate: Painter not active
[115] Warning: QPainter::setClipRect: Painter not active
[115] Warning: QPainter::save: Painter not active
[115] Warning: QPainter::pen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::pen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::pen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::pen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::pen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::pen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::pen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::restore: Unbalanced save/restore
[115] Warning: QPainter::restore: Unbalanced save/restore
[115] Warning: QWidget::paintEngine: Should no longer be called
[115] Warning: QPainter::begin: Paint device returned engine == 0, type: 1
[115] Warning: QPainter::save: Painter not active
[115] Warning: QPainter::translate: Painter not active
[115] Warning: QPainter::setClipRect: Painter not active
[115] Warning: QPainter::save: Painter not active
[115] Warning: QPainter::pen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::pen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::pen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::pen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::pen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[115] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::restore: Unbalanced save/restore
[116] Warning: QPainter::restore: Unbalanced save/restore
[116] Warning: QWidget::paintEngine: Should no longer be called
[116] Warning: QPainter::begin: Paint device returned engine == 0, type: 1
[116] Warning: QPainter::save: Painter not active
[116] Warning: QPainter::translate: Painter not active
[116] Warning: QPainter::setClipRect: Painter not active
[116] Warning: QPainter::save: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::pen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::setPen: Painter not active
[116] Warning: QPainter::restore: Unbalanced save/restore
[116] Warning: QPainter::restore: Unbalanced save/restore
[116] Warning: QWidget::paintEngine: Should no longer be called
[116] Warning: QPainter::begin: Paint device returned engine == 0, type: 1
[116] Warning: QPainter::deviceTransform: Painter not active
[116] Warning: QPainter::worldTransform: Painter not active
[117] Warning: QPainter::pen: Painter not active
[117] Warning: QPainter::setPen: Painter not active
[117] Warning: QPainter::setPen: Painter not active
[117] Warning: QWidget::paintEngine: Should no longer be called
[117] Warning: QPainter::begin: Paint device returned engine == 0, type: 1
[117] Warning: QPainter::setPen: Painter not active
[117] Warning: QPainter::setPen: Painter not active
[117] Warning: QPainter::drawPoints: Painter not active
[117] Warning: QWidget::paintEngine: Should no longer be called
[117] Warning: QPainter::begin: Paint device returned engine == 0, type: 1
[117] Warning: QWidget::paintEngine: Should no longer be called
[117] Warning: QPainter::begin: Paint device returned engine == 0, type: 1
[117] Warning: QPainter::setPen: Painter not active
[117] Warning: QPainter::setPen: Painter not active
[117] Warning: QPainter::drawPoints: Painter not active
[117] Warning: QWidget::paintEngine: Should no longer be called
[117] Warning: QPainter::begin: Paint device returned engine == 0, type: 1
[117] Warning: QPainter::pen: Painter not active
[117] Warning: QPainter::setPen: Painter not active
[117] Warning: QPainter::setPen: Painter not active
[117] Warning: QWidget::paintEngine: Should no longer be called
[117] Warning: QPainter::begin: Paint device returned engine == 0, type: 1
[117] Warning: QPainter::pen: Painter not active
[117] Warning: QPainter::setPen: Painter not active
[117] Warning: QPainter::setPen: Painter not active
[117] Warning: QWidget::paintEngine: Should no longer be called
[117] Warning: QPainter::begin: Paint device returned engine == 0, type: 1
[117] Warning: QWidget::paintEngine: Should no longer be called
[117] Warning: QPainter::begin: Paint device returned engine == 0, type: 1
[117] Warning: QPainter::save: Painter not active
[117] Warning: QPainter::restore: Unbalanced save/restore

任何帮助将非常感激

答案1

尝试使用传入的脚本文件运行它,如下所示: https://stackoverflow.com/questions/25105269/silent-install-qt-run-installer-on-ubuntu-server

我能够使用类似的命令在 docker 镜像中安装 qt。

xvfb-run /downloads/qt-installer.run --script qt-install-noninteractive.qs

相关内容