[pkg-golang-devel] Bug#836991: golang-doc: fails to upgrade from 'jessie': error: directory '/usr/lib/go' contains files not owned by package golang-go:i386, cannot switch to symlink

Tianon Gravi tianon at debian.org
Mon Nov 21 02:45:27 UTC 2016


On 7 September 2016 at 14:18, Andreas Beckmann <anbe at debian.org> wrote:
>   Preparing to unpack .../golang-go_2%3a1.7~1_i386.deb ...
>   dpkg-maintscript-helper: error: directory '/usr/lib/go' contains files not owned by package golang-go:i386, cannot switch to symlink
>   dpkg: error processing archive /var/cache/apt/archives/golang-go_2%3a1.7~1_i386.deb (--unpack):
>    subprocess new pre-installation script returned error exit status 1

Any thoughts or hrefs on the "correct" way to fix this in the
packaging?  (Or a simple way to figure out _which_ files don't belong
so we can evaluate more clearly?)

I don't want to just add "rm -rf" to the preinst, but if piuparts is
noticing the problem, it's bound to be something we've done wrong in
the jessie packaging of "golang-go". :(

♥,
- Tianon
  4096R / B42F 6819 007F 00F8 8E36  4FD4 036A 9C25 BF35 7DD4



More information about the pkg-golang-devel mailing list