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
相关推荐
理智的煎蛋1 小时前
MySQL高可用架构:MHA
linux·数据库·mysql·架构·可用性测试
zz-zjx2 小时前
进程与线程详解, IPC通信与RPC通信对比,Linux前台与后台作业
linux·网络协议·rpc
大筒木老辈子3 小时前
Linux笔记---计算机网络概述
linux·笔记·计算机网络
小白考证进阶中3 小时前
终于赶在考试券过期前把Oracle OCP证书考下来了!
运维·数据库·oracle·dba·开闭原则·数据库管理员
keep__go4 小时前
postgresql9.2.4 跨版本升级14.6
linux·运维·数据库·postgresql
Doris_LMS4 小时前
Git的强软硬回退(三)
运维·服务器·数据库·git·idea
深思慎考4 小时前
LinuxC++项目开发日志——高并发内存池(1-定长内存池)
linux·c++
(Charon)4 小时前
基于 epoll 的高并发服务器原理与实现(对比 select 和 poll)
运维·服务器
Jtti5 小时前
在 Debian 系统上清理缓存的方式和具体操作方法
运维·缓存·debian
伐尘5 小时前
【mac】如何在 macOS 终端中高效查找文件:五种实用方法
运维·macos