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

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
jngutierrez

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

Post 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.
jngutierrez

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

Post 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
saysomestuff

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

Post 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!
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

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

Post 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
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
xylie6
Posts: 2
Joined: Tue Feb 07, 2017 1:49 am

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

Post 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.
Post Reply