bg5latex command not found

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

Introduction

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

bg5latex: command not found

or when using sudo you get the following error message

sudo: bg5latex: command not found

Solutions to bg5latex: command not found

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

In Ubuntu bg5latex is provided by latex-cjk-chinese package.

latex-cjk-chinese is:

CJK is a macro package for LaTeX. This package gives you the possibility to include Chinese (traditional and simplified) text in your (La)TeX documents.

Install hbf-jfs56 if you want to use bitmap fonts in simplified Chinese. Install hbf-cns40-b5 if you want bitmap fonts in traditional Chinese. Install hbf-cns40-[1-7] if you want CEF bitmap fonts. This is only needed if you need extremely rare and exotic Chinese characters.

Have a look at latex-cjk-common for a more detailed description.

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

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

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

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

sudo apt -y install latex-cjk-chinese

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

sudo aptitude install latex-cjk-chinese

Summary

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