安装
- 修改apt镜像源
/etc/apt/sources.list
文件
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
- 更新软件列表
apt-get update
如报错则对每个KEY执行以下内容gpg --keyserver keyserver.ubuntu.com --recv KEY内容
gpg --export --armor KEY内容 | apt-key add -
- 下载libreoffice
apt-get install libreoffice
apt-get install libreoffice-l10n-zh-cn
非pdf文件转为pdf(图片、文档、表格均可)
libreoffice --headless --convert-to pdf 源文件路径 --outdir 输出目录
文件名不变,后缀变为.pdf
中文乱码问题
-
fc-list :lang=zh
查看是否有中文字体 - 将本地
C:\\Windows\Fonts\simsun.ttc
(宋体)字体文件上传到/usr/share/fonts
目录 -
fc-cache -fv
更新字体缓存
网友评论