Unable to update Vero 4K

If I try to update on the command line I just get:

Err:1 http://apt.osmc.tv buster InRelease                                                                                                      
  Could not connect to apt.osmc.tv:80 (77.68.92.173). - connect (113: No route to host)
Err:2 http://deb.debian.org/debian buster InRelease                                                                                            
  Could not connect to debian.map.fastlydns.net:80 (151.101.18.132). - connect (113: No route to host) Unable to connect to deb.debian.org:http:
Err:3 http://deb.debian.org/debian buster-updates InRelease          
  Unable to connect to deb.debian.org:http:
Err:4 http://security.debian.org buster/updates InRelease
  Could not connect to debian.map.fastlydns.net:80 (151.101.18.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) Could not connect to security.debian.org:80 (151.101.194.132). - connect (113: No route to host)
Reading package lists... Done                           
W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease  Could not connect to debian.map.fastlydns.net:80 (151.101.18.132). - connect (113: No route to host) Unable to connect to deb.debian.org:http:
W: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease  Unable to connect to deb.debian.org:http:
W: Failed to fetch http://security.debian.org/dists/buster/updates/InRelease  Could not connect to debian.map.fastlydns.net:80 (151.101.18.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) Could not connect to security.debian.org:80 (151.101.194.132). - connect (113: No route to host)
W: Failed to fetch http://apt.osmc.tv/dists/buster/InRelease  Could not connect to apt.osmc.tv:80 (77.68.92.173). - connect (113: No route to host)
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  curl libcurl4 libgnutls30 libtirpc-common libtirpc3 tzdata
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,984 kB of archives.
After this operation, 3,072 B disk space will be freed.
Do you want to continue? [Y/n] 
Ign:1 http://deb.debian.org/debian buster-updates/main armhf tzdata all 2021a-0+deb10u6                                 
Err:1 http://deb.debian.org/debian buster-updates/main armhf tzdata all 2021a-0+deb10u6               
  Could not connect to debian.map.fastlydns.net:80 (199.232.174.132). - connect (113: No route to host) Could not connect to deb.debian.org:80 (151.101.18.132). - connect (113: No route to host)
Err:2 http://security.debian.org buster/updates/main armhf libgnutls30 armhf 3.6.7-4+deb10u9
  Could not connect to debian.map.fastlydns.net:80 (199.232.174.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.194.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.2.132). - connect (113: No route to host)
Err:3 http://security.debian.org buster/updates/main armhf curl armhf 7.64.0-4+deb10u3
  Unable to connect to security.debian.org:http:
Err:4 http://security.debian.org buster/updates/main armhf libcurl4 armhf 7.64.0-4+deb10u3
  Unable to connect to security.debian.org:http:
Ign:5 http://security.debian.org buster/updates/main armhf libtirpc-common all 1.1.4-0.4+deb10u1
Err:6 http://security.debian.org buster/updates/main armhf libtirpc3 armhf 1.1.4-0.4+deb10u1
  Unable to connect to security.debian.org:http:
Err:5 http://security.debian.org buster/updates/main armhf libtirpc-common all 1.1.4-0.4+deb10u1
  Unable to connect to security.debian.org:http:
E: Failed to fetch http://security.debian.org/pool/updates/main/g/gnutls28/libgnutls30_3.6.7-4+deb10u9_armhf.deb  Could not connect to debian.map.fastlydns.net:80 (199.232.174.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.194.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.2.132). - connect (113: No route to host)
E: Failed to fetch http://deb.debian.org/debian/pool/main/t/tzdata/tzdata_2021a-0+deb10u6_all.deb  Could not connect to debian.map.fastlydns.net:80 (199.232.174.132). - connect (113: No route to host) Could not connect to deb.debian.org:80 (151.101.18.132). - connect (113: No route to host)
E: Failed to fetch http://security.debian.org/pool/updates/main/c/curl/curl_7.64.0-4+deb10u3_armhf.deb  Unable to connect to security.debian.org:http:
E: Failed to fetch http://security.debian.org/pool/updates/main/c/curl/libcurl4_7.64.0-4+deb10u3_armhf.deb  Unable to connect to security.debian.org:http:
E: Failed to fetch http://security.debian.org/pool/updates/main/libt/libtirpc/libtirpc-common_1.1.4-0.4+deb10u1_all.deb  Unable to connect to security.debian.org:http:
E: Failed to fetch http://security.debian.org/pool/updates/main/libt/libtirpc/libtirpc3_1.1.4-0.4+deb10u1_armhf.deb  Unable to connect to security.debian.org:http:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I can sometimes get it to work by restarting connman, but not always.
I can’t even ping google.com

route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         0.0.0.0         255.255.255.255 UH    0      0        0 wlan0
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 wlan0
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0

Can you post some logs if you are able to?

Had to do it manually as obviously it couldn’t resolve the server.

https://paste.osmc.tv/usevikarij.xml

Do you have Wifi connection and Ethernet together?
Seems you first get correct routes configured but then something is adding the wrong routes.

