![无法在 Ubuntu 14.10 上安装 Octave](https://linux22.com/image/870245/%E6%97%A0%E6%B3%95%E5%9C%A8%20Ubuntu%2014.10%20%E4%B8%8A%E5%AE%89%E8%A3%85%20Octave.png)
我尝试octave
安装ubuntu 14.10
$ sudo apt-get install octave
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:
octave : Depends: default-jre-headless but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
因此,我进入了“兔子洞”,尝试安装default-jre-headless
等,直到出现tzdata-java
以下错误:
The following packages have unmet dependencies:
tzdata-java : Depends: tzdata (= 2014i-0ubuntu0.14.10) but 2015a-0ubuntu0.14.10 is to be installed
E: Unable to correct problems, you have held broken packages.
根据Ubuntu 更新这不再是发行版的一部分。octave
那么我该如何安装?
编辑:
一些附加信息:
$ sudo apt-cache policy tzdata-java
tzdata-java:
Installed: (none)
Candidate: 2014i-0ubuntu0.14.10
Version table:
2014i-0ubuntu0.14.10 0
500 http://mirror.math.ucdavis.edu/ubuntu/ utopic-updates/main amd64 Packages
500 http://mirror.math.ucdavis.edu/ubuntu/ utopic-security/main amd64 Packages
2014h-2 0
500 http://mirror.math.ucdavis.edu/ubuntu/ utopic/main amd64 Packages
根据发射台但是应该有一个 never 版本。那么我该如何更新定义(如果这是问题所在)?我已经更新了sudo apt-get upgrade/update/dist-upgrade
答案1
我认为问题出在 tzdata-java 的旧版本上
安装 never 版本sudo apt-get install tzdata-java=2015b-0ubuntu0.14.10
确实起了作用。