You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 22.04运行vessel sources报错求助:Gtk及Fontconfig错误

Ubuntu 22.04下执行vessel sources时Gtk模块与Fontconfig配置错误的修复方案

问题描述

在Ubuntu 22.04系统中执行包管理器vessel的命令vessel sources时,出现Gtk模块加载失败及Fontconfig配置文件报错,尝试安装相关包后问题仍未解决,需修复上述错误。

错误信息

Gtk-Message: 加载模块 "gail" 失败
Gtk-Message: 加载模块 "atk-bridge" 失败
Gtk-Message: 加载模块 "canberra-gtk-module" 失败
Fontconfig警告: "/etc/fonts/conf.d/10-hinting-slight.conf", 第4行: 未知元素 "its:rules"
Fontconfig警告: "/etc/fonts/conf.d/10-hinting-slight.conf", 第5行: 未知元素 "its:translateRule"
Fontconfig错误: "/etc/fonts/conf.d/10-hinting-slight.conf", 第5行: 无效属性 'translate'
Fontconfig错误: "/etc/fonts/conf.d/10-hinting-slight.conf", 第5行: 无效属性 'selector'
Fontconfig错误: "/etc/fonts/conf.d/10-hinting-slight.conf", 第6行: 无效属性 'xmlns:its'
Fontconfig错误: "/etc/fonts/conf.d/10-hinting-slight.conf", 第6行: 无效属性 'version'
Fontconfig警告: "/etc/fonts/conf.d/10-hinting-slight.conf", 第8行: 未知元素 "description"
Fontconfig警告: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", 第4行: 未知元素 "its:rules"
Fontconfig警告: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", 第5行: 未知元素 "its:translateRule"
Fontconfig错误: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", 第5行: 无效属性 'translate'
Fontconfig错误: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", 第5行: 无效属性 'selector'
Fontconfig错误: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", 第6行: 无效属性 'xmlns:its'
Fontconfig错误: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", 第6行: 无效属性 'version'
Fontconfig警告: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", 第8行: 未知元素 "description"
Fontconfig警告: "/etc/fonts/conf.d/11-lcdfilter-default.conf", 第4行: 未知元素 "its:rules"
Fontconfig警告: "/etc/fonts/conf.d/11-lcdfilter-default.conf", 第5行: 未知元素 "its:translateRule"
Fontconfig错误: "/etc/fonts/conf.d/11-lcdfilter-default.conf", 第5行: 无效属性 'translate'
Fontconfig错误: "/etc/fonts/conf.d/11-lcdfilter-default.conf", 第5行: 无效属性 'selector'
Fontconfig错误: "/etc/fonts/conf.d/11-lcdfilter-default.conf", 第6行: 无效属性 'xmlns:its'
Fontconfig错误: "/etc/fonts/conf.d/11-lcdfilter-default.conf", 第6行: 无效属性 'version'
Fontconfig警告: "/etc/fonts/conf.d/11-lcdfilter-default.conf", 第8行: 未知元素 "description"
Fontconfig警告: "/etc/fonts/conf.d/20-unhint-small-vera.conf", 第4行: 未知元素 "its:rules"
Fontconfig警告: "/etc/fonts/conf.d/20-unhint-small-vera.conf", 第5行: 未知元素 "its:translateRule"
Fontconfig错误: "/etc/fonts/conf.d/20-unhint-small-vera.conf", 第5行: 无效属性 'translate'
Fontconfig错误: "/etc/fonts/conf.d/20-unhint-small-vera.conf", 第5行: 无效属性 'selector'
Fontconfig错误: "/etc/fonts/conf.d/20-unhint-small-vera.conf", 第6行: 无效属性 'xmlns:its'
Fontconfig错误: "/etc/fonts/conf.d/20-unhint-small-vera.conf", 第6行: 无效属性 'version'
Fontconfig警告: "/etc/fonts/conf.d/20-unhint-small-vera.conf", 第8行: 未知元素 "description"
Fontconfig警告: "/etc/fonts/conf.d/30-metric-aliases.conf", 第4行: 未知元素 "its:rules"
Fontconfig警告: "/etc/fonts/conf.d/30-metric-aliases.conf", 第5行: 未知元素 "its:translateRule"
Fontconfig错误: "/etc/fonts/conf.d/30-metric-aliases.conf", 第5行: 无效属性 'translate'
Fontconfig错误: "/etc/fonts/conf.d/30-metric-aliases.conf", 第5行: 无效属性 'selector'

修复方案

1. 修复Gtk模块加载失败问题

错误提示的三个Gtk模块对应以下软件包,执行命令安装即可:

sudo apt update && sudo apt install libgail-common libatk-bridge2.0-0 libcanberra-gtk-module libcanberra-gtk3-module

2. 修复Fontconfig配置文件错误

这些错误是由于配置文件中包含了当前Fontconfig版本不支持的ITS标签,恢复默认配置即可解决:

  • 重新安装fontconfig-config包,恢复默认配置文件:
sudo apt --reinstall install fontconfig-config
  • 如果上述命令无效,可手动备份现有配置并重新生成:
# 备份当前Fontconfig配置
sudo cp -r /etc/fonts/conf.d /etc/fonts/conf.d.bak
sudo cp /etc/fonts/fonts.conf /etc/fonts/fonts.conf.bak

# 重新配置Fontconfig
sudo dpkg-reconfigure fontconfig-config

# 更新字体缓存
sudo fc-cache -fv

内容的提问来源于stack exchange,提问作者Enoch

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.18 17:17:40