I was really happy with OSMC. A couple of days ago, a new update was made available for my Raspberry Pi box. I have been waiting a couple of days to install it because I was afraid, it would break my system.
Today I finally decided to update the system. I took approx. 1h15m to update but everything went well… until I realized that I dont have connection to internet anymore. When I type “ping www.google.com” it comes an error and the machine is not able to connect to any internet site. I have no connection at all. So all Kodi plugins that rely on Internet are not working anymore. The only thing that it is working is the LAN connection to other servers within my network.
My connection to internet is fine (I am sending this message with my laptop) and all other machines have no issues. I also checked the internet connection of my Raspberry Pi before making the update and everything was fine.
Well not that easy without internet access. But considering that LAN is working I assume you still can reach the device via SSH can you post the output of this commands:
ifconfig route -n ping <PUT HERE THE IP THAT IS SHOWN IN THE OUTPUT BEHIND 0.0.0.0> ping 8.8.8.8 host www.google.com cat /etc/resolv.conf
Ok so I assume you use DHCP to configure your network, or?
The problem is somehow now DNS Server is configured or better to say the local machine is your DNS Server.
Did you install any network-manager or VPN solution?
I suggest to try to configure your Network Settings manually to see if you can get connected again to then be able to upload logs so we find out whats going on/
Looks like your DHCP server is not assigning a DNS IP address. Or previously your OSMC was running its own dns server. Resolv conf is pointing to local box.
Try changing this to your routers IP or Google’s DNS
File: /etc/resolv.conf nameserver 192.168.0.1
or nameserver 8.8.8.8
Manually editing /etc/resolv.conf will not last. Even if you didn’t have dhcpd installed (which you shouldn’t) connman will overwrite resolv.conf next time you connect to the network. If you need to manually specify dns you should do it either via my osmc->network or from the command line using connmanctl.
You were right. The solution does not last. I don’t have dhcpd installed and I don not need to specify manually a dns. How I can just make the change nameserver 8.8.8.8 last? Thanks!
Well, you are right, but if I look at my_osmc -> Network, the specified DNS is 198.168.0.1, which is my router (it’s correct). But if I reboot, the file /etc/resolv.conf is changed to nameserver 127.0.0.1, which is not correct… Who is changing the configuration?
osmc@osmc:~$ sudo apt-get purge udhcpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'udhcpd' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
And:
osmc@osmc:~$ sudo apt-get purge dhcpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'udhcpd' instead of 'dhcpd'
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
I think I installed once pihole but now if I run:
osmc@osmc:~$ sudo pihole uninstall
sudo: pihole: command not found
So I suppose that this program is not installed anymore.
Does it make any sense? This error is happening only after I updated the last time. I had already booted the Raspberry Pi many times before and with the November version of OSMC this problem didn’t occur.