2016-04-23 13 views
0

mavenをインストールしようとしていますが、壊れたパッケージでエラーが発生しています。私も-fスイッチで試しましたが、それは助けにはなりませんでした。パッケージが壊れているためMavenのインストールがubuntuで失敗する

[email protected]:~$ sudo apt-get install -f 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: libwagon-java but it is not going to be installed 
E: Unable to correct problems, you have held broken packages. 
+0

[Mavenのダウンロードをお試しページからMavenの配布]をダウンロードしていないのはなぜ(http://maven.apache.org/download.cgi)ANそれを解凍して置きますbinフォルダからパスへ... – khmarbaise

答えて

1

次のコマンドを試してみてください。

#sudo apt-get remove maven2 
sudo add-apt-repository "deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main" 
sudo apt-get update 
sudo apt-get install maven3 

あなたは、この発生した場合:

のmaven

をプログラムのMVN」は以下のパッケージに記載されていますmaven2

するTry須藤はapt-getをインストール{選択したパッケージ}

#Just add those lines in /etc/profile 
export M2_HOME=/usr/share/maven3 
export M2=$M2_HOME/bin 
export PATH=$M2:$PATH 
+0

'export PATH = $ PATH:/ usr/share/maven3/bin'のみを使用します。 – khmarbaise

関連する問題