Can't run updates!

After upgrading from FreePBX 13 to 14 (distro) I get the following error when I try to do any updates.

RPM command errored, tried to run ‘/usr/bin/rpm -q --queryformat “%{VERSION}.%{RELEASE}\n” Trying’, exited with error 2


Second problem I just noticed. After logging off (the console) I can’t login again. I just get a blank cursor.

Does anybody have any ideas? Here is what I get in the GUI when I attempt to go to the updates tab. I am wondering if I should do a backup a clean install and then a restore? If I do that what will I loose?

Okay I just found out the entire issue is connected to the logout issue. If I run updates before I ever log into the console everything works perfectly.

Once I loose the console updates fail. Putty BTW still works!

Literall black screen with nothing that I seem to be able to do.