你提到的 liboffice 应该是 LibreOffice(Debian 上常见的办公套件)。下面分几种情况说明如何在 Debian 启动它。
如果你用的是 GNOME / KDE / XFCE 等桌面环境:
打开终端,输入:
libreoffice
或指定组件:
libreoffice --writer
libreoffice --calc
libreoffice --impress
打开某个文件:
libreoffice example.docx
sudo apt update
sudo apt install libreoffice
如果只想装部分组件:
sudo apt install libreoffice-writer
sudo apt install libreoffice-calc
如果是 无桌面环境 的 Debian:
xvfb 虚拟显示:sudo apt install xvfb
xvfb-run libreoffice --headless --convert-to pdf example.docx
command not found说明没安装,或路径问题:
which libreoffice
正常现象,LibreOffice 本身较大。
如果你是指 某个叫 liboffice 的特定软件,或者是在 Docker / 服务器 / 树莓派 上运行,告诉我具体场景,我可以给你更精确的命令。