I tried to remove
samba-server with this command (
sudo tasksel remove samba-server) and every app even the system apps are deleted and now xubuntu is stuck at boot, just showing loading. What should I do?
tasksel deleted my files too?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
TL;DR - it is a serious bug
Below is available options of
$ tasksel --help Unknown option: help Usage: tasksel install <task>... tasksel remove <task>... tasksel [options] -t, --test test mode; don't really do anything --new-install automatically install some tasks --list-tasks list tasks that would be displayed and exit --task-packages list available packages in a task --task-desc returns the description of a task
Samba task is named as
samba-server as you wrote:
$ tasksel --list-tasks | grep -i Samba u samba-server Samba file server
It consists of only one package:
$ tasksel --task-packages samba-server samba-server^
If we try to simulate uninstall - we get the following line:
$ sudo tasksel --test remove samba-server debconf-apt-progress -- apt-get -q -y \ -o APT::Install-Recommends=true \ -o APT::Get::AutomaticRemove=true -o APT::Acquire::Retries=3 \ install samba-server^-
(in the line above the last hyphen
- cause problems).
What I did:
sudo apt-get install tasksel
sudo tasksel install samba-server
sudo tasksel remove samba-server
Then I tried to repair the system:
resume Resume normal bootto access login shell
If you do not have internet - check Ethernet interface name and run DHCP-client manually on it:
ifconfig -a # got enp0s3 sudo dhclient enp0s3
xubuntu-desktop meta-package to the system:
sudo apt-get install xubuntu-desktop
After reboot I can access the system.
So it seems that it is a serious bug - I have found some with almost same symptoms:
Also I have filed new bug 1779645 "Critical bug in tasksel:
tasksel remove task-name removes whole system"
taskselfor removing things at least on 16.04 LTS and 18.04 LTS.