[Docker-maint] 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

k0d m00mba at postexploit.com
Sun Oct 23 14:54:59 UTC 2016


This is what I ended up doing.  Not sure if this is correct method but
seems to have worked.  I can now perform an apt-get update && apt-get
upgrade.

sudo rm /usr/lib/go -Rf
sudo rm /usr/share/doc/golang-doc/ -Rf
sudo mkdir /usr/lib/go
sudo apt-get -f install
sudo apt-get update && apt-get upgrade

Cheers!




On Wed, 07 Sep 2016 23:18:47 +0200 Andreas Beckmann <anbe at debian.org>
wrote:
> Package: golang-doc
> Version: 2:1.7~1
> Severity: serious
> User: debian-qa at lists.debian.org
> Usertags: piuparts
> 
> Hi,
> 
> during a test with piuparts I noticed your package fails to upgrade
from
> 'jessie'.
> It installed fine in 'jessie', then the upgrade to 'stretch' fails.
> 
> >From the attached log (scroll to the bottom...):
> 
>   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
> 
> 
> cheers,
> 
> Andreas




More information about the Docker-maint mailing list