LibreOffice 安装引发的血案

File \"/usr/local/lib/python3.9/site-packages/unstructured/partition/common.py\", line 160, in convert_office_doc\n  
 raise FileNotFoundError(\nFileNotFoundError: soffice command was not found. Please install libreoffice\non your system and try again.
- Install instructions: https://www.libreoffice.org/get-help/install-howto/
  Mac: https://formulae.brew.sh/cask/libreoffice 
  Debian: https://wiki.debian.org/LibreOffice\n

 在使用unstructured 包的时候 弹出 以下错误

fileNotFoundError(\nFileNotFoundError: soffice command was not found. Please install libreoffice\non your system and try again.

他提示要安装LibreOffice   

于是开始了 LibreOffice    的安装  以下链接是安装步骤 ,我选择了然后解压

Linux 下的安装方法 | LibreOffice 简体中文官方网站 - 自由免费的办公套件

解压 采用tar -zxvf   /LibreOffice_7.5.4_Linux_x86-64_deb.tar.gz

报错  tar Not found in archive  然后查了查 解决方案

linux ‘tar: not found in archive‘错误处理_超萌养乐多的博客-CSDN博客

采用 了 ls *.tar.gz |xargs -n1 tar -zxvf指令

解压后安装   dpkg -i ./LibreOffice_7.5.4.2_Linux_x86-64_deb/DEBS/*.deb

但是在使用的时候出现了以下错误

/opt/libreoffice7.5/program/oosplash: error while loading shared libraries: libXinerama.so.1: cannot open shared object file: No such file or directory

然后去 查找问题  解决方法是安装 libXineramalinux - error while loading shared libraries: libXinerama.so.1: cannot open shared object file: No such file or directory - Super User

于是开始安装 apt-get install libxinerama1

后面报 Err:5 http://security.ubuntu.com/ubuntu focal-updates/main amd64 libx11-data all 2:1.6.9-2ubuntu1.2  404  Not Found [IP: 91.189.91.39 80]
Err:6 http://security.ubuntu.com/ubuntu focal-updates/main amd64 libx11-6 amd64 2:1.6.9-2ubuntu1.2  404  Not Found [IP: 91.189.91.39 80]

于是又查找问题 说要更新

apt-get update

于是开始更新更新有报错GPG error: http://security.ubuntu.com/ubuntu focal-security InRelease: Couldn't create temporary file /tmp/apt.conf.HbA52m for passing config to apt-key  

于是进行 apt clean  ubuntu 16.04 An error occurred during the signature verification. The repository is not updated and_Hardy-Lee的博客-CSDN博客

sudo apt-get clean  
cd /var/lib/apt 
sudo mv lists lists.old 
sudo mkdir -p lists/partial 
sudo apt-get clean 
sudo apt-get update

还是报错 

An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com/ubuntu focal InRelease: Couldn't create temporary file /tmp/apt.conf.gmGfhQ for passing config to apt-key

于是又去 找问题 W: GPG error: http://security.ubuntu.com/ubuntu bionic-security InRelease: Couldn‘t create temporary_WangJQ*的博客-CSDN博客

于是 给了 权限 chmod a+wt /tmp 

apt-get update 可以更新了    apt-get install libxinerama1  也可以安装了

以为可以万事大吉之后 

libreoffice7.5 -version
/opt/libreoffice7.5/program/soffice.bin: error while loading shared libraries: libssl3.so: cannot open shared object file: No such file or directory

然后  找问题 安装了 apt-get install openssl

还是报错然后再安装

apt-get install libssl-dev

然后 沃日  搞不出来

最后我们回顾下 是安装 LibreOffice 

于是我找到https://ubuntu.pkgs.org/22.04/libreoffice-amd64/libreoffice_7.5.4~rc2-0ubuntu0.22.04.1~lo1_amd64.deb.html

这个网站然后 

chmod a+wt /tmp 

apt-get update

apt-get install libreoffice

成功了  ,我草了

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值