I was able to uninstall the CLI on WSL (Ubuntu 20.04.1 LTS on Windows 10 x86_64 host machine) using:
sudo rm -fr /opt/pf9/cli
sudo rm -fr ~/pf9
sudo rm /usr/bin/pf9ctl
but I am unable to uninstall pf-hostagent
:
-bash: /home/jervan/pf9/bin/pf9-bash-profile.sh: No such file or directory
jervan@KORCLT38593:~$ ps -ef |grep hostAgent
jervan 3983 3943 0 16:34 tty2 00:00:00 grep --color=auto hostAgent
jervan@KORCLT38593:~$ sudo systemctl stop pf9-hostagent
[sudo] password for jervan:
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
jervan@KORCLT38593:~$ sudo systemctl stop pf9-nodeletd
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
jervan@KORCLT38593:~$ sudo systemctl stop pf9-kubelet
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
jervan@KORCLT38593:~$ sudo apt-get purge pf9-hostagent
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
pf9-hostagent*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 147 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 175528 files and directories currently installed.)
Removing pf9-hostagent (4.5.0-409.5192397) ...
dpkg: error processing package pf9-hostagent (--remove):
installed pf9-hostagent package pre-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
dpkg: error while cleaning up:
installed pf9-hostagent package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
pf9-hostagent
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)