降级deb包

装了wps2019后,发现一个问题,只要是粗体的字,那在wps里显示就是一堆乱码. 虽然把粗体都转成正常就好了,但还是很影响感受.

查了一下这是因为debian13里自带的libfreetype6_2.13.3+dfsg-1+deb13u1_amd64.deb对位图嵌入粗体渲染的兼容问题.

wps

那就降级一下版本freetype的版本libfreetype6_2.12.1+dfsg-5+deb12u4_amd64.deb就好了.可是这样以后系统upgrade就一直会报各种冲突.

这个就由以下一个命令搞定就可以了.

1
2
sudo dpkg -i --force-overwrite ./libfreetype6_2.12.1+dfsg-5+deb12u4_amd64.deb
sudo apt-mark hold libfreetype6

降级后就完全正常了

wps-update

这个时候我们再执行update就会如下显示了

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
sudo apt update                                                                                                               
获取:1 https://mirrors.tuna.tsinghua.edu.cn/debian trixie InRelease [140 kB]
获取:2 https://mirrors.tuna.tsinghua.edu.cn/debian trixie-updates InRelease [47.3 kB]
获取:3 https://mirrors.tuna.tsinghua.edu.cn/debian trixie-backports InRelease [54.0 kB]
获取:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security trixie-security InRelease [43.4 kB]
已下载 285 kB,耗时 1秒 (238 kB/s)
有 1 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。

sudo apt list --upgradable
libfreetype6/stable,stable-security 2.13.3+dfsg-1+deb13u1 amd64 [可从该版本升级:2.12.1+dfsg-5+deb12u4]
注意: 还有 1 个版本。请使用 -a 选项来查看它(它们)

sudo apt upgrade
暂不升级:
libfreetype6

摘要:
升级:0,安装:0,卸载:0,不升级:1

如果那天freetype这个问题解了,那我们直接uphold就可以继续升级了.

1
sudo apt-mark unhold libfreetype6