首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >搞砸了Openoffice和LibreOffice

问搞砸了Openoffice和LibreOffice
EN

Ask Ubuntu用户
提问于 2020-10-03 12:51:02
回答 2查看 368关注 0票数 0

我正在使用Libreoffice,有人建议我使用openoffice,我安装了它,但不喜欢它,删除了它,现在我不能安装libreoffice了。错误是

代码语言:javascript
复制
(base) ahmad@ahmad-HP-Laptop-15-da1xxx:~$ sudo apt install libreoffice
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libreoffice : Depends: libreoffice-calc but it is not going to be installed
               Depends: libreoffice-core (= 1:7.0.1~rc2-0ubuntu0.18.04.1) but 1:6.0.7-0ubuntu0.18.04.10 is to be installed
               Depends: libreoffice-draw but it is not going to be installed
               Depends: libreoffice-impress but it is not going to be installed
               Depends: libreoffice-math but it is not going to be installed
               Depends: libreoffice-report-builder-bin but it is not going to be installed
               Recommends: fonts-crosextra-caladea but it is not going to be installed
               Recommends: fonts-crosextra-carlito but it is not going to be installed
               Recommends: fonts-dejavu but it is not going to be installed
               Recommends: fonts-linuxlibertine but it is not going to be installed
               Recommends: fonts-noto-core but it is not installable
               Recommends: fonts-noto-extra but it is not installable
               Recommends: fonts-noto-ui-core but it is not installable
               Recommends: fonts-sil-gentium-basic but it is not going to be installed
               Recommends: libreoffice-gnome but it is not going to be installed or
                           libreoffice-plasma but it is not going to be installed
               Recommends: libreoffice-nlpsolver but it is not going to be installed
               Recommends: libreoffice-report-builder but it is not going to be installed
               Recommends: libreoffice-script-provider-bsh but it is not going to be installed
               Recommends: libreoffice-script-provider-js but it is not going to be installed
               Recommends: libreoffice-script-provider-python but it is not going to be installed
               Recommends: libreoffice-sdbc-mysql but it is not going to be installed
               Recommends: libreoffice-sdbc-postgresql but it is not going to be installed
               Recommends: libreoffice-wiki-publisher but it is not going to be installed
               Recommends: libreoffice-java-common (>= 1:7.0.1~rc2~) but 1:6.0.7-0ubuntu0.18.04.10 is to be installed
 libreoffice-core : Depends: libreoffice-common (> 1:6.0.7) but it is not going to be installed
 libreoffice-java-common : Depends: libreoffice-common (= 1:6.0.7-0ubuntu0.18.04.10) but it is not going to be installed
 libreoffice-style-galaxy : Depends: libreoffice-common (= 1:6.0.7-0ubuntu0.18.04.10) but it is not going to be installed
 libreoffice-style-tango : Depends: libreoffice-common (= 1:6.0.7-0ubuntu0.18.04.10) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

尝试过apt --fix-broken install,但不起作用。

代码语言:javascript
复制
(base) ahmad@ahmad-HP-Laptop-15-da1xxx:~$ sudo apt-get upgrade 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libreoffice-base : Depends: libreoffice-common (>= 1:7.0.0~alpha~) but it is not installed
 libreoffice-core : Depends: libreoffice-common (> 1:7.0.1~rc2) but it is not installed
 libreoffice-java-common : Depends: libreoffice-common but it is not installed
 libreoffice-writer : Depends: libreoffice-common (>= 1:7.0.0~alpha~) but it is not installed
                      Recommends: libreoffice-math but it is not installed
 python3-uno : Depends: libreoffice-common (>= 1:7.0.0~alpha~) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

我在我的栏上签了-,上面写着发生了错误,请运行包管理器。做什么?

EN

回答 2

Ask Ubuntu用户

回答已采纳

发布于 2020-10-03 13:08:53

试试这个:

从TDF站点下载软件包

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_兰帕尔_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_helppack_en-GB.tar.gz

假设它们是在:~/下载中下载的

打开终端并运行:

代码语言:javascript
复制
sudo apt-get remove --purge libreoffice*

sudo apt-get remove --purge openoffice*

sudo apt autoremove

sudo apt clean

cd ~/Downloads

for x in *.tar.gz; do tar xfv $x; done

sudo dpkg -i LibreOffice_*/DEBS/*.deb
票数 1
EN

Ask Ubuntu用户

发布于 2020-10-03 14:22:37

似乎您有一些libreoffice正在引起问题。我会:

  1. 用sudo ppa-purge ppa:libreoffice/libreoffice-7-0清除PPA (安装ppa-清除如果您没有它)。
  2. 尝试再次运行apt --fix-broken install。

那么你可以:

  1. 尝试从官方存储库安装libreoffice
  2. 或者再次使用sudo add-apt-repository ppa:libreoffice/libreoffice-7-0添加PPA,然后添加sudo apt update和sudo apt install libreoffice
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1279691

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档