Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ubuntu上的maven安装失败_Maven_Ubuntu_Packages_Apt Get - Fatal编程技术网

ubuntu上的maven安装失败

ubuntu上的maven安装失败,maven,ubuntu,packages,apt-get,Maven,Ubuntu,Packages,Apt Get,我在vmplayer6.0.4上运行Ubuntu 14.10,当我试图安装maven时,我遇到以下错误 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 y

我在vmplayer6.0.4上运行Ubuntu 14.10,当我试图安装maven时,我遇到以下错误

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,那会很有帮助
提前感谢

回答可能太晚了,但我在Ubuntu 12.04 LTS上遇到了同样的问题,所以这可能会有所帮助

这里有一个工作环境

sudo dpkg -i --force-all /var/cache/apt/archives/libwagon2-java_2.2-3+nmu1_all.deb
上面的命令将安装:
libwagon2-java_2.2-3+nmu1_all.deb


在此之后,您将能够通过以下方式安装Maven:
$sudo apt get install Maven

通过以下方式更新您的软件包

sudo apt-get update
然后尝试安装