【发布时间】:2016-05-09 22:13:54
【问题描述】:
当我尝试安装 maven 时,我在 ubuntu 上的 VMPlayer 6.0.4 上运行 Ubuntu 14.10,但出现以下错误。
ubuntu@ubuntu:~$ sudo apt-get install maven
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:
maven : Depends: libaether-java but it is not going to be installed
Depends: libplexus-containers1.5-java but it is not going to be installed
Depends: libsisu-ioc-java but it is not going to be installed
Depends: libwagon2-java (>= 2.2-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ubuntu@ubuntu:~$
由于我是 Linux 新手,我不明白它为什么会失败以及如何解决这个问题。 谷歌搜索后我尝试了
i)apt-get update (success)
ii)apt-get upgrade (failed as below)
ubuntu@ubuntu:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
liboxideqt-qmlplugin liboxideqtcore0 linux-generic linux-headers-generic linux-image-generic oxideqt-codecs
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
ubuntu@ubuntu:~$
但还是同样的问题 如果有人建议我如何修复和安装 Maven,那将很有帮助 提前致谢
【问题讨论】:
标签: maven ubuntu packages apt-get