tasksel: apt-get failed (100)

Solution 1:

1.Check your /etc/resolv.conf.

This means checking your DNS settings for visiting website correctly. You can Google Public DNS address on internet :)

2.Check your /etc/apt/sources.list

This means checking your "Ubuntu Update Servers" list for using "apt-update" command.

3.Run apt-get update && apt-get install vim(or whatever the app is) for testing to see if it works.

4.Reboot and try it again...

Thanks for guys who given any suggestions :)

Solution 2:

This just happened to me. In my case the problem was caused by an previously interrupted package transaction. The solution was to run:

dpkg --configure -a

After that, tasksel worked as expected.

(short quick answer, just in case it helps someone out!)

Solution 3:

I had this problem and both answers above helped me, I restarted it a couple of times and final time this worked

sudo apt-get update 
dpkg --configure -a

and finally

sudo tasksel