No route to host

Just tried doing an update over ssh, but I’m getting the error:
Could not connect to apt.osmc.tv:80 (77.68.92.173). - connect (113: No route to host)

ifconfig
eth0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500
inet 192.168.2.113 netmask 255.255.255.0 broadcast 192.168.2.255
ether c4:4e:ac:14:3c:86 txqueuelen 1000 (Ethernet)
RX packets 1116962 bytes 1580074499 (1.4 GiB)
RX errors 0 dropped 32 overruns 0 frame 0
TX packets 350309 bytes 34860521 (33.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 30

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1 (Local Loopback)
RX packets 1658 bytes 146512 (143.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1658 bytes 146512 (143.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=-28669<UP,BROADCAST,MULTICAST,DYNAMIC> mtu 1500
ether cc:b8:a8:c8:d6:ec txqueuelen 1000 (Ethernet)
RX packets 399 bytes 121095 (118.2 KiB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 47 bytes 15338 (14.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

In OSMC Network configuration, it says “No internet” for both wired and wireless networks.

Videos will play, but Plex-for-Kodi can’t find my server.

systemctl status connman.service
● connman.service - Connman connection service
Loaded: loaded (/lib/systemd/system/connman.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2022-06-08 10:06:49 BST; 20min ago
Main PID: 2364 (connmand)
Tasks: 1 (limit: 1620)
Memory: 6.3M
CGroup: /system.slice/connman.service
└─2364 /usr/sbin/connmand -n --nodnsproxy --config=/etc/connman.conf

Jun 08 10:17:50 osmcBR connmand[2364]: wlan0 {newlink} index 3 operstate 6
Jun 08 10:17:50 osmcBR connmand[2364]: wlan0 {RX} 399 packets 121095 bytes
Jun 08 10:17:50 osmcBR connmand[2364]: wlan0 {TX} 47 packets 15338 bytes
Jun 08 10:17:50 osmcBR connmand[2364]: wlan0 {update} flags 102403 <UP,LOWER_UP>
Jun 08 10:17:50 osmcBR connmand[2364]: wlan0 {newlink} index 3 address CC:B8:A8:C8:D6:EC mtu 1500
Jun 08 10:17:50 osmcBR connmand[2364]: wlan0 {newlink} index 3 operstate 5
Jun 08 10:17:50 osmcBR connmand[2364]: wlan0 {RX} 399 packets 121095 bytes
Jun 08 10:17:50 osmcBR connmand[2364]: wlan0 {TX} 47 packets 15338 bytes
Jun 08 10:17:50 osmcBR connmand[2364]: wlan0 {newlink} index 3 address CC:B8:A8:C8:D6:EC mtu 1500
Jun 08 10:17:50 osmcBR connmand[2364]: wlan0 {newlink} index 3 operstate 5

Hi,

Are you using dhcp or a static IP on osmcBR?

Regards Tom.

I was on static IP, but I tried dhcp too.
Think I’ve fixed it. I compared different files between my 2 devices and found that /etc/hosts was missing the line:
::1 osmc localhost6.localdomain6 localhost6
Adding this back seems to have fixed the issues.

1 Like