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
于是 给了 权限 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
这个网站然后
chmod a+wt /tmp
apt-get update
apt-get install libreoffice
成功了 ,我草了