在Ubuntu中安装libreOffice7.6.5.2完成后,执行 libreoffice --version命令,出现如下报错:
admin@itappdemo:~$ libreoffice --version
Command ‘libreoffice’ not found, but can be installed with:
snap install libreoffice # version 24.2.5.2, or
apt install libreoffice-common # version 4:24.2.6-0ubuntu0.24.04.1
See ‘snap info libreoffice’ for additional versions.
admin@itappdemo:~$ libreoffice7.6 --version
/opt/libreoffice7.6/program/oosplash: error while loading shared libraries: libXinerama.so.1: cannot open shared object file: No such file or directory
安装方式是:官网下载安装包 (from Index of /libreoffice/old/7.6.5.2/deb/x86_64) 并解压,然后执行 "$ sudo dpkg -i ./LibreOffice_7.6.5.2_Linux_x86-64_deb"命令。
请教大佬们如何解决?如果要安装 libreoffice-common,如何安装 libreoffice-common 7.6.5.2版本的呢?