python-pysnmp-common conflicts with python-pysnmp2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-pysnmp4 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Lucid |
Fix Released
|
Medium
|
Unassigned |
Bug Description
In Lucid it is currently possible to install both python-snmp-common and python-pysnmp2 on the same system but since both provide the same file one ends up with broken packages.
This has been fixed in python-snmp4 version 4.1.9a-2 by adding a breaks and conflicts (http://
TEST CASE:
1) sudo apt-get install python-
2) sudo apt-get install python-pysnmp2
3) observe dpkg returning an error code
1) sudo apt-get install python-snmp-common and python-pysnmp4 from lucid-proposed
2) sudo apt-get install python-pysnmp2
3) observe that python-pysnmp2 is not installable
-------
Binary package hint: python-
This is about the versions currently available for Lucid (10.04)
There should be a conflicts relationship between python-
scm@scm:
-rw-r--r-- root/root 334 2002-05-20 08:12 ./usr/share/
scm@scm:
-rw-r--r-- root/root 844 2006-12-13 12:23 ./usr/share/
What happened:
scm@scm:
[SNIP]
Setting up python-
ldconfig deferred processing now taking place
Processing triggers for python-support ...
scm@scm:
Package: python-
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 72
Maintainer: Ubuntu MOTU Developers <email address hidden>
Architecture: all
Source: python-pysnmp4
Version: 4.1.9a-
scm@scm:
[SNIP]
Fetched 42.6kB in 0s (216kB/s)
Selecting previously deselected package python-pysnmp2.
(Reading database ... 239263 files and directories currently installed.)
Unpacking python-pysnmp2 (from .../python-
dpkg: error processing /var/cache/
trying to overwrite '/usr/share/
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
scm@scm:
Package: python-pysnmp2
Status: install ok not-installed
Priority: optional
Section: python
Yikes, now I have a broken package.
What I expected:
Apt should have nicely warned me about this conflict.
Related branches
Changed in python-pysnmp4 (Ubuntu): | |
status: | New → Confirmed |
Changed in python-pysnmp4 (Ubuntu Lucid): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in python-pysnmp4 (Ubuntu): | |
status: | Confirmed → Fix Released |
importance: | Undecided → Medium |
Changed in python-pysnmp4 (Ubuntu Lucid): | |
milestone: | none → lucid-updates |
description: | updated |
tags: | added: testcase |
I can confirm this issue:
jsalisbury@ salisbury- lucid-multi- nic:~$ sudo apt-get install python- pysnmp- common pysnmp- common (4.1.9a- 1ubuntu0. 10.04.1) ...
Setting up python-
...
####### ####### ####### ######
jsalisbury@ salisbury- lucid-multi- nic:~$ sudo apt-get install python-pysnmp2 us.archive. ubuntu. com/ubuntu/ lucid/universe python-pysnmp2 2.0.9-2 [42.6kB] pysnmp2_ 2.0.9-2_ all.deb) ... apt/archives/ python- pysnmp2_ 2.0.9-2_ all.deb (--unpack): pyshared/ pysnmp/ __init_ _.py', which is also in package python- pysnmp- common 0:4.1.9a- 1ubuntu0. 10.04.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
python-pysnmp2
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 42.6kB of archives.
After this operation, 365kB of additional disk space will be used.
Get:1 http://
Fetched 42.6kB in 14s (2,893B/s)
Selecting previously deselected package python-pysnmp2.
(Reading database ... 42723 files and directories currently installed.)
Unpacking python-pysnmp2 (from .../python-
dpkg: error processing /var/cache/
trying to overwrite '/usr/share/
E: Sub-process /usr/bin/dpkg returned an error code (1)
####### ####### ####### ######
jsalisbury@ salisbury- lucid-multi- nic:~$ dpkg -s python-pysnmp2
Package: python-pysnmp2
Status: install ok not-installed
Priority: optional
Section: python