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

 

 

 

[Software] No Route to Host

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
karottenkopf
Posts: 5
Joined: 2023-01-27 10:41
Has thanked: 3 times

[Software] No Route to Host

#1 Post by karottenkopf »

Hello!

"sudo apt update" gives me these errors and i don't know why. I do have a stable internet connection and e.g. firefox is working as always, so i can as usually browse the internet.
my system seems to be up to date though.
sudo apt update
Hit:1 https://deb.debian.org/debian bullseye InRelease
Hit:2 https://deb.debian.org/debian bullseye-updates InRelease                                                                                               
Hit:3 https://updates.signal.org/desktop/apt xenial InRelease                                                                                                
Hit:4 https://deb.debian.org/debian bullseye-backports InRelease                                                                                             
Hit:5 https://packages.element.io/debian default InRelease                                                                                                   
Hit:6 https://notesalexp.org/debian/bullseye bullseye InRelease                                                                                              
Err:7 http://ppa.launchpad.net/yt-dlp/stable/ubuntu lunar InRelease                                                                                          
  Could not connect to ppa.launchpad.net:80 (185.125.190.52). - connect (113: No route to host)
Err:8 http://ftp.es.debian.org/debian bullseye InRelease                                                                                                     
  Could not connect to ftp.es.debian.org:80 (130.89.148.12). - connect (113: No route to host)
Err:9 http://security.debian.org bullseye-security InRelease                                                   
  Could not connect to debian.map.fastlydns.net:80 (151.101.134.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.2.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.130.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.66.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.194.132). - connect (113: No route to host)
Reading package lists... Done                           
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://security.debian.org/dists/bullse ... /InRelease  Could not connect to debian.map.fastlydns.net:80 (151.101.134.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.2.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.130.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.66.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.194.132). - connect (113: No route to host)
W: Failed to fetch http://ftp.es.debian.org/debian/dists/b ... /InRelease  Could not connect to ftp.es.debian.org:80 (130.89.148.12). - connect (113: No route to host)
W: Failed to fetch http://ppa.launchpad.net/yt-dlp/stable/ ... /InRelease  Could not connect to ppa.launchpad.net:80 (185.125.190.52). - connect (113: No route to host)
W: Some index files failed to download. They have been ignored, or old ones used instead.

also my curl command replies to me that it can't connect to any servers.
curl ifconfig.net
curl: (7) Failed to connect to ifconfig.net port 80 after 5955 ms: Couldn't connect to server
any ideas?

thanks!!

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: [Software] No Route to Host

#2 Post by Aki »

Hello,
Is it a network configuration issue ?
Check the output of the following commands:

Code: Select all

script log.txt
su -l -c "apt install traceroute"
apt update
traceroute ftp.es.debian.org
exit
The output will be saved in the file named "log.txt" that you could analyse and/or share.

note: it is usually recommended non to mix packages from different distribution (not to obtain the so called "frankendebian" [1])

---
[1] https://wiki.debian.org/DontBreakDebian
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: [Software] No Route to Host

#3 Post by sunrat »

Please use code tags for terminal text output, not preformatted text tags.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

karottenkopf
Posts: 5
Joined: 2023-01-27 10:41
Has thanked: 3 times

Re: [Software] No Route to Host

#4 Post by karottenkopf »

Code: Select all

apt update
Hit:1 https://updates.signal.org/desktop/apt xenial InRelease
Hit:2 https://deb.debian.org/debian bullseye InRelease                                                                                                       
Hit:3 https://deb.debian.org/debian bullseye-updates InRelease                                                                                               
Hit:4 https://deb.debian.org/debian bullseye-backports InRelease                                                                                             
Hit:5 https://packages.element.io/debian default InRelease                                                                                                   
Hit:6 https://notesalexp.org/debian/bullseye bullseye InRelease                                                                                              
Err:7 http://ppa.launchpad.net/yt-dlp/stable/ubuntu lunar InRelease                                                                                          
  Could not connect to ppa.launchpad.net:80 (185.125.190.52). - connect (113: No route to host)
Err:8 http://ftp.es.debian.org/debian bullseye InRelease                                                                                                     
  Could not connect to ftp.es.debian.org:80 (130.89.148.12). - connect (113: No route to host)
Err:9 http://security.debian.org bullseye-security InRelease                                                   
  Could not connect to debian.map.fastlydns.net:80 (151.101.134.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.194.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.2.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.66.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.130.132). - connect (113: No route to host)
