Updating OSMC 2017.01.1 (bringing it back to life)

Hi all, as the topic says, i’m trying to bring my RPi back to life. I’ve been up and down the forum trying to stuff via PuTTY and OSMC’s direct command line but to no avail.

these two threads have been the closest results i end up getting: especially this one… i can get my IP but OSMC says i have no connection (eth0 no internet) - but swapping the cable to a LAN connection in my router; i can now access it via PuTTY.

and trying the sudo apt-get update just produces these symptoms:

This RPi was sold to us as a complete unit and worked fine around 2017. Our local internet speeds are fairly bad so it got harder and longer to use Kodi, so I eventually just left it to gather dust. But I would like to give it one last try.

Any advice would be great. I’ve enabled logging on my OSMC but still quite raw to it so I’ll try to do the best I can.
cheers!
Matt

Well logs and a copy/paste of what is the output of sudo apt-get update and sudo apt-get dist-upgrade might put us into a position to help you.

To get a better understanding of the problem you are experiencing we need more information from you. The best way to get this information is for you to upload logs that demonstrate your problem. You can learn more about how to submit a useful support request here.

Depending on the used skin you have to set the settings-level to standard or higher, in summary:

  • enable debug logging at settings->system->logging

  • reboot the OSMC device

  • reproduce the issue

  • upload the log set either using the Log Uploader method within the My OSMC menu in the GUI or the ssh method invoking command grab-logs -A

  • publish the provided URL from the log set upload, here

Thanks for your understanding. We hope that we can help you get up and running again shortly.

OSMC skin screenshot:

Is there anything precious you have on that 2-year-old install? There was a major upgrade at the end of 2017 which may no longer work. If I were you I would install a new image and if you really must copy across the .kodi directory from the old SD card.

2 Likes

Nothing precious at all - we rarely used it except for certain tv shows; one of which has just started back up again…hence why I am giving this another go!

I’ve often thought about this option: just wiping it and starting new. Would it be more effort to do this or can it be easily done?

No effort at all, just download installer from Download - OSMC to write a current image to the SD Card. Only effort is to reconfigure your customization.

Would this answer why it’s not connecting to my network via ethernet cable?

ok here is what i am getting with my eth0 (no internet) issues:

