How to Install Tasksel on Ubuntu 22.04 or 20.04

Tasksel is a Debian/Ubuntu tool that simplifies the installation and configuration of predefined software packages for specific purposes or tasks. It is designed to make it easier for users to install specific software packages related to a particular task or service without manually selecting each package. Tasksel is a command-line tool that can quickly and easily install entire sets of software packages, such as web server packages, database server packages, or desktop environment packages, with just a single command.

Here are some of the key features and benefits of using Tasksel:

  • Tasksel is a time-saving tool that allows users to install and configure multiple packages with a single command.
  • Tasksel simplifies installing software packages by grouping them based on specific tasks or services.
  • Tasksel ensures that all necessary dependencies are installed when installing software packages, which helps to prevent errors and compatibility issues.
  • Tasksel allows users to easily install common server configurations, such as LAMP (Linux, Apache, MySQL, PHP) and DNS (Domain Name System) servers.
  • Tasksel is a lightweight and easy-to-use tool that requires no special knowledge or expertise to use effectively.
  • Tasksel is open-source software available for free under the GNU General Public License (GPL).

The guide will demonstrate how to install Tasksel on Ubuntu 22.04 Jammy Jellyfish or Ubuntu 20.04 Focal Fossa using the APT package manager and the command-line terminal.

Step 1: Update Ubuntu

First, update your system to ensure all existing packages are up to date to avoid any conflicts during the installation.

sudo apt update && sudo apt upgrade

Step 2: Install Tasksel

Tasksel is a useful tool that simplifies installing and configuring predefined software packages for specific tasks or services. Luckily, it is readily available in the default repository of Ubuntu, making it easy to install. You can install Tasksel by entering the following command in your terminal:

sudo apt install tasksel

This command will install Tasksel and its dependencies, ensuring the tool works as intended.

Additionally, you can test Tasksel with the following command:

tasksel -t

This will open the Tasksel interface and allow you to select a task to test. Once you have selected a task, Tasksel will perform a dry run of the installation process, simulating the installation without actually installing any software packages.

Step 3: Using Tasksel on Ubuntu in the Terminal

Tasksel is a command-line tool that simplifies the installation and configuration of predefined software packages for specific tasks or services on Ubuntu. Here’s how you can use Tasksel in the terminal:

Launching Tasksel

To launch Tasksel, open the terminal and type the following command:


Selecting the Task

In the Tasksel interface, use the arrow keys to navigate to the task you want to install. Press the space bar to select the task, and then press Tab to move to the OK button. Press Enter to confirm your selection.

Here’s an example of selecting the LAMP server task using Tasksel:

ubuntu tasksel interface
* Install
  Basic Ubuntu Server
  LAMP server
  Mail server
  DNS server
  PostgreSQL database
  Print server
  Samba file server
  SSH server
  Virtual Machine host
  Xubuntu desktop
   <Ok>         <Cancel>

Installing the Packages

After selecting the task, Tasksel will start installing the required packages automatically. You may be prompted to enter additional information or set up a password during installation, depending on the task you selected.

Here’s an example of installing the LAMP server task using Tasksel:

ubuntu tasksel interface
Selecting previously unselected package apache2.
Setting up mysql-server-5.7 (5.7.35-0ubuntu0.18.04.1) ...
Setting up phpmyadmin (4:4.6.6-5ubuntu0.5) ...
 * Restarting Apache httpd web server apache2
   <Ok>         <Cancel>

Verifying the Installation

After the installation, you can verify that the packages are installed and configured correctly by checking the relevant service or software. For example, if you installed the LAMP server task, you can check that Apache, MySQL, and PHP are installed and running by typing the following command in the terminal:

sudo systemctl status apache2 mysql phpx.x-fpm

This will display the status of these services and confirm that they are running.


In conclusion, Tasksel is a powerful tool that simplifies the installation and configuration of predefined software packages for specific tasks or services on Ubuntu. Whether setting up a web server, database server, or desktop environment, Tasksel can save you time and effort by automating the installation process and ensuring that all necessary dependencies are installed.

Share to...