Your second log file is blank and the first one is only a Kodi log, so not very helpful in this situation.
Can you provide these two logs ?
paste-log /var/log/apt/term.log
paste-log /var/log/apt/history.log
I suspect I know what your problem is so you could try the following to fix it from ssh: (after providing the above two logs, and please check that you can see the log on the paste site so that we can post-mortem the problem)
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get -f -y dist-upgrade