Uninstall fish issue

  • DietPi version: v9.12.1
  • Architecture: x86_64 normal and on VirtualBox
  • Software title: “fish” from “Optimised Software list”
  • Software installed: freshly
  • This issue can be replicated on a fresh installation: YES
  • If you sent a “dietpi-bugreport”, please paste the ID here:
    10fb3bad-0035-4fdb-9477-f5abeb828a5c

Uninstalling “fish” from “DietPi-Software” will give this error:

Command: rm /etc/fish/conf.d Exit code: 1

Maybe something related Uninstall script Fish gives error - no SSH-login possible afterwards · Issue #7500 · MichaIng/DietPi · GitHub

For what I see (and understand) it’s not the same issue.

In my case, I just don’t arrive to the end of the uninstallation of “fish”.

Then I “force” to exit.

Then again, the system works correctly, “fish” it’s not more working (like it is uninstalled) but result to be installed in DietPi-Software.

I think there’s something wrong in the script which uninstall “fish” optimized.

If “fish” is installed in the “normal” way (apt install fish), it can be uninstalled normally.

It is exactly that issue. The uninstall aborts due to missing -R in dir removal command, after the APT package has been removed already. This leaves the installed flag in dietpi-software present.

Important is that you change back the shell for users to bash via chsh command as noted in that issue.

Probably worth a live patch.