osmc@KGBTV-514:~$ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:d2:5b:24
inet addr:169.254.75.80 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1
RX packets:56 errors:0 dropped:0 overruns:0 frame:0
TX packets:313 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5919 (5.7 KiB) TX bytes:22517 (21.9 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1774 errors:0 dropped:0 overruns:0 frame:0
TX packets:1774 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:137570 (134.3 KiB) TX bytes:137570 (134.3 KiB)

osmc@KGBTV-514:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth0
8.8.4.4 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
8.8.8.8 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0

osmc@KGBTV-514:~$ ping 169.254.75.80
PING 169.254.75.80 (169.254.75.80): 56 data bytes
64 bytes from 169.254.75.80: seq=0 ttl=64 time=0.283 ms
64 bytes from 169.254.75.80: seq=1 ttl=64 time=0.285 ms
64 bytes from 169.254.75.80: seq=2 ttl=64 time=0.291 ms
64 bytes from 169.254.75.80: seq=3 ttl=64 time=0.285 ms
^C
— 169.254.75.80 ping statistics —
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.283/0.286/0.291 ms

osmc@KGBTV-514:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
^C
— 8.8.8.8 ping statistics —
8 packets transmitted, 0 packets received, 100% packet loss

osmc@KGBTV-514:~$ host www.google.com
;; connection timed out; no servers could be reached

osmc@KGBTV-514:~$ cat /etc/resolv.conf

Generated by Connection Manager

nameserver 8.8.8.8
nameserver 8.8.4.4

here’s what i’m getting with apt-get update

osmc@KGBTV-514:~$ sudo apt-get update
Ign http://security.debian.org jessie/updates InRelease
Ign http://ftp.debian.org jessie InRelease
Ign http://apt.osmc.tv jessie InRelease
Err http://security.debian.org jessie/updates Release.gpg
Something wicked happened resolving ‘security.debian.org:http’ (-5 - No addres s associated with hostname)
Ign http://ftp.debian.org jessie-updates InRelease
Err http://apt.osmc.tv jessie Release.gpg
Something wicked happened resolving ‘apt.osmc.tv:http’ (-5 - No address associ ated with hostname)
Ign http://apt.osmc.tv jessie Release
Ign http://security.debian.org jessie/updates Release
Err http://ftp.debian.org jessie Release.gpg
Something wicked happened resolving ‘ftp.debian.org:http’ (-5 - No address associated with hostname)

etc etc etc - just keeps going but i assume that’s because it’s got not internet connection?

This is a link-local addresses which would indicate that your DHCP assignment didn’t work

is it on my network side or the osmc side? should i “configure network using DHCP” in the network menu on osmc?

Well that Depends on your LAN.
If you have a router that acts as a DHCP server than yo do DHCP else Static.
But currently it seem DHCP that is not working

my router has it enabled - it has a different IP address range / the lease time is 1 day / no option60 vender id and the dns’s are empty.

sorry if this isn’t helping. i’ve definately lost my touch with networking :slight_smile:

Well to be honest a bit hard for remote troubleshoot.
My suggestion would be that you try static IP to get going.

ok so i’ve configured it auto by dhcp and now things are happening! i’ll post results shortly my router is now detecting the RPi as well

osmc@KGBTV-514:~$ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:d2:5b:24
inet addr:192.168.1.16 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1
RX packets:1877 errors:0 dropped:0 overruns:0 frame:0
TX packets:4330 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:138737 (135.4 KiB) TX bytes:426871 (416.8 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:4894 errors:0 dropped:0 overruns:0 frame:0
TX packets:4894 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:410894 (401.2 KiB) TX bytes:410894 (401.2 KiB)

osmc@KGBTV-514:~$ sudo apt-get update
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://ftp.debian.org jessie InRelease
Get:2 http://ftp.debian.org jessie-updates InRelease [7340 B]
Get:3 http://apt.osmc.tv jessie InRelease [4669 B]
Get:4 http://ftp.debian.org jessie Release.gpg [2420 B]
Get:5 http://security.debian.org jessie/updates/main armhf Packages [638 kB]
Get:6 http://ftp.debian.org jessie Release [148 kB]
Err http://apt.osmc.tv jessie/main armhf Packages

Err http://apt.osmc.tv jessie/main armhf Packages

Get:7 http://ftp.debian.org jessie/main armhf Packages [6675 kB]
Err http://apt.osmc.tv jessie/main armhf Packages

Get:8 http://apt.osmc.tv jessie/main armhf Packages [25.2 kB]
Get:9 http://security.debian.org jessie/updates/contrib armhf Packages [1138 B]
Get:10 http://security.debian.org jessie/updates/non-free armhf Packages [4243 B ]
Get:11 http://security.debian.org jessie/updates/contrib Translation-en [1211 B]
Ign http://apt.osmc.tv jessie/main Translation-en
Get:12 http://security.debian.org jessie/updates/main Translation-en [335 kB]
Get:13 http://ftp.debian.org jessie/contrib armhf Packages [37.8 kB]
Get:14 http://security.debian.org jessie/updates/non-free Translation-en [11.8 k B]
Get:15 http://ftp.debian.org jessie/non-free armhf Packages [62.5 kB]
Get:16 http://ftp.debian.org jessie/contrib Translation-en [38.3 kB]
Get:17 http://ftp.debian.org jessie/main Translation-en [4581 kB]
Get:18 http://ftp.debian.org jessie/non-free Translation-en [72.0 kB]
Fetched 12.7 MB in 55s (229 kB/s)
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/InRelease Unable to find expected entry ‘main/binary-armhf/Packages’ in Release file (Wron g sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.

This is an old source that isn’t available anymore.
So that is the point why a reinstall is recommended.
You could try an upgrade manually but it might get working

i’ve tried manual update on the RPi box itself and and it seems to be doing things: blue screen + installing packages.

i’ll run this out and see what it does. if there is no success, i’ll explore reinstalling an updated image.

thanks for your patience, guys

so the update went through succesfully - i now have kodi 17.6 (asaik this is the latest version). everything is wiped but i have no problems with that. i can start over. maybe it was just a new router that i needed to help it update?

thanks again, guys.