codecgen command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
codecgen: command not found
or when using sudo you get the following error message
sudo: codecgen: command not found
Solutions to codecgen: command not found
How To Fix codecgen: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu codecgen is provided by golang-github-ugorji-go-codec package.
golang-github-ugorji-go-codec is:
Package codec provides a High Performance, Feature-Rich Idiomatic Go 1.4+ codec/encoding library for binc, msgpack, cbor, json
This package contains the tools (codecgen).
To fix this problem, we can install more using the command below.
sudo apt-get -y install golang-github-ugorji-go-codec
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install golang-github-ugorji-go-codec.
sudo apt -y install golang-github-ugorji-go-codec
Or if you have aptitude installed you can use the following command.
sudo aptitude install golang-github-ugorji-go-codec
Summary
In this tutorial we learn how to fix codecgen command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.