我使用原始的 /etc/apt/sources.list
我不想安装 ppa/libreoffice,因为很多这样的挂起 GUI。
我已尝试这些步骤,但没有作用。
$ sudo apt-get clean
$ sudo apt-get purge libreoffice*
$ sudo rm /var/lib/apt/lists/*
$ sudo rm /var/lib/apt/lists/partial/*
$ sudo apt-get update
$ sudo apt-get -f install libreoffice-calc libreoffice-writer libreoffice-impress
这就是我想要安装的包。
$ sudo apt-get install libreoffice-calc libreoffice-writer libreoffice-impress
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libreoffice-calc : Depends: libreoffice-base-core (= 1:4.2.8-0ubuntu5.1) but it is not going to be installed
Depends: libreoffice-core (= 1:4.2.8-0ubuntu5.1) but it is not going to be installed
libreoffice-impress : Depends: libreoffice-core (= 1:4.2.8-0ubuntu5.1) but it is not going to be installed
Depends: libreoffice-draw (= 1:4.2.8-0ubuntu5.1) but it is not going to be installed
Recommends: libreoffice-avmedia-backend-gstreamer but it is not going to be installed
libreoffice-writer : Depends: libreoffice-base-core (= 1:4.2.8-0ubuntu5.1) but it is not going to be installed
Depends: libreoffice-core (= 1:4.2.8-0ubuntu5.1) but it is not going to be installed
Recommends: libreoffice-math but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
答案1
libreoffice 是一个办公套件,各个程序在后端相互依赖。尝试sudo apt-get install libreoffice
获取整个套件