YunoHost-Apps / zerotier_ynh

ZeroTier networking app for YunoHost
GNU General Public License v3.0
7 stars 2 forks source link

App removal does not remove the zerotier package #40

Closed tituspijean closed 4 days ago

tituspijean commented 1 year ago

cf. forum post: https://forum.yunohost.org/t/missing-zerotier-identity-file-service-cant-locate-executables/25287/9

Solution:

Delete the app.
sudo apt purge zerotier-ynh-deps zerotier-one -y
Try installing the app again :crossed_fingers:
Salamandar commented 7 months ago

Is it fixed with packaging v2 ?

tituspijean commented 1 month ago

Nope :(

# apt remove zerotier-one
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  zerotier-one
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 11.1 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 89352 files and directories currently installed.)
Removing zerotier-one (1.14.0) ...
Processing triggers for man-db (2.11.2-2) ...

# yunohost app install https://github.com/YunoHost-Apps/zerotier_ynh/tree/testing -f
==========
**License:** [Business Source License 1.1](https://github.com/zerotier/ZeroTierOne/blob/master/LICENSE.txt).
Most personal and internal use cases are free. See their [pricing page](https://zerotier.com/pricing/) for more details.

This package only installs the ZeroTier service and sets it up.
==========
Info: Installing zerotier…
Info: Provisioning sources...
Info: Provisioning system_user...
Info: Provisioning install_dir...
Info: Provisioning permissions...
Info: Provisioning ports...
Info: Provisioning apt...
Info: [+++++...............] > Adding zerotier's configuration file...
Info: [#####++++++.........] > Starting zerotier's systemd service...
Warning: Synchronizing state of zerotier-one.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: Executing: /lib/systemd/systemd-sysv-install enable zerotier-one
Info: [###########++++++...] > Waiting for identity generation...
Info: [####################] > Installation of zerotier completed
Success! Installation completed
==========
Your ZeroTier address is `d2b1200455`.
==========

# yunohost app remove zerotier
Info: Removing zerotier…
Info: [++++++..............] > Removing system configurations related to zerotier...
Info: [######+++++++.......] > Removing zerotier service...
Info: [####################] > Removal of zerotier completed
Info: Deprovisioning apt...
Info: Deprovisioning ports...
Info: Deprovisioning permissions...
Info: Deprovisioning install_dir...
Info: Deprovisioning system_user...
Info: Deprovisioning sources...
Success! zerotier uninstalled

# apt search zerotier
Sorting... Done
Full Text Search... Done
zerotier-one/now 1.14.0 amd64 [installed,local]
  ZeroTier network virtualization service