Fixing Debian Dependency Package Database
<p>I seem to have managed to completely mess up my Debian server. It's important to note I'm not very good with Debian and find myself completely out my league with this issue.</p>

<p>Getting on with it, below is a screenshot of the error from running:
    apt-get -f install</p>

<p>It all came from me trying to install Python3.5 and no has gotten to this mess.</p>

<p><a href="https://i.stack.imgur.com/Tc4Ds.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tc4Ds.png" alt="Error from apt-get -f install"></a></p>

<p>Thank you for your time, I appreciate it.</p>

<p><strong>Edit:</strong> Following from Jamil Said's response:</p>

<p><a href="https://i.stack.imgur.com/pP2uI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pP2uI.png" alt="enter image description here"></a></p>

<p><strong>Edit:</strong> Following Jamil Said's edit I used dpkg --purge --force-all to remove some problematic packages and then removed the test source before apt-get update.</p>

<p>Had to ensure I reinstalled the kernel though.</p>