用ubuntu的时候提示报错,打开之后就一直提示服务未完全启

新手157010 113

{{ttag.title}}
用ubuntu的时候提示报错,打开之后就一直提示服务未完全启动:
然后重启也没用,好像缺少qt组件还是什么,这个怎么解决呢?

root@VM-0-10-ubuntu:~# dpkg -i /root/aTrustInstaller_amd64.deb
Selecting previously unselected package cn.com.sangfor.atrust.
(Reading database ... 180515 files and directories currently installed.)
Preparing to unpack .../root/aTrustInstaller_amd64.deb ...
all argv install 2.5.16.30 2.5.16.30
[2026-03-15 23:53:30] [Infor] first install, tray need not auto launch
[2026-03-15 23:53:30] [Infor] preinst start...
[2026-03-15 23:53:30] [Infor] current script path:/var/lib/dpkg/tmp.ci
Linux VM-0-10-ubuntu 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
[2026-03-15 23:53:30] [Infor] preinst end install init...
[2026-03-15 23:53:30] [Infor] preinst start system detect...
[2026-03-15 23:53:30] [Infor] preinst end system detect with type:ubuntu,version:...
[2026-03-15 23:53:30] [Infor]  export envs start...
[2026-03-15 23:53:30] [Infor]  get dispaly_id:  error..., will use :0 as default
[2026-03-15 23:53:30] [Error]  get user_uid:  error...
/var/lib/dpkg/tmp.ci/preinst: line 126: /.pam_environment: No such file or directory
[2026-03-15 23:53:30] [Infor] preinst start stop atrust process:uem_dialog...
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/share/sangfor/aTrust/resources/lib" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

[2026-03-15 23:53:30] [Infor] preinst end stop atrust process:uem_dialog...
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
/var/lib/dpkg/tmp.ci/preinst: line 271: /usr/share/sangfor/aTrust/resources/shell/aTrustTrayStart.sh: No such file or directory
[2026-03-15 23:53:30] [Infor] preinst start stop atrust process:aTrustTray...
[2026-03-15 23:53:30] [Infor] preinst end stop atrust process:aTrustTray...
[2026-03-15 23:53:30] [Infor] preinst start stop atrust process:aTrustAgent...
[2026-03-15 23:53:30] [Infor] preinst end stop atrust process:aTrustAgent...
/var/lib/dpkg/tmp.ci/preinst: line 235: [: : integer expression expected
[2026-03-15 23:53:30] [Infor] preinst start stop atrust service...
[2026-03-15 23:53:30] [Infor] preinst end stop atrust service...
[2026-03-15 23:53:30] [Infor] preinst start stop atrust iptables...
[2026-03-15 23:53:30] [Infor] preinst end stop atrust iptables-legacy:0...
[2026-03-15 23:53:30] [Infor] prerm end stop atrust iptables-legacy:0...
[2026-03-15 23:53:30] [Infor] preinst end stop atrust ip6tables-legacy:0...
[2026-03-15 23:53:30] [Infor] preinst end stop atrust ip6tables-legacy:0...
[2026-03-15 23:53:30] [Infor] preinst end...
Unpacking cn.com.sangfor.atrust (2.5.16.30) ...
Setting up cn.com.sangfor.atrust (2.5.16.30) ...
all argv configure 2.5.16.30
[2026-03-15 23:53:41] [Infor] postinst start...
[2026-03-15 23:53:41] [Infor] bash /var/lib/dpkg/info/cn.com.sangfor.atrust.create_dir >> /root/.aTrust/logs/aTrustInstallOut.log 2>&1
[2026-03-15 23:53:41] [Infor]  start setup sangfor cert...
[2026-03-15 23:53:41] [Infor]  end setup sangfor cert...
[2026-03-15 23:53:41] [Infor] postinst start system detect...
[2026-03-15 23:53:41] [Infor] postinst end system detect with type:ubuntu,version:22.04...
[2026-03-15 23:53:41] [Infor] libstdc++6 in system is 12.3.0-1ubuntu1~22.04.3, higher than 8.3, will delete lib in package.
[2026-03-15 23:53:41] [Infor] skip modify desktop
[2026-03-15 23:53:41] [Infor] postinst start get atrust installer name...
awk: 命令行:1: 警告: 正则表达式中的转义序列“\�”不是有效的操作符
[2026-03-15 23:53:41] [Infor] get cmdline:/root/aTrustInstaller_amd64.deb
[2026-03-15 23:53:41] [Infor] postinst end get atrust installer name:aTrustInstaller_amd64.deb...
[2026-03-15 23:53:41] [Infor] postinst start change authority...
[2026-03-15 23:53:41] [Infor] postinst end change authority...
[2026-03-15 23:53:41] [Infor] postinst start change uem authority...
[2026-03-15 23:53:41] [Infor] postinst end change uem authority...
[2026-03-15 23:53:41] [Infor] postinst start parse info...
ln: 无法创建符号链接 '/usr/share/applications/cn.com.sangfor.atrust.desktop' -> '': 没有那个文件或目录
cp: 对 '/tmp/aTrustInstaller_key.txt' 调用 stat 失败: 没有那个文件或目录
cp: 对 '/tmp/aTrustInstaller_key.txt' 调用 stat 失败: 没有那个文件或目录
[2026-03-15 23:53:41] [Infor] postinst end parse info...
awk: 致命错误: 无法打开文件“/home/ubuntu/.config/user-dirs.dirs”进行读取:没有那个文件或目录
[2026-03-15 23:53:41] [Infor] get ubuntu desktop path
cp: 在 '/usr/share/applications/cn.com.sangfor.atrust.desktop' 后缺少要操作的目标文件
请尝试执行 "cp --help" 来获取更多信息。
chown: 无法访问 '/cn.com.sangfor.atrust.desktop': 没有那个文件或目录
chmod: 无法访问 '/cn.com.sangfor.atrust.desktop': 没有那个文件或目录
[2026-03-15 23:53:41] [Error] chmod 755 /cn.com.sangfor.atrust.desktop failed
[2026-03-15 23:53:41] [Infor] cp /usr/share/applications/cn.com.sangfor.atrust.desktop to
awk: 致命错误: 无法打开文件“/home/ubuntu/.config/user-dirs.dirs”进行读取:没有那个文件或目录
[2026-03-15 23:53:41] [Infor] get ubuntu desktop path
cp: 在 '/usr/share/applications/cn.com.sangfor.atrust.desktop' 后缺少要操作的目标文件
请尝试执行 "cp --help" 来获取更多信息。
chown: 无法访问 '/cn.com.sangfor.atrust.desktop': 没有那个文件或目录
chmod: 无法访问 '/cn.com.sangfor.atrust.desktop': 没有那个文件或目录
[2026-03-15 23:53:41] [Error] chmod 755 /cn.com.sangfor.atrust.desktop failed
[2026-03-15 23:53:41] [Infor] cp /usr/share/applications/cn.com.sangfor.atrust.desktop to
[2026-03-15 23:53:41] [Infor] upgrade database config for dir: /usr/share/sangfor/.aTrust/database
[2026-03-15 23:53:41] [Infor] /usr/share/sangfor/aTrust/resources/bin/ConfigUpgrade -d /usr/share/sangfor/.aTrust/database
init log file `ConfigUpgrade.log` begin
log isn't inited.[ConfigUpgrade][getUserHomePath:375]pw_name:root,pw_dir:/root
/root
log dir:/root/.aTrust/logs log name:ConfigUpgrade.log
chmod -R 666 "/root/.aTrust/logs/ConfigUpgrade.log"
log debug file path:/usr/share/sangfor/.aTrust/debug
initLogName success
[I] <MMKV.cpp:165::initialize> version v1.2.13, page size 4096, arch x86_64
[I] <MMKV.cpp:207::initializeMMKV> root dir: /usr/share/sangfor/.aTrust/database/sdpEntity
[I] <MMKV.cpp:234::mmkvWithID> prepare to load aTrustSpaPersistence (id aTrustSpaPersistence) from rootPath /usr/share/sangfor/.aTrust/database/sdpEntity
[I] <MemoryFile.cpp:97:pen> open fd[0x6], /usr/share/sangfor/.aTrust/database/sdpEntity/aTrustSpaPersistence
[I] <MemoryFile.cpp:97:pen> open fd[0x8], /usr/share/sangfor/.aTrust/database/sdpEntity/aTrustSpaPersistence.crc
[I] <MMKV_IO.cpp:81::loadFromFile> loading [aTrustSpaPersistence] with 0 actual size, file size 4096, InterProcess 1, meta info version:0
[I] <MMKV_IO.cpp:130::loadFromFile> loaded [aTrustSpaPersistence] with 0 key-values
[I] <MMKV_IO.cpp:1051::clearAll> cleaning all key-values from [aTrustSpaPersistence]
[I] <MMKV_IO.cpp:1058::clearAll> nothing to clear for [aTrustSpaPersistence]
[I] <MMKV.cpp:207::initializeMMKV> root dir: /usr/share/sangfor/.aTrust/database
[I] <MMKV.cpp:234::mmkvWithID> prepare to load SdpcHistory (id SdpcHistory) from rootPath /usr/share/sangfor/.aTrust/database
[I] <MemoryFile.cpp:97:pen> open fd[0x9], /usr/share/sangfor/.aTrust/database/SdpcHistory
[I] <MemoryFile.cpp:97:pen> open fd[0xa], /usr/share/sangfor/.aTrust/database/SdpcHistory.crc
[I] <MMKV_IO.cpp:81::loadFromFile> loading [SdpcHistory] with 0 actual size, file size 4096, InterProcess 1, meta info version:0
[I] <MMKV_IO.cpp:130::loadFromFile> loaded [SdpcHistory] with 0 key-values
[2026-03-15 23:53:41] [Infor] upgrade database config done
[2026-03-15 23:53:41] [Infor] config dmidecode tool
/var/lib/dpkg/info/cn.com.sangfor.atrust.postinst: 第 212 行: [: : 需要整数表达式
[2026-03-15 23:53:41] [Infor] postinst start add atrust service...
[2026-03-15 23:53:42] [Infor] postinst end add atrust service...
[2026-03-15 23:53:42] [Infor] postinst end...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
root@VM-0-10-ubuntu:~#

解决该疑问,预计可以帮助到 17867 人!

回帖即可获得
2S豆
,被楼主采纳即奖励20S豆+10分钟内回帖奖励10S豆 [已过期] ,了解更多S豆奖励信息

完善手机号和公司名称,让服务更省心更便捷!立即完善

XiaoYang’ 发表于 2026-3-16 08:28
  
结合字眼来看是某文件丢失导致报错,这种有具体日志格式建议找400同事进行根因处理,会更快的解决问题和减少时间影响。希望能够帮助到你!
王老师 发表于 2026-3-17 14:47
  
根据安装日志中的错误信息,问题核心在于Qt平台插件加载失败及系统依赖缺失,同时伴随文件权限和路径配置异常。
王老师 发表于 2026-3-17 14:49
  
安装缺失的Qt依赖库
执行以下命令安装必要的Qt运行库和图形驱动:
bash
sudo apt-get update
sudo apt-get install -y libxcb-xinerama0 libxcb-cursor0 libxcb-util1 libxcb-keysyms1 libxcb-randr0 libegl1-mesa libgl1-mesa-dri libfontconfig1 libxrender1 libx11-xcb-dev
下一代防火墙 发表于 2026-3-19 18:34
  
必须Ubuntu图形化页面使用,atrust解决的是移动办公问题,不支持服务器场景安装客户端

等我来答:

换一批

发表新帖
热门标签
全部标签>
有一说一
每日一问
信服课堂视频
【 社区to talk】
标准化排查
纪元平台
新版本体验
功能体验
GIF动图学习
VPN 对接
2025年技术争霸赛
安装部署配置
解决方案
技术盲盒
每周精选
高手请过招
原创分享
SDP百科
社区新周刊
安全效果
产品连连看
畅聊IT
答题自测
专家问答
技术笔记
技术圆桌
在线直播
MVP
网络基础知识
升级
安全攻防
上网策略
测试报告
日志审计
问题分析处理
流量管理
每日一记
运维工具
用户认证
sangfor周刊
项目案例
SANGFOR资讯
专家分享
技术顾问
信服故事
功能咨询
终端接入
授权
设备维护
资源访问
地址转换
虚拟机
存储
迁移
排障笔记本
产品预警公告
玩转零信任
S豆商城资讯
技术争霸赛
「智能机器人」
追光者计划
2023技术争霸赛专题
卧龙计划
华北区拉练
天逸直播
以战代练
秒懂零信任
技术晨报
平台使用
山东区技术晨报
文档捉虫
齐鲁TV
华北区交付直播
2024年技术争霸赛
北京区每日一练
场景专题
故障笔记
排障那些事
西北区每日一问
升级&主动服务
高频问题集锦
POC测试案例
全能先锋系列
云化安全能力
专家说
热门活动
产品动态
行业实践
产品解析
关键解决方案
声音值千金
工具体验官
产品知识周周练
产品体验官

本版版主

4
8
0

发帖

粉丝

关注

696
19
38

发帖

粉丝

关注

本版达人