When i reinstall a sofware via command line

any reason for not sharing the whole output?

Anyway, looks like the drive is connected by not mounted / used. Means not related to this issue.

Are you able to read content from password file? It should be a large number of numbers, letters and special characters.

cat /var/lib/dietpi/dietpi-software/.GLOBAL_PW.bin