0

I am trying to install maven with sudo apt-get install maven2

Should be pretty straightforward, but I am getting this:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package maven2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  maven

E: Package 'maven2' has no installation candidate

Any hint?

Thanks

stack man
  • 73
  • 1
  • 1
  • 9

1 Answers1

1

maven2 package is in universe repository http://packages.ubuntu.com/search?keywords=maven2. So, you need to enable universe repo.

Then use

sudo apt-get update 

to update software index.

Then use

sudo apt-get install maven2

to install it

Anwar
  • 76,649