[pkg-go] Bug#863976: Upgrade fails

Ólafur St. Arnarsson olafur at greenqloud.com
Fri Jun 2 14:50:53 UTC 2017


Package: etcd
Version: 3.1.8+dfsg-1

When upgrading

# apt-get install --only-upgrade etcd

it fails with the following error message
...
Unpacking etcd-server (3.1.8+dfsg-1) ...
dpkg: error processing archive
/var/cache/apt/archives/etcd-server_3.1.8+dfsg-1_amd64.deb (--unpack):
 trying to overwrite '/etc/default/etcd', which is also in package
etcd 2.3.7+dfsg-5
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package etcd-client.
Preparing to unpack .../etcd-client_3.1.8+dfsg-1_amd64.deb ...
Unpacking etcd-client (3.1.8+dfsg-1) ...
dpkg: error processing archive
/var/cache/apt/archives/etcd-client_3.1.8+dfsg-1_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/etcdctl', which is also in package etcd
2.3.7+dfsg-5
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../etcd_3.1.8+dfsg-1_all.deb ...
Unpacking etcd (3.1.8+dfsg-1) over (2.3.7+dfsg-5) ...
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
 /var/cache/apt/archives/etcd-server_3.1.8+dfsg-1_amd64.deb
 /var/cache/apt/archives/etcd-client_3.1.8+dfsg-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


This is because etcd was split into three packages. Starting with this
version. When splitting packages you need to follow
https://www.debian.org/doc/debian-policy/ch-relationships.html#s-replace
for a smooth upgrade. To fix this you can apply the attached patch to
the file "debian/control"

-- 
Ólafur St. Arnarsson

Tel: (+354) 415 0200
Website: qstack.com | Twitter: @qstackcloud
Mobile: (+354) 822 2599 | PGP Key: 828692573AC4470B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: control.patch
Type: text/x-patch
Size: 154 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20170602/7108145f/attachment.bin>


More information about the Pkg-go-maintainers mailing list