先增加Maven3的源,在/etc/apt/sources.list中添加以下信息
deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main deb-src http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main
运行以下命令
sudo apt-get purge maven maven2 maven3 sudo apt-add-repository ppa:andrei-pozolotin/maven3 sudo apt-get update sudo apt-get install maven3