Cannot install libwagon2-java due to path collision and libwagon-java
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-
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-
Selecting previously unselected package libmaven2-
Unpacking libmaven2-core-java (from .../libmaven2-
Selecting previously unselected package libmaven-scm-java.
Unpacking libmaven-scm-java (from .../libmaven-
Unpacking libwagon2-java (from .../libwagon2-
dpkg: error processing /var/cache/
trying to overwrite '/usr/share/
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
Try this, it should force install of libwagon2-java apt/archives/ libwagon2- java_2. 2-3+nmu1_ all.deb
sudo dpkg -i --force-all /var/cache/