go 1.10 fails to symlink misc into GOROOT

Bug #1810535 reported by Jeffrey Baker on 2019-01-04
This bug affects 2 people
Affects Status Importance Assigned to Milestone
golang-1.10 (Ubuntu)

Bug Description

$ lsb_release -rd
Description: Ubuntu 16.04.5 LTS
Release: 16.04

$ apt-cache policy golang-1.10
  Installed: 1.10.4-2ubuntu1~16.04.1
  Candidate: 1.10.4-2ubuntu1~16.04.1
  Version table:
 *** 1.10.4-2ubuntu1~16.04.1 500
        500 http://apt-u16-sjc.vip.dbxnw.net/annex-apt-xenial/apt/xenial xenial-updates/universe amd64 Packages
        100 /var/lib/dpkg/status
     1.10-1ubuntu1~16.04.1 100
        100 http://apt-u16-sjc.vip.dbxnw.net/annex-apt-xenial/apt/xenial xenial-backports/universe amd64 Packages

Go 1.10 adds a "misc" directory to the distribution. This directory must exist in $GOROOT. Among other things, "misc" is required to serve the HTTP UI of `go tool trace`. There should be a symlink such that /usr/lib/go-1.10/misc -> /usr/share/go-1.10/misc. Without this symlink, `go tool trace` will serve 404 errors.

To reproduce, try using `go tool trace -http`. Your browser will get a 404 error if you view the trace. To resolve, add the symlink.

tags: added: xenial
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in golang-1.10 (Ubuntu):
status: New → Confirmed
Hamilton Turner (hamiltont-x) wrote :

Same issue on 18.04. Resolved with $ cd /usr/lib/go-1.10/ ; sudo ln -s ../../share/go-1.10/misc misc

$ lsb_release -rd
Description: Ubuntu 18.04.3 LTS
Release: 18.04

$ apt-cache policy golang-1.10-go
  Installed: 1.10.4-2ubuntu1~18.04.1
  Candidate: 1.10.4-2ubuntu1~18.04.1
  Version table:
 *** 1.10.4-2ubuntu1~18.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.10.1-1ubuntu2 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

tags: added: bionic
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers