Problems installing Debian, and using wget

Help with issues regarding installation of Debian

Problems installing Debian, and using wget

Postby Nielsterp » 2020-02-11 13:13

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
Nielsterp
 
Posts: 3
Joined: 2020-02-11 12:41

Re: Problems installing Debian, and using wget

Postby Chrisdb » 2020-02-11 13:33

Could be related to IPV6

try running apt-get with the following:
Code: Select all
-o Acquire::ForceIPv4=true


and see how that works
Chrisdb
 
Posts: 273
Joined: 2018-04-10 07:16

Re: Problems installing Debian, and using wget

Postby p.H » 2020-02-11 13:37

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).
p.H
 
Posts: 1298
Joined: 2017-09-17 07:12

Re: Problems installing Debian, and using wget

Postby Nielsterp » 2020-02-11 15:24

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
Nielsterp
 
Posts: 3
Joined: 2020-02-11 12:41

Re: Problems installing Debian, and using wget

Postby Chrisdb » 2020-02-11 16:57

You can try adding the following as kernel parameter during boot:
Code: Select all
ipv6.disable=1
Chrisdb
 
Posts: 273
Joined: 2018-04-10 07:16

Re: Problems installing Debian, and using wget

Postby peter_irich » 2020-02-11 17:34

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.
peter_irich
 
Posts: 1269
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Problems installing Debian, and using wget

Postby Nielsterp » 2020-02-11 21:49

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:
Nielsterp
 
Posts: 3
Joined: 2020-02-11 12:41

Re: Problems installing Debian, and using wget

Postby p.H » 2020-02-13 15:48

Disabling IPv6 system-wide or by program is just a workaround. You should fix the broken IPv6 setup on your network.
p.H
 
Posts: 1298
Joined: 2017-09-17 07:12


Return to Installation

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable