hbf2gf command not found

In this troubleshooting guide we learn how to fix hbf2gf command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

hbf2gf: command not found

or when using sudo you get the following error message

sudo: hbf2gf: command not found

Solutions to hbf2gf: command not found

How To Fix hbf2gf: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu hbf2gf is provided by latex-cjk-common package.

latex-cjk-common is:

CJK is a macro package for LaTeX to enable typesetting in Chinese, Japanese, Korean and Thai, and it supports Vietnamese through the “vntex” macro. And you can still use Russian, Greek and other languages in the same document. It supports various CJK encodings, like UTF-8, Big5, GB, JIS, KS, CNS (through CEF) and Emacs MULE.

This package will install the common files, as well as a few GNU/Emacs Lisp files, and it provides support for furigana (“ruby text”) and PinYin, either with or without tone marks.

To fix this problem, we can install more using the command below.

sudo apt-get -y install latex-cjk-common

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install latex-cjk-common.

sudo apt -y install latex-cjk-common

Or if you have aptitude installed you can use the following command.

sudo aptitude install latex-cjk-common

Summary

In this tutorial we learn how to fix hbf2gf command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.