Page 1 of 1

http://ftp.debian.org/debian 404 | Failed connection test

Posted: Thu Feb 23, 2017 11:32 pm
by jngutierrez

If you are experiencing this issue, please see the following link for info and a resolution:
https://github.com/Fourdee/DietPi/issue ... -282374707

Hi. I just wrote a DietPi image for a OPi PC and though it boots ok, the installation wizard says there's no internet connection after trying http://ftp.debian.org/debian which is 404. As that is the web it uses to determine if there's internet connection, I can't continue with the installation. After that, it prompts to execute a manual test which is successful and checks that in fact there is internet connection, but when I choose install, the same test to ftp.debian.org/debian is made and the installation can't continue. Can you guys tell me how can I fix this? Thanks.

P.S After quitting the installation wizard, I ran apt-get update and apt-get upgrade with no problems. I've upgraded to the last version of DietPi but the problem seems to be the default test URL.

Re: http://ftp.debian.org/debian 404, can't continue install

Posted: Fri Feb 24, 2017 3:19 am
by jngutierrez
jngutierrez wrote:Hi. I just wrote a DietPi image for a OPi PC and though it boots ok, the installation wizard says there's no internet connection after trying http://ftp.debian.org/debian which is 404. As that is the web it uses to determine if there's internet connection, I can't continue with the installation. After that, it prompts to execute a manual test which is successful and checks that in fact there is internet connection, but when I choose install, the same test to ftp.debian.org/debian is made and the installation can't continue. Can you guys tell me how can I fix this? Thanks.

P.S After quitting the installation wizard, I ran apt-get update and apt-get upgrade with no problems. I've upgraded to the last version of DietPi but the problem seems to be the default test URL.
EDIT: Ok, I searched deeply in the DietPi install wizard scripts and managed a way to get over this error without breaking APT. Do the following with root permissions:

Code: Select all

nano /etc/apt/sources.list
put

Code: Select all

deb http://security.debian.org jessie/updates main contrib non-free
on top of the list. The textfile should be as follows:

Code: Select all

deb http://security.debian.org jessie/updates main contrib non-free
deb http://ftp.debian.org/debian jessie main contrib non-free
deb http://ftp.debian.org/debian jessie-updates main contrib non-free
deb http://ftp.debian.org/debian jessie-backports main contrib non-free

Re: http://ftp.debian.org/debian 404, can't continue install

Posted: Fri Feb 24, 2017 11:07 am
by saysomestuff
Thanks so much for posting this fix, I was just about to go delving around to see if I could get around it with the sources list but you saved me the trouble.

Great stuff - glad I checked the forum now!

Re: http://ftp.debian.org/debian 404, can't continue install

Posted: Fri Feb 24, 2017 5:47 pm
by Fourdee
Hi all,
on top of the list. The textfile should be as follows:
Interesting that works, thanks for sharing :)

We are aware of this issue and looking to resolve it for v145. It appears Debian has changed their webserver configuration over night and now requires a / at the end of url entries:
https://github.com/Fourdee/DietPi/issue ... -282203823

A quick solution is to exit DietPi-Software and select another APT mirror:
dietpi-config > Networking Options: NAS/MISC > Apt Mirror

Re: http://ftp.debian.org/debian 404, can't continue install

Posted: Fri Feb 24, 2017 6:02 pm
by xylie6
Modifying sources.list solved the issue. Thanks JnGutierrez.

BTW, while I was trying to install, I did change the mirror site. Prior to the test, It was changed to a known good site. The status of my connection was then all good. The issue with running software remained though.

Thanks for the help.

Steve.