qrcode command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
qrcode: command not found
or when using sudo you get the following error message
sudo: qrcode: command not found
Solutions to qrcode: command not found
How To Fix qrcode: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu qrcode is provided by go-qrcode package.
go-qrcode is:
Package qrcode implements a QR Code encoder in Go language.
A QR Code is a matrix (two-dimensional) barcode. Arbitrary content may be encoded, with URLs being a popular choice :)
Each QR Code contains error recovery information to aid reading damaged or obscured codes. There are four levels of error recovery: Low, medium, high and highest. QR Codes with a higher recovery level are more robust to damage, at the cost of being physically larger.
The maximum capacity of a QR Code varies according to the content encoded and the error recovery level. The maximum capacity is 2,953 bytes, 4,296 alphanumeric characters, 7,089 numeric digits, or a combination of these.
This package contains the command-line tool qrcode.
To fix this problem, we can install more using the command below.
sudo apt-get -y install go-qrcode
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install go-qrcode.
sudo apt -y install go-qrcode
Or if you have aptitude installed you can use the following command.
sudo aptitude install go-qrcode
Summary
In this tutorial we learn how to fix qrcode command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.