** Description changed: + 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://bazaar.launchpad.net/~ubuntu-branches/ubuntu/natty + /python-pysnmp4/natty/revision/8) with python-snmp2. This fix should be + included in Lucid to prevent people from ending up in a situation where + they have broken packages. + + TEST CASE: + + 1) sudo apt-get install python-pysnmp-common + 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-pysnmp-common This is about the versions currently available for Lucid (10.04) There should be a conflicts relationship between python-pysnmp-common and python-pysnmp2 since both attempt to provide the same file. This results in a dpkg failure if trying to apt-get install either package after the other. - scm@scm:/tmp/tmp.jemCOScqRP$ dpkg --contents python-pysnmp2_2.0.9-2_all.deb | grep __init__ + scm@scm:/tmp/tmp.jemCOScqRP$ dpkg --contents python-pysnmp2_2.0.9-2_all.deb | grep __init__ -rw-r--r-- root/root 334 2002-05-20 08:12 ./usr/share/pyshared/pysnmp/__init__.py scm@scm:/tmp/tmp.jemCOScqRP$ dpkg --contents python-pysnmp-common_4.1.9a-1ubuntu0.10.04.1_all.deb | grep __init__ -rw-r--r-- root/root 844 2006-12-13 12:23 ./usr/share/pyshared/pysnmp/__init__.py What happened: scm@scm:/tmp/tmp.jemCOScqRP$ sudo apt-get install python-pysnmp-common [SNIP] Setting up python-pysnmp-common (4.1.9a-1ubuntu0.10.04.1) ... ldconfig deferred processing now taking place Processing triggers for python-support ... scm@scm:/tmp/tmp.jemCOScqRP$ dpkg -s python-pysnmp-common Package: python-pysnmp-common Status: install ok installed Priority: optional Section: python Installed-Size: 72 Maintainer: Ubuntu MOTU Developers <ubuntu-m...@lists.ubuntu.com> Architecture: all Source: python-pysnmp4 Version: 4.1.9a-1ubuntu0.10.04.1 scm@scm:/tmp/tmp.jemCOScqRP$ sudo apt-get install python-pysnmp2 [SNIP] - Fetched 42.6kB in 0s (216kB/s) + 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-pysnmp2_2.0.9-2_all.deb) ... dpkg: error processing /var/cache/apt/archives/python-pysnmp2_2.0.9-2_all.deb (--unpack): - trying to overwrite '/usr/share/pyshared/pysnmp/__init__.py', which is also in package python-pysnmp-common 0:4.1.9a-1ubuntu0.10.04.1 + trying to overwrite '/usr/share/pyshared/pysnmp/__init__.py', which is also in package python-pysnmp-common 0:4.1.9a-1ubuntu0.10.04.1 Errors were encountered while processing: - /var/cache/apt/archives/python-pysnmp2_2.0.9-2_all.deb + /var/cache/apt/archives/python-pysnmp2_2.0.9-2_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) scm@scm:/tmp/tmp.jemCOScqRP$ dpkg -s python-pysnmp2 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.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/769205 Title: python-pysnmp-common conflicts with python-pysnmp2 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs