slmprune command not found

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

Introduction

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

slmprune: command not found

or when using sudo you get the following error message

sudo: slmprune: command not found

Solutions to slmprune: command not found

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

In Ubuntu slmprune is provided by sunpinyin-utils package.

sunpinyin-utils is:

Sunpinyin is a statistical language model (SLM) based input method engine for Simplified Chinese, it features full sentence input.

This package contains some utilities used by open-gram project, including:

  • genpyt - generate the pinyin lexicon
  • tslmpack - convert the ARPA format of SunPinyin back-off language model to its binary representation
  • tslmendian - change the byte-order of sunpinyin’s threaded back-off language model

and some Python programs which maybe used to import user dictionary from other input method such as sougou, google, fcitx etc.

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

sudo apt-get -y install sunpinyin-utils

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

You can also use apt command to install sunpinyin-utils.

sudo apt -y install sunpinyin-utils

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

sudo aptitude install sunpinyin-utils

Summary

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