Ubuntu raring 13.04 maven error broken package

It seems that ubuntu raring 13.04 was released with a packaging problem in maven. I upgraded my home computer desktop quantal 12.10 to 13.04 raring and other some regular issues, which I usually solve by apt-get -f install, I got an error while installing maven. It seems that maven depends on both libwagon-java and libwagon2-java and both contain the same jar file. dpkg then will issue an error and stop.

By doing some search I found a page on launchpage with the error report: https://bugs.launchpad.net/ubuntu/+source/wagon2/+bug/1171056

I forced the installation of libwagon2 using dpkg -i –force-all /var…. and it worked. However, I know that now when one of those two packages gets removed the jar will be removed as well, and then I will need to purge then package then re-install it.

2 comments on Ubuntu raring 13.04 maven error broken package

  • Rom says:

    The hotfix (dpkg -i –force-all /var…) fixes packages but harms maven.
    As for now, afaik, there’s no way to have both: libwagon2 and maven.
    Let’s wait what U-developer dudes say…

    • Mohamed says:

      Hi Rom, yes, this is a temp band aid to get things to work. The correct solution is not to have the same jar with the same path in two packages. It will get maven to work fine, I’ve been using it now for a week or so, didn’t see any unusual issues. The problem will hit when they actually fix it. Once you remove one of those two packages the jar will be deleted I guess, and then maven won’t work correct. Then you will have to remove maven and libwagon and libwagon2 and re-install maven again.

      For some reason, this release seems less stable than the previous ones, at least with the manner I use ubuntu. Hopefully they’ll improve it soon. Thanks for commenting.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.