db2twitter command not found

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

Introduction

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

db2twitter: command not found

or when using sudo you get the following error message

sudo: db2twitter: command not found

Solutions to db2twitter: command not found

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

In Ubuntu db2twitter is provided by db2twitter package.

db2twitter is:

db2twitter fetches data from a database using the SQLAlchemy library, filling a user-defined template to build a tweet and send it. db2twitter keeps track of already sent tweets and only sends a new tweet if it was not sent before. db2twitter information are stored in a sqlite database.

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

sudo apt-get -y install db2twitter

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

You can also use apt command to install db2twitter.

sudo apt -y install db2twitter

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

sudo aptitude install db2twitter

Summary

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