Cannot install libwagon2-java due to path collision and libwagon-java

Bug #1175673 reported by kurapix
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
wagon (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Just typed
apt-get install libwagon2-java
as root and libwagon-java get installed but libwagon2-java cannot get installed afterward ...
This was found while trying to install maven.

Here is the log:

# apt-get install libwagon2-java
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libmaven-scm-java libmaven2-core-java libwagon-java
Suggested packages:
  libmaven-scm-java-doc libwagon-java-doc
The following NEW packages will be installed:
  libmaven-scm-java libmaven2-core-java libwagon-java libwagon2-java
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2 918 kB of archives.
After this operation, 5 086 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Selecting previously unselected package libwagon-java.
(Reading database ... 422231 files and directories currently installed.)
Unpacking libwagon-java (from .../libwagon-java_1.0.0-2ubuntu2_all.deb) ...
Selecting previously unselected package libmaven2-core-java.
Unpacking libmaven2-core-java (from .../libmaven2-core-java_2.2.1-8_all.deb) ...
Selecting previously unselected package libmaven-scm-java.
Unpacking libmaven-scm-java (from .../libmaven-scm-java_1.3-4_all.deb) ...
Unpacking libwagon2-java (from .../libwagon2-java_2.2-3+nmu1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/libwagon2-java_2.2-3+nmu1_all.deb (--unpack):
 trying to overwrite '/usr/share/java/wagon-tck-http.jar', which is also in package libwagon-java 1.0.0-2ubuntu2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libwagon2-java_2.2-3+nmu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Pranav Salunke (dguitarbite) wrote :

Try this, it should force install of libwagon2-java
sudo dpkg -i --force-all /var/cache/apt/archives/libwagon2-java_2.2-3+nmu1_all.deb

Changed in wagon (Ubuntu):
status: New → Confirmed
Revision history for this message
David Medberry (med) wrote :

Forcing it really doesn't resolve the issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.