Skip to contentSkip to conversation

Ubuntu 14.04: Packaging bug: Upgrades from 0.79-0ubuntu1 → 0.80.1-1trusty fail

DISCUSSION David McBride 1 participant 1 message May 19, 2014

lore
Share & tools
lore
#0 lore raw

Hi,

There appears to be a slightly gnarly packaging bug that prevents upgrades from version 0.79.0ubuntu1, as supplied by Ubuntu 14.04 ("Trusty"), to version 0.80.1-1trusty, as supplied under
https://ceph.com/debian-firefly/.

Specifically, the older version of the 'ceph' packages conflicts with the newer 'ceph-common' package, and similarly the older version of the 'ceph-common' package conflicts with the newr 'ceph' one.

Attempting to update 'ceph' results in dpkg objecting with:

Quoted 2 lines

dpkg: error processing archive /var/cache/apt/archives/ceph-common_0.80.1-1trusty_amd64.deb (--unpack):
trying to overwrite '/etc/ceph/rbdmap', which is also in package ceph 0.79-0ubuntu1

Similarly, attempting to update 'ceph-common' results in dpkg objecting with:

Quoted 2 lines

dpkg: error processing archive /var/cache/apt/archives/ceph_0.80.1-1trusty_amd64.deb (--unpack):
trying to overwrite '/usr/share/man/man8/ceph-rest-api.8.gz', which is also in package ceph-common 0.79-0ubuntu1

These are just the first conflicts that occur; it's conceivable there are more.

Though this is not something I'm deeply familiar with, a first glance suggests that a careful addition of "Replaces:" and "Breaks:" dependency relations to the newer packages are necessary to suppress this error.

See also:

https://www.debian.org/doc/debian-policy/ch-relationships.html#s-replaces

Kind regards,
David

Signature · 2 lines
David McBride <[email protected]>
Unix Specialist, University Information Services