AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1273156
Accepted
Mir Rahed Uddin
Mir Rahed Uddin
Asked: 2020-09-07 14:13:46 +0800 CST2020-09-07 14:13:46 +0800 CST 2020-09-07 14:13:46 +0800 CST

LibreOffice 7.0.1 安装失败

  • 772

我已经下载了 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

我该如何解决?任何帮助将不胜感激

package-management dpkg apt libreoffice 20.04
  • 3 3 个回答
  • 3285 Views

3 个回答

  • Voted
  1. Best Answer
    kyodake
    2020-09-07T15:17:00+08:002020-09-07T15:17:00+08:00

    尝试这个:

    再次下载 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

    然后在终端中运行

    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
    
    • 3
  2. N0rbert
    2020-09-08T00:50:04+08:002020-09-08T00:50:04+08:00

    你选择了非常困难的方法。这是不必要的。

    “LibreOffice Packaging” 团队有一个 PPA,要安装 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
    
    • 2
  3. Peter
    2020-09-07T19:27:19+08:002020-09-07T19:27:19+08:00

    最好的办法是使用 LibreOffice 的 snap 版本。我和你有同样的问题,在我删除了 deb 版本后,我安装了当前的 snap 版本,当时是 4.6.2。它现在已更新到 7.0.1。它工作得很好,但我不知道图标是否正确。

    • -1

相关问题

  • 如何从命令行仅安装安全更新?关于如何管理更新的一些提示

  • 如何从命令行判断机器是否需要重新启动?

  • 有没有办法重置所有包/源并从头开始?

  • 如何回滚到 PHP 5.2?

  • 包管理器之间有什么区别?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve