OnOff Shim - Apt failed to update indexes!


#1

So, it looks like some time recently the apt repo referenced by the OnOff Shim is down, and serving 403 Forbidden to anyone trying to access it. This, of course, breaks the script and means the OnOff shim isn’t much use without the repo/package/script.

Heres the output:

 $ ./onoffshim

This script will install everything needed to use
On/Off SHIM

Always be careful when running scripts and commands copied
from the internet. Ensure they are from a trusted source.

If you want to see what this script does before running it,
you should run: 'curl https://get.pimoroni.com/onoffshim'


Support for your operating system is experimental. Please visit
forums.pimoroni.com if you experience issues with this product.


Do you wish to continue? [y/N] y

Checking environment...
Updating apt indexes...
............W: Failed to fetch http://dl.bintray.com/pipplware/dists/jessie/main/binary/./Packages  403  Forbidden

W: Failed to fetch http://dl.bintray.com/pipplware/dists/jessie/armv7/binary/./Packages  403  Forbidden

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

I’m guessing the Pimoroni guys should probably know about this, and I’m sort of hacking a replacement together now, but does anyone have a mirror of the original repo?


#2

The script isn’t referencing this apt repo, this apt repo has been added to your OS (RetroPie?) by, IIRC, a Kodi installer. It then has subsequently gone down. Your apt is now broken, and when our installer tries to use it to update, the error pops up and we get the blame :(

You will need to edit your /etc/apt/sources.list or files in /etc/apt/sources.list.d/ to remove this rogue package source.


#3

See: https://retropie.org.uk/forum/topic/11800/error-using-sudo-apt-get-update/4

It’s possible that, if you did use a Kodi installer, re-running the latest version of said installer might fix your package management for you.


#4

Ah, yes, you’re right - I should have spotted that way before I hopped on here.

That’ll teach me to use an old image card with random repos added and assume it was all still okay!

On the plus side, I now know how to interface with GPIO a lot better, and I’m a huge fan of the OnOff Shim - an excelent little bit of kit, and something that should be used on every serious Pi!


#5

I’ve seen this same issue crop up 4-5 times so far, so you’re definitely not alone!