Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Problems installing Debian, and using wget

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
Nielsterp
Posts: 3
Joined: 2020-02-11 12:41

Problems installing Debian, and using wget

#1 Post by Nielsterp »

Hi there,

I have had a strange problem for some time now. I have installed Debian many times, it is absolutely my favourite. I used to install from the netinstall image, but since sometimes like half a year ago, in the end of the installation it could not find any file mirrors, and the installation could not be completed.

At the time I had a lot of problems with my LAN, and that clouded the problem for some time. Now I found the error, a defective patch cable, but even now, a installation from the netinstall image does not work. No matter what I do, it times out on adding the file mirrors.

I then downloaded a live CD with a desktop, there I selected to skip the file mirrors, and added them myself in sources.list from the wiki. That works, but now I have another problem: Every time I use wget to make a connection, it takes a looooong time before the connection is made. As soon as that happens, the connection goes at normal speed.

I am on a fast 250/250 fibre connection with a very low latency, so that should no be the problem.

My sources.list looks like this :

deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free

deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free

deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security/ stretch/updates main contrib non-free

As you can see, I'm running Stretch, but I have had the very same problem with Jessie and Buster.

Cheers
Niels

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: Problems installing Debian, and using wget

#2 Post by Chrisdb »

Could be related to IPV6

try running apt-get with the following:

Code: Select all

-o Acquire::ForceIPv4=true
and see how that works

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Problems installing Debian, and using wget

#3 Post by p.H »

Nielsterp wrote:Every time I use wget to make a connection, it takes a looooong time before the connection is made
Sounds like a DNS resolution issue or defective IPv6 connectivity (i.e. configuration like if there was IPv6 connectivity but there is none).

Nielsterp
Posts: 3
Joined: 2020-02-11 12:41

Re: Problems installing Debian, and using wget

#4 Post by Nielsterp »

Chrisdb wrote:Could be related to IPV6

try running apt-get with the following:

Code: Select all

-o Acquire::ForceIPv4=true
and see how that works
This worked very well! So I tried to add --inet4-only to my wget - and ZAP! the file was there. That took like 5 or even 10 minutes before!

This part solves my problems completely - thank you very much !

Is there any way to apply the same solution to a netinstall installation of Debian?

Cheers
Niels

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: Problems installing Debian, and using wget

#5 Post by Chrisdb »

You can try adding the following as kernel parameter during boot:

Code: Select all

ipv6.disable=1

peter_irich
Posts: 1405
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Problems installing Debian, and using wget

#6 Post by peter_irich »

Or in /etc/sysctl.conf insert

Code: Select all

net.ipv6.conf.all.disable_ipv6 = 1
and

Code: Select all

sysctl -p
Last edited by peter_irich on 2020-02-12 18:02, edited 1 time in total.

Nielsterp
Posts: 3
Joined: 2020-02-11 12:41

Re: Problems installing Debian, and using wget

#7 Post by Nielsterp »

Chrisdb wrote:You can try adding the following as kernel parameter during boot:

Code: Select all

ipv6.disable=1
And this also work very fine, now I don't even have to use the -o Acquire::ForceIPv4=true on my WGETs - it just works in a flash. Perfect - thank you very much for your help !

Now I will try to build a netinstall image with this kernel parameter added - I have a good feeling about this now !

BUT FIRST: A full backup of my - now allmost perfect - server. :mrgreen: :mrgreen: :mrgreen:

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Problems installing Debian, and using wget

#8 Post by p.H »

Disabling IPv6 system-wide or by program is just a workaround. You should fix the broken IPv6 setup on your network.

Post Reply