Build Issue of OpenCC Go binding on Ubuntu Linux 16.10

[Update]: This issue has been fixed by package maintainer now.

When I upgrade Ubuntu Linux from 16.04 to 16.10, the OpenCC version jump from 0.4.3 to 1.0.4. It is ok to install OpenCC:

$ sudo apt-get update
$ apt-cache search opencc
libopencc-dbg - simplified-traditional chinese conversion library - debug
libopencc-dev - simplified-traditional Chinese conversion library - development
libopencc2 - simplified-traditional Chinese conversion library - runtime
libopencc2-data - simplified-traditional Chinese conversion library - data files
opencc - simplified-traditional Chinese conversion tool
$ sudo apt-get install opencc

Then I tried to install libopencc-dev to compile OpenCC Go binding/wrapper [2], I got the following error message:

$ sudo apt-get install libopencc-dev
The following packages have unmet dependencies:
 libopencc-dev : Depends: libopencc2 (= 1.0.4-1ubuntu0.16.10.1) but it is not going to be installed

After some googling, I manually download and install libopencc-dev:

$ wget
$ sudo dpkg -i libopencc-dev_1.0.4-1ubuntu0.16.10.1_amd64.deb

And finally I successfully compile the OpenCC Go binding/wrapper:

$ go get -u

But after you finish to use the OpenCC Go binding/wrapper, remove libopencc-dev manually:

$ sudo dpkg -r libopencc-dev

If you keep libopencc-dev, you cannot use apt-get to update and upgrade your system.

Tested on: Ubuntu Linux 16.10, Go 1.7.4, opencc 1.0.4-1ubuntu0.16.10.1.


[1]開放中文轉換 Open Chinese Convert (OpenCC) (source code, online doc)
[2]stevenyao/go-opencc · GitHub (OpenCC wrapper for Golang, godoc1)
[3][Golang] Conversion of Traditional and Simplified Chinese
[4]opencc package : Ubuntu
[5]GitHub - sakilu/go-opencc-crawler: golang opencc

command line - Update the system from terminal - Ask Ubuntu

dpkg - How do I get a list of installed files from a package? - Ask Ubuntu

Linux Halwa: How to force install .deb package

How to uninstall a .deb installed with dpkg? - Unix & Linux Stack Exchange