我正在使用Libreoffice,有人建议我使用openoffice,我安装了它,但不喜欢它,删除了它,现在我不能安装libreoffice了。错误是
(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,但不起作用。
(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).我在我的栏上签了-,上面写着发生了错误,请运行包管理器。做什么?
发布于 2020-10-03 13:08:53
试试这个:
从TDF站点下载软件包
假设它们是在:~/下载中下载的
打开终端并运行:
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发布于 2020-10-03 14:22:37
似乎您有一些libreoffice正在引起问题。我会:
sudo ppa-purge ppa:libreoffice/libreoffice-7-0清除PPA (安装ppa-清除如果您没有它)。apt --fix-broken install。那么你可以:
sudo add-apt-repository ppa:libreoffice/libreoffice-7-0添加PPA,然后添加sudo apt update和sudo apt install libreofficehttps://askubuntu.com/questions/1279691
复制相似问题