Kodi install errors on 4.2 - Fixed - Lexar 633x SD card was the root cause
-
Hi, I've got retropie installed and working well for games, but install the optional package Kodi fails. This was built a week ago using the latest download of retropie from the main site.
Info as per readme.
Pi Model or other hardware: 3 with new 32GB SD card
Power Supply used: Not sure- USB 2A
RetroPie Version Used: 4.2
Built From: Pre made SD Image on RetroPie - retropie-4.2-rpi2_rpi3.img.gz
USB Devices connected: 1 x SNES USB and USB/IR
Controller used: 1 x SNES USB
Error messages received: see below
Log found : https://pastebin.com/kLhpXFv4
Guide used: (Mention if you followed a guide) - as per the retropie site.Steps followed;
- Install kodi as optional package and it fails as per pastbin log.
- tried again with the same errors
- ran "'sudo dpkg --configure -a" as requested from the log for the failed install
- did an update to retro-pie scripts from the menu in case there was some script update needed.
- did kodi install again with the errors regarding policykit-1.
I'm a bit lost. There is 750MB on the SD card. It boots and runs fine. We've tested 20-30 games with no issues so I doubt the SD card/fs is corrupt.
I'm good with the command line so are there manual commands I can run to install kodi? i've done it plenty of times on my ATV2s and on this Pi (it ran dedicated kodi on a different SD prior).
Thanks
Byron
-
@choppedfish Try:
sudo apt-get clean sudo apt-get update sudo apt-get dist-upgrade
-
Thanks for support.
I did the above sudo commands twice as I got an error on the sudo apt-get update first time. Second time round seemed clean.
I then redid kodi from the menu and the policykit was installed ok and kodi was installing and then there was a crap load of i/o errors and extfs4 errors and the file system was mounted read only. I had to do a hard reboot and there was no log (empty).
This is a bit of a concern and despite kodi saying it's installed (it's not on the menu). It seems there is still an issue.
Next step I think is uninstall kodi and try again.
I just did the uninstall and there were errors asking the following to be run "sudo dpkg --configure -a". Kodi is now uninstalled.
Is there a way to check the filesystem? I ran fsck but it warned that as the fs was mounted it would cause severe damage.
I suspect the SD card is corrupt.
Thanks
Byron
-
@choppedfish Yes, i/o errors are problems reading the filesystem, it may be corrupted or the SD card may be damaged. Some SD cards, especially the more recent ones, may not work well on the Raspberry Pi also.
-
@choppedfish
You can force a fsck on reboot with the following:$ sudo touch /forcefsck
$ sudo shutdown -r nowThis will perform a "safe" filesystem check and repair.
And if you're powering off your Pi without performing a shutdown (or doing it through the ES interface), don't.
-
@dodgedeboulet During setup when i was testing different emulators we did do some hard reboots when we couldn't get a response so perhaps thats the issue.
The SD is a class 10 Lexar so nothing fancy.
I'm going to try the fsck first and then a clean build of retropie on the SD card and see where that leads me.
Thanks
Byron
-
@choppedfish
There are certainly times when things are so fubar'ed that pulling the plug is the only option :D -
@dodgedeboulet Agreed!
-
I did the fsck and it did not report any errors.
I then redid the kodi install as per below. This is exactly the error from the first step above and the same from when i installed retropie the first time around on the SD card. This build is the second time as I screwed up the emulators and didn't know how to fix it.
I'm going to try a clean build on another SD card to see if it helps.
B
-
I tried a completely different SD card and everything is going well. Some further googling shows that it could be the Lexar card. I see some people reported issues with the 300x Lexar. This was a 633x card that works fine every other respect.
The Sandisk card I have now is super slow but i'm having none of the errors I was getting before.
Thanks for all the help.
Byron
-
I've had troubles with a couple of cards before appearing corrupt. This is how I fixed it (going from memory here, as I am at work).
On an Ubuntu box, put your card in, and pull up the "disks" utilities (how to get there varies on your Linux interface). Choose your SD card. Delete all the partitions that are on it. Format it as FAT, but don't choose the "quick" option, choose the one that writes all zeros to the drive.
Then, still on your Ubuntu box, use the utility called "etcher" I think (again, going from memory here) to write your Retropie image to the SD card. This utility is slower, but (in my experience) far more reliable than Win32DiskImager.
Last time I did this, the process took over two days. But, it did resurrect a 128GB card from the dead, which is working just fine in my friend's Retropie right now.
Hope this helps someone.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.