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
58a59,60
> Replaces: etcd (<< 3.1.8+dfsg-1)
> Breaks: etcd (<< 3.1.8+dfsg-1)
77a80,81
> Replaces: etcd (<< 3.1.8+dfsg-1)
> Breaks: etcd (<< 3.1.8+dfsg-1)
_______________________________________________
Pkg-go-maintainers mailing list
Pkg-go-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers

Reply via email to