最近我的电脑上 Libreoffice 打开速度很慢,打开需要几分钟。我的操作系统是 Kubuntu20.04。
我曾尝试:
- 清除并重新安装
- 从 deb 包安装最新版本
我也尝试过遵循这一页虽然我的操作系统是Linux:
- 在安全模式下运行 LibreOffice
- 切换 openCL
- 删除抗锯齿
什么也没改变。
我已经运行了,strace libreoffice
但我无法解释结果。以下是我在 libreoffice 被攻击之前得到的最后几行。如果需要,我可以添加整个报告。
connect(3, {sa_family=AF_UNIX, sun_path="/tmp/OSL_PIPE_1000_SingleOfficeIPC_b910dfc6e06b87d13cbea62e8047c298"}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
stat("/proc/version", {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
stat("/usr/lib/libreoffice/program/", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
openat(AT_FDCWD, "/sys/dev/block/8:0/queue/rotational", O_RDONLY) = 3
close(3) = 0
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f7d73a20000
mprotect(0x7f7d73a21000, 8388608, PROT_READ|PROT_WRITE) = 0
clone(child_stack=0x7f7d7421f630, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[25343], tls=0x7f7d74220700, child_tidptr=0x7f7d742209d0) = 25343
futex(0x55daba28d610, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x55daba28d610, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x55daba28d838, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x55daba28d840, FUTEX_WAKE_PRIVATE, 1) = 0
read(5, "/usr/lib/jvm/java-11-openjdk-amd"..., 4096) = 209
close(5) = 0
pipe([3, 4]) = 0
clone(child_stack=0x7f7d7421f630, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[25364], tls=0x7f7d74220700, child_tidptr=0x7f7d742209d0) = 25364
futex(0x55daba28e890, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x55daba28e890, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x55daba28d838, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x55daba28d840, FUTEX_WAKE_PRIVATE, 1) = 0
close(4) = 0
futex(0x55daba28ece8, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1639832977, tv_nsec=373455000}, FUTEX_BITSET_MATCH_ANY
命令apt-cache policy libreoffice
给出
libreoffice:
Installed: (none)
Candidate: 1:7.2.3~rc2-0ubuntu0.20.04.1~lo1
Version table:
1:7.2.3~rc2-0ubuntu0.20.04.1~lo1 500
500 http://ppa.launchpad.net/libreoffice/ppa/ubuntu focal/main amd64 Packages
1:7.1.7-0ubuntu0.21.04.1~bpo20.04.1 100
100 http://fr.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages
1:6.4.7-0ubuntu0.20.04.2 500
500 http://fr.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
500 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages
1:6.4.2-0ubuntu3 500
500 http://fr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
该命令lowriter --version
给出:
LibreOffice 7.2.3.2 20(Build:2)
您知道问题是什么以及我该怎么办吗?
谢谢
答案1
可能导致这种情况的一个原因是安装的字体数量异常多(最近是否有问题?)或字体缓存损坏
尝试运行sudo fc-cache -f -v
以重置您的字体缓存。
如果这不起作用,请将您的和~/.local/share/fonts
内容与全新安装的内容进行比较(例如在虚拟机上安装 Ubuntu),即/usr/share/fonts/
/usr/local/share/fonts
cd /usr/share/fonts
find . >> ~/fontlist.txt
cd /usr/local/share/fonts
find . >> ~/fontlist.txt
cd ~/.local/share/fonts
find . >> ~/fontlist.txt
diff ~/fontlist.txt ~/vmlist.txt
查看它是否异常大(或者可能存在恶意字体,尝试备份字体并将其替换为库存安装的内容,重置缓存,然后重试)
编辑:只是为了尝试一下,尝试刷新你的图标缓存也一样。
答案2
您必须尝试通过以下方式重置其每个用户配置:
mv ~/.config/libreoffice ~/.config/libreoffice_old
然后重新启动 LibreOffice。