Reading package lists... Done                           
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://security.debian.org/dists/bullseye-security/InRelease  Could not connect to debian.map.fastlydns.net:80 (151.101.134.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.194.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.2.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.66.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.130.132). - connect (113: No route to host)
W: Failed to fetch http://ftp.es.debian.org/debian/dists/bullseye/InRelease  Could not connect to ftp.es.debian.org:80 (130.89.148.12). - connect (113: No route to host)
W: Failed to fetch http://ppa.launchpad.net/yt-dlp/stable/ubuntu/dists/lunar/InRelease  Could not connect to ppa.launchpad.net:80 (185.125.190.52). - connect (113: No route to host)
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@debian:/home/user# traceroute ftp.es.debian.org
traceroute to ftp.es.debian.org (130.89.148.12), 30 hops max, 60 byte packets
 1  _gateway (192.168.1.1)  0.914 ms  1.108 ms  1.079 ms
 2  192.168.69.1 (192.168.69.1)  6.873 ms  7.524 ms  7.825 ms
 3  10.253.4.21 (10.253.4.21)  10.652 ms  7.892 ms  7.605 ms
 4  37.50.14.62.static.jazztel.es (62.14.50.37)  8.597 ms  8.171 ms  8.704 ms
 5  orangespain-10.gw.opentransit.net (193.251.251.206)  11.099 ms  10.227 ms  10.297 ms
 6  193.251.251.229 (193.251.251.229)  10.866 ms bundle-ether102-24.bartr2.barcelona.opentransit.net (193.251.251.207)  9.778 ms  6.225 ms
 7  193.251.133.168 (193.251.133.168)  38.813 ms  38.735 ms bundle-ether300.pastr4.paris.opentransit.net (193.251.133.250)  32.042 ms
 8  bundle-ether303.partr1.paris.opentransit.net (193.251.131.8)  39.185 ms  38.409 ms  38.923 ms
 9  81.52.200.157 (81.52.200.157)  41.855 ms bundle-ether303.partr1.paris.opentransit.net (193.251.131.8)  46.179 ms  39.219 ms
10  ae23.zl001a-jnx-01.surf.net (145.145.176.51)  46.997 ms  45.892 ms 81.52.200.157 (81.52.200.157)  46.846 ms
11  e4-0-0-0.es001b-jnx-01.surf.net (145.145.0.78)  46.776 ms  46.005 ms  36.664 ms
12  utwente-router.customer.surf.net (145.145.4.46)  35.931 ms  35.843 ms  36.270 ms
13  cr1-sein-to-bdr1-sein.routing.utwente.nl (130.89.254.0)  40.840 ms  41.461 ms  43.907 ms
14  130.89.254.131 (130.89.254.131)  36.528 ms  38.450 ms  37.931 ms
15  klecker-ftp.debian.org (130.89.148.12)  36.226 ms  37.761 ms *

this is the output of apt update and traceroute. so as far as i understand it, there is a connection to the ftp server with traceroute, but not for apt?

thanks for the hint @sunrat and thanks for the reply @Aki

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: [Software] No Route to Host

#5 Post by Aki »

Hello,

You computer can reach the remote host ftp.es.debian.org using traceroute, while it cannot connect to it using apt.

The traceroute command traces the route between your computer and remote host ftp.es.debian.org without using http or ftp protocol.

Let's take a look again to the apt log:

Code: Select all

apt update
Hit:1 https://updates.signal.org/desktop/apt xenial InRelease
Hit:2 https://deb.debian.org/debian bullseye InRelease                                                                                                       
Hit:3 https://deb.debian.org/debian bullseye-updates InRelease                                                                                               
Hit:4 https://deb.debian.org/debian bullseye-backports InRelease                                                                                             
Hit:5 https://packages.element.io/debian default InRelease                                                                                                   
Hit:6 https://notesalexp.org/debian/bullseye bullseye InRelease                                                                                              
Err:7 http://ppa.launchpad.net/yt-dlp/stable/ubuntu lunar InRelease                                                                                          
  Could not connect to ppa.launchpad.net:80 (185.125.190.52). - connect (113: No route to host)
Err:8 http://ftp.es.debian.org/debian bullseye InRelease                                                                                                     
  Could not connect to ftp.es.debian.org:80 (130.89.148.12). - connect (113: No route to host)
Err:9 http://security.debian.org bullseye-security InRelease                                                   
  Could not connect to debian.map.fastlydns.net:80 (151.101.134.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.194.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.2.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.66.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.130.132). - connect (113: No route to host)
Reading package lists... Done                           
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://security.debian.org/dists/bullseye-security/InRelease  Could not connect to debian.map.fastlydns.net:80 (151.101.134.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.194.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.2.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.66.132). - connect (113: No route to host) Could not connect to security.debian.org:80 (151.101.130.132). - connect (113: No route to host)
W: Failed to fetch http://ftp.es.debian.org/debian/dists/bullseye/InRelease  Could not connect to ftp.es.debian.org:80 (130.89.148.12). - connect (113: No route to host)
W: Failed to fetch http://ppa.launchpad.net/yt-dlp/stable/ubuntu/dists/lunar/InRelease  Could not connect to ppa.launchpad.net:80 (185.125.190.52). - connect (113: No route to host)
W: Some index files failed to download. They have been ignored, or old ones used instead.
For http://ftp.es.debian.org/debian, the errors/failures ("113: No route to host") happen when apt tries to connect to the port 80 of the remote host (the port 80 is the default port for http protocol). On the contrary, there's no error when using the https protocol (that uses the port 443) on different hosts.

It could be worth verify if "something" is blocking connections between your computer and the port 80 of the remote host ftp.es.debian.org. You can check it with the curl command (the curl package need to be installed):

Code: Select all

curl -v http://ftp.es.debian.org/debian 
curl -v http://www.debian.org
curl -v https://www.debian.org
For the security repository, the correct configuration should be [1] in /etc/apt/sources.list:

Code: Select all

deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
However:
1) the ftp.es.debian.org/debian is duplicated in respect to deb.debian.org/debian and, therefore, it can be omitted.
2) it is usually recommended not to install packages from external repositories (e.g., ppa or others) unless you don't know exactly what packages are installing and they do not interfere with (e.g. dependencies) nor replace Debian's ones.

Hope that helps.

---
[1] https://wiki.debian.org/it/SourcesList
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: [Software] No Route to Host

#6 Post by Aki »

@karottenkopf:
Have you made any progress?
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply