Postgres_upgrade – Crashed. Cant start or Install any App that uses postgres

Hello!

About 2 weeks ago a wave of problems started to dawn on my server as soon as i took an USB stick that i forgot since i installed truenas some months ago. most of then i solved but the biggest one still looming over me. all my docks apps are not working and crashing when starting the postgres_upgrade container the container logs reports

/bin/bash: error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory

and the var/logs

(ERROR) app_lifecycle.compose_action():56 - Failed ‘up’ action … Container ix-romm-postgres_upgrade-1 service “postgres_upgrade” didn’t complete successfully: exit 127\nservice “postgres_upgrade” didn’t complete successfully: exit 127\n

(log abreviated for clarity)

updating or rollingback does not fix the error. also re-installing Truenas and rollingback to a snapshot, installing a new instace dosent work too. i think its something corrupted with the App container itself. im pretty much out of ideas. any suggestions are welcome!