I made a fresh install of Debian today and now I am trying to install the SSH server so i can connect to the machine remotely.
When I do apt-get install ssh it shows me that packages cannot be installed. Going down the line trying to install dependencies manually, I did get to the point where it requires the package libedit2(required by openssh-client, which is a dependency for server and so on).
Doing apt-get install i got the following message:
Package libedit2 is not available, but is referrer to by another package. This may mean that the package is missing, has been obsoleted or is only available from another source.
I checked the online package search and it looks like the package exists for Jessie. After that I checked the sources.list and had these lines there:
deb http://security.debian.org/ jessie/updates main deb http://ftp.uk.debian.org/ jessie-updates main
I didn't see a main repository(only updates) which the packages should probably be located in, so i added this:
deb http://ftp.debian.org/debian jessie main
After that i expect the packages to be found and installed but when i did apt-get update i received an error:
Failed to fetch http://ftp.debian.org/debian/dists/jessie/main/binary-i386/Packages 404 Not Found [IP: 126.96.36.199 80]
I am using an old AMD Athlon XP, this is why it has the x86 version installed and the i386 repositories are being checked.
Please help me fix the issue installing SSH. If you need any additional information, i will provide it.
Edit: I was trying to apt-get update whole morning when i wrote this question and i received and error stating the Packages were not found on the server. Now i did update again and everything completed successfully. After that I was receiving a hash mismatch error when trying to install SSH. I waited 30 more minutes, tried again and SSH installed. I have no explanation what happened.