How to fix "tasksel: apt-get failed (100)" error on Debian 12

Endrit Qerreti

Endrit Qerreti

Tasksel is a command line app that you can use to install different packages on Debian 12, such as : web server, ssh server, Desktop environments and more.

In this tutorial, you will learn how to fix the error "tasksel: apt-get failed (100) " on Debian 12 "Bookworm".

This error happens when you are installing a package with tasksel, and tasksel it's not able to complete the process.

This happens mainly because of reasons below:

1) Broken packages

If you are updating packages on your system, and you accidentally terminate the process, for example turning off your computer while packages are being updated.

2) Internet connection issues

Internet connection issues can also cause tasksel to not work correctly.

3) Interrupted download

If you terminate tasksel process while it is downloading a package, you will end up with a broken package.

4) Not enough free space

Tasksel doesn't take much space, but a desktop environment does. So you need to make sure that your system has enough free space before you download the Desktop environment.

Step 1 - Fix Broken Packages

To fix the error "tasksel: apt-get failed (100)" first you must fix broken packages on your system.

To fix broken packages that were interrupted during the installation process, you need to rebuild the broken packages using the --configure option.

Fixing these packages is easy to do, simply launch your terminal and run the command the below

sudo dpkg --configure -a

Step 2 - Update Debian 12

Once the broken packages have been reconfigured and installed on your system. You can proceed to update your system.

Updating your system is necessary after fixing broken packages.

sudo apt update

Step 3 - Use Tasksel

Finally, you can run tasksel again, and check if the issue was fixed. Simply run the command below, and try to install the package that was triggering this error on tasksel.

sudo tasksel


In this tutorial, you learned how to fix the error "tasksel: apt-get failed (100)" On Debian 12 "Bookworm"