我已经下载了 LibreOffice 的最新版本 (7.0.1)。问题是当我尝试安装时,它没有正确安装。
我如何安装它?
我已经提取了 LibreOffice 安装程序 ZIP 文件,进入DEBS
文件夹,并使用以下命令执行所有包sudo dpkg -i *.deb
运行命令后遇到以下错误
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive libobasis7.0-core_7.0.1.2-2_amd64.deb (--install):
cannot copy extracted data for './opt/libreoffice7.0/program/libbiblo.so' to '/opt/libreoffice7.0/program/libbiblo.so.dpkg-new': unexpected end of file or stream
dpkg
其他包也有同样的错误,比如 calc, draw
dpkg: error processing package libobasis7.0-base (--install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libobasis7.0-calc:
libobasis7.0-calc depends on libobasis7.0-core (>= 7.0.1.2); however:
Package libobasis7.0-core is not installed.
libobasis7.0-calc depends on libobasis7.0-core (<= 7.0.1.2-2); however:
Package libobasis7.0-core is not installed.
最后显示
Errors were encountered while processing:
libobasis7.0-core_7.0.1.2-2_amd64.deb
libobasis7.0-base
libobasis7.0-calc
libobasis7.0-draw
libobasis7.0-en-us
libobasis7.0-extension-beanshell-script-provider
libobasis7.0-extension-javascript-script-provider
libobasis7.0-extension-mediawiki-publisher
libobasis7.0-extension-nlpsolver
libobasis7.0-extension-pdf-import
libobasis7.0-extension-report-builder
libobasis7.0-firebird
libobasis7.0-gnome-integration
libobasis7.0-graphicfilter
libobasis7.0-images
libobasis7.0-impress
libobasis7.0-kde-integration
libobasis7.0-libreofficekit-data
libobasis7.0-math
libobasis7.0-ogltrans
libobasis7.0-onlineupdate
libobasis7.0-ooolinguistic
libobasis7.0-postgresql-sdbc
libobasis7.0-python-script-provider
libobasis7.0-pyuno
libobasis7.0-writer
libobasis7.0-xsltfilter
libreoffice7.0
libreoffice7.0-base
libreoffice7.0-calc
libreoffice7.0-dict-en
libreoffice7.0-dict-es
libreoffice7.0-dict-fr
libreoffice7.0-draw
libreoffice7.0-en-us
libreoffice7.0-impress
libreoffice7.0-math
libreoffice7.0-writer
libobasis7.0-librelogo
我可以在菜单项中看到 LibreOffice 条目,但无法启动它们
现在,当我尝试卸载它们时,(sudo apt-get purge libreoffice-core
)我收到以下错误
The following packages have unmet dependencies:
libobasis7.0-base : Depends: libobasis7.0-core (>= 7.0.1.2) but it is not installable
Depends: libobasis7.0-core (<= 7.0.1.2-2) but it is not installable
libobasis7.0-calc : Depends: libobasis7.0-core (>= 7.0.1.2) but it is not installable
Depends: libobasis7.0-core (<= 7.0.1.2-2) but it is not installable
libobasis7.0-draw : Depends: libobasis7.0-core (>= 7.0.1.2) but it is not installable
Depends: libobasis7.0-core (<= 7.0.1.2-2) but it is not installable
libobasis7.0-en-us : Depends: libobasis7.0-core (>= 7.0.1.2) but it is not installable
Depends: libobasis7.0-core (<= 7.0.1.2-2) but it is not installable
libobasis7.0-extension-beanshell-script-provider : Depends: libobasis7.0-core (>= 7.0.1.2) but it is not installable
我该如何解决?任何帮助将不胜感激
尝试这个:
再次下载 LibreOffice 包,假设它们是在 ~/Downloads 下载的。
https://ftp.nluug.nl/office/libreoffice/libreoffice/stable/7.0.1/deb/x86_64/LibreOffice_7.0.1_Linux_x86-64_deb.tar.gz
https://ftp.nluug.nl/office/libreoffice/libreoffice/stable/7.0.1/deb/x86_64/LibreOffice_7.0.1_Linux_x86-64_deb_helppack_en-GB.tar.gz
https://ftp.nluug.nl/office/libreoffice/libreoffice/stable/7.0.1/deb/x86_64/LibreOffice_7.0.1_Linux_x86-64_deb_langpack_en-GB.tar.gz
然后在终端中运行
你选择了非常困难的方法。这是不必要的。
“LibreOffice Packaging” 团队有一个 PPA,要安装 LibO 7.0 包,请使用:
最好的办法是使用 LibreOffice 的 snap 版本。我和你有同样的问题,在我删除了 deb 版本后,我安装了当前的 snap 版本,当时是 4.6.2。它现在已更新到 7.0.1。它工作得很好,但我不知道图标是否正确。