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” http://package1.sangoma.net/os/7.3/updates/x86_64/repodata/b4496fa7dc0f23f22d2a4ef613ab606633cb4bcf25751c9801195ab0e16d2650-primary.sqlite.bz2: Trying’, exited with error 2

HELP

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.