Ubuntu启动后第一次需要很久才能启动GTK应用问题

Ubuntu启动后第一次需要很久才能启动GTK应用问题

自从升级了 Ubuntu 之后,设备重启,发现打开 Terminal 、Nautilus 以及其他的GTK 应用都很慢,需要至少一分钟的时间启动。

刚开始也是拿着 journalctl 的异常日志去寻找答案,但是没有发现有效的解决办法。

于是自己通过使用 journalctl 找问题,发现应用的启动都会等待下面这个超时完之后才启动,这也不是 ERROR 或者 WARN 类型的日志。

log 复制代码
10月 01 11:07:00 hhoa-Legion-Y7000-2019-PG0 systemd[3027]: xdg-desktop-portal.service: start operation timed out. Terminating.
10月 01 11:07:00 hhoa-Legion-Y7000-2019-PG0 systemd[3027]: xdg-desktop-portal.service: Failed with result 'timeout'.
10月 01 11:07:00 hhoa-Legion-Y7000-2019-PG0 systemd[3027]: Failed to start xdg-desktop-portal.service - Portal service.

拿着上面的日志,通过 google 去查找,确实发现了原因和解决办法。

问题应该和 xdg-desktop-portal-gnome 这个软件包升级有关,但是具体升级了什么就不知道了,也不去深究了。

可以通过删除 xdg-desktop-portal-gnome 软件包 或者 安装 dbus-broker 软件包解决。

相关问题可以查看 https://github.com/flatpak/xdg-desktop-portal/issues/1024、https://github.com/linuxmint/cinnamon/issues/11857

自从升级了 Ubuntu 之后,设备重启,发现打开 Terminal 、Nautilus 以及其他的GTK 应用都很慢,需要至少一分钟的时间启动。

刚开始也是拿着 journalctl 的异常日志去寻找答案,但是没有发现有效的解决办法。

于是自己通过使用 journalctl 找问题,发现应用的启动都会等待下面这个超时完之后才启动,这也不是 ERROR 或者 WARN 类型的日志。

log 复制代码
10月 01 11:07:00 hhoa-Legion-Y7000-2019-PG0 systemd[3027]: xdg-desktop-portal.service: start operation timed out. Terminating.
10月 01 11:07:00 hhoa-Legion-Y7000-2019-PG0 systemd[3027]: xdg-desktop-portal.service: Failed with result 'timeout'.
10月 01 11:07:00 hhoa-Legion-Y7000-2019-PG0 systemd[3027]: Failed to start xdg-desktop-portal.service - Portal service.

拿着上面的日志,通过 google 去查找,确实发现了原因和解决办法。

问题应该和 xdg-desktop-portal-gnome 这个软件包升级有关,但是具体升级了什么就不知道了,也不去深究了。

可以通过删除 xdg-desktop-portal-gnome 软件包 或者 安装 dbus-broker 软件包解决。

参考:

  1. https://github.com/flatpak/xdg-desktop-portal/issues/1024
  2. https://github.com/linuxmint/cinnamon/issues/11857
相关推荐
Johny_Zhao2 小时前
Docker + CentOS 部署 Zookeeper 集群 + Kubernetes Operator 自动化运维方案
linux·网络安全·docker·信息安全·zookeeper·kubernetes·云计算·系统运维
小毛驴8502 小时前
Linux 后台启动java jar 程序 nohup java -jar
java·linux·jar
一心0923 小时前
ubuntu 20.04.6 sudo 源码包在线升级到1.9.17p1
运维·ubuntu·sudo·漏洞升级
好好学习啊天天向上3 小时前
世上最全:ubuntu 上及天河超算上源码编译llvm遇到的坑,cmake,ninja完整过程
linux·运维·ubuntu·自动性能优化
你想考研啊4 小时前
三、jenkins使用tomcat部署项目
运维·tomcat·jenkins
tan180°4 小时前
MySQL表的操作(3)
linux·数据库·c++·vscode·后端·mysql
代码老y4 小时前
Docker:容器化技术的基石与实践指南
运维·docker·容器
典学长编程5 小时前
Linux操作系统从入门到精通!第二天(命令行)
linux·运维·chrome
wuk9985 小时前
基于MATLAB编制的锂离子电池伪二维模型
linux·windows·github
你想考研啊7 小时前
四、jenkins自动构建和设置邮箱
运维·jenkins