温馨提示×

如何给debian配liboffice

小樊
41
2026-09-23 11:39:26
栏目: 智能运维

你提到的 liboffice 应该是 LibreOffice(Debian 上常见的开源办公套件)。下面是在 Debian 上安装和配置 LibreOffice 的几种常用方法。


一、使用 apt 安装(推荐,最简单)

1. 更新软件源

sudo apt update

2. 安装 LibreOffice

安装完整版(包含 Writer、Calc、Impress 等):

sudo apt install libreoffice

如果只想安装基础组件:

sudo apt install libreoffice-writer libreoffice-calc libreoffice-impress

3. 安装中文语言包(可选)

sudo apt install libreoffice-l10n-zh-cn

二、使用 Debian 官方 Backports(获取较新版本)

如果你用的是 Debian Stable,但想要更新版本的 LibreOffice:

sudo apt install -t bullseye-backports libreoffice

(将 bullseye 替换为你对应的 Debian 版本,如 bookworm)


三、手动安装官方 Deb 包(适合需要最新版)

1. 下载 LibreOffice

前往官网: https://www.libreoffice.org/download/

选择 Debian/Ubuntu (.deb) 版本。

2. 解压并安装

tar -xvf LibreOffice_*.tar.gz
cd LibreOffice_*/DEBS
sudo dpkg -i *.deb

四、基本配置建议

1. 设置界面语言

打开 LibreOffice →
工具 → 选项 → 语言设置 → 语言
选择中文(简体)

2. 安装常用字体(避免排版问题)

sudo apt install fonts-wqy-zenhei fonts-wqy-microhei

3. 命令行使用(无界面)

libreoffice --headless --convert-to pdf example.docx

五、常见问题

  • 启动慢:安装 libreoffice-gnome 可改善集成
  • 缺少 Java:
    sudo apt install default-jre
    
  • 卸载:
    sudo apt remove libreoffice
    

如果你说的是 其他名为 liboffice 的软件,或者是 嵌入式 / 服务器环境使用,可以补充说明一下使用场景。

0 踩