我已经下载了 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
我该如何修复?如能得到任何帮助我将不胜感激
答案1
尝试这个:
再次下载 LibreOffice 软件包,假设它们是在 ~/Downloads 下载的。
然后在终端中运行
sudo apt-get -f install
sudo apt remove --purge libreoffice*
sudo apt remove --purge libobasis*
sudo apt autoremove
cd ~/Downloads
for x in *.tar.gz; do tar xfv $x; done
sudo dpkg -i LibreOffice_*/DEBS/*.deb
答案2
你选择了非常困难的方法。没有必要。
“LibreOffice Packaging”团队已经购电协议要安装 LibO 7.0 软件包,请使用:
sudo add-apt-repository ppa:libreoffice/libreoffice-7-0
sudo apt-get update
sudo apt-get install libreoffice
sudo apt-get dist-upgrade
答案3
最好的办法是使用 LibreOffice 的 snap 版本。我遇到了和你一样的问题,删除 deb 版本后,我安装了当前的 snap 版本,当时是 4.6.2。现在已更新到 7.0.1。它运行得很好,但我不知道图标是否正确。