Sep 23 20:20:27 osmcBR connmand[7445]: wlan0 {add} address 192.168.2.113/24 label wlan0 family 2
Sep 23 20:20:27 osmcBR connmand[7445]: wlan0 {add} route 192.168.2.0 gw 0.0.0.0 scope 253 <LINK>
Sep 23 20:20:27 osmcBR connmand[7445]: wlan0 {add} route 192.168.2.1 gw 0.0.0.0 scope 253 <LINK>
Sep 23 20:20:27 osmcBR connmand[7445]: wlan0 {add} route 0.0.0.0 gw 192.168.2.1 scope 0 <UNIVERSE>
Sep 23 20:20:27 osmcBR connmand[7445]: eth0 {RX} 9409894 packets 2153382652 bytes
Sep 23 20:20:27 osmcBR connmand[7445]: eth0 {TX} 730801 packets 64379489 bytes
Sep 23 20:20:27 osmcBR connmand[7445]: eth0 {update} flags 102467 <UP,RUNNING,LOWER_UP>
Sep 23 20:20:27 osmcBR connmand[7445]: eth0 {newlink} index 2 address C4:4E:AC:14:3C:86 mtu 1500
Sep 23 20:20:27 osmcBR connmand[7445]: eth0 {newlink} index 2 operstate 6 <UP>
Sep 23 20:20:27 osmcBR avahi-daemon[7188]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.2.113.
Sep 23 20:20:27 osmcBR avahi-daemon[7188]: New relevant interface eth0.IPv4 for mDNS.
Sep 23 20:20:27 osmcBR avahi-daemon[7188]: Registering new address record for 192.168.2.113 on eth0.IPv4.
Sep 23 20:20:27 osmcBR connmand[7445]: rp_filter set to 2 (loose mode routing), old value was 2
Sep 23 20:20:27 osmcBR kernel: meson6-dwmac c9410000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
Sep 23 20:20:27 osmcBR connmand[7445]: ipconfig state 3 ipconfig method 1
Sep 23 20:20:27 osmcBR connmand[7445]: eth0 {add} address 192.168.2.113/24 label eth0 family 2
Sep 23 20:20:27 osmcBR connmand[7445]: eth0 {add} route 192.168.2.0 gw 0.0.0.0 scope 253 <LINK>
Sep 23 20:20:27 osmcBR connmand[7445]: eth0 {add} route 0.0.0.0 gw 0.0.0.0 scope 253 <LINK>
Sep 23 20:20:27 osmcBR connmand[7445]: wlan0 {del} route 0.0.0.0 gw 192.168.2.1 scope 0 <UNIVERSE>
Sep 23 20:20:27 osmcBR connmand[7445]: eth0 {add} route 0.0.0.0 gw 0.0.0.0 scope 253 <LINK>
Sep 23 20:20:28 osmcBR connmand[7445]: wlan0 {add} route 82.165.8.211 gw 192.168.2.1 scope 0 <UNIVERSE>
Sep 23 20:20:28 osmcBR connmand[7445]: wlan0 {del} route 82.165.8.211 gw 192.168.2.1 scope 0 <UNIVERSE>
Sep 23 20:20:28 osmcBR connmand[7445]: eth0 {del} route 0.0.0.0 gw 0.0.0.0 scope 253 <LINK>
Sep 23 20:20:28 osmcBR connmand[7445]: wlan0 {add} route 0.0.0.0 gw 192.168.2.1 scope 0 <UNIVERSE>
Sep 23 20:20:28 osmcBR connmand[7445]: wlan0 {add} route 82.165.8.211 gw 192.168.2.1 scope 0 <UNIVERSE>

I did have, but after releasing I tried disabling wi-fi. It hasn’t helped.

Hi,

Are you using openvpn? Is it successfully connecting to the VPN server?

Have any iptables rules been setup to enforce all traffic goes through the VPN?

Regards Tom.

No, I’m not using a VPN or any iptable rules.

So Wired is configured with DHCP? Maybe try static to just be able to update.

Both were configured as static. I’ve now disabled the wi-fi connection.

HI,

Sep 23 20:21:34 osmcBR systemd[1]: openvpn.service: Succeeded.
Sep 23 20:21:34 osmcBR ntpd[6797]: 176.58.109.199 local addr 192.168.2.113 -> <null>
Sep 23 20:21:34 osmcBR systemd[1]: Stopped OpenVPN service.

According to the logs, openvpn is being started and adding a route. I would suggest trying to disable openvpn and reboot:

sudo systemctl disable openvpn

After the reboot does the issue still occur?

Thanks Tom.

That didn’t help, but what has worked is:
sudo route add default gw 192.168.2.1
but only until a reboot.

Hi,

Apologies openvpn being enabled was a red herring, its seems that is the norm now and perfectly safe; but can remained disabled if you are not using it.

That’s because the route isn’t persistent, but adding the route shouldn’t be required. Can you please try the following:

sudo rm /var/lib/connman/ethernet_*
sudo rm /var/lib/connman/wifi_*

Then reboot.

Regards Tom.

Did that on one of my devices and after putting the connection details in again it worked. On the other device I just added to the file in /var/lib/connman/ethernet
IPv4.gateway=192.168.2.1

1 Like