Comment 3 for bug 1680442

Revision history for this message
Joshua Powers (powersj) wrote : Re: package golang-juju-loggo-dev (not installed) failed to install/upgrade: a(z) „/usr/share/gocode/src/github.com/juju/loggo/formatter_test.go” felülírási kísérlete, amely a(z) golang-github-juju-loggo-dev 0.0~git20150527.0.8477fc9-1 csomagban is szerepel

It appears that the file:
'/usr/share/gocode/src/github.com/juju/loggo/formatter_test.go'
Is provided by both 'golang-github-juju-loggo-dev' and
'golang-juju-loggo-dev' [1].

A simple test case is:

lxc launch ubuntu-daily:zesty z
lxc exec z bash
apt update
apt install golang-github-juju-loggo-dev golang-juju-loggo-dev

To which you will get a message similar to:
dpkg: error processing archive /tmp/apt-dpkg-install-qlSp4o/42-golang-github-juju-loggo-dev_0.0~git20150527.0.8477fc9-1_all.deb (--unpack):
 trying to overwrite '/usr/share/gocode/src/github.com/juju/loggo/package_test.go', which is also in package golang-juju-loggo-dev 0.0~git20150318-0ubuntu1

At the very least these packages should conflict with other another to prevent this error from occurring.

[1] http://packages.ubuntu.com/search?suite=zesty&arch=any&searchon=contents&keywords=%2Fusr%2Fshare%2Fgocode%2Fsrc%2Fgithub.com%2Fjuju%2Floggo%2Fformatter_test.go