Running "sudo apt-get update" doesn't finish on BrickPi3

I have been having trouble installing the main scripts and it never finishes. I have a problem launching python3 because it comes up with this error. I am not sure why I get this error when updating. I have looked online for fixes for this but none have resulted a resolution of this error. Allowing me to install and update the programs.

 sudo apt-get update
Hit:1 stretch InRelease
Hit:2 stretch InRelease                                                                                 
Hit:3 stretch InRelease                                                                              
Reading package lists... Error!                    
E: Unable to parse package file /var/lib/dpkg/status (1)
W: You may want to run apt-get update to correct these problems
E: The package cache file is corrupted


You might want to clean the registries with sudo rm -rf /var/lib/apt/lists/* - maybe this works.

Secondly, can you tell us how did you get into this situation? What steps have you followed prior to seeing this? As far as I can tell, running curl -kL | bash should be more than enough.

Also, you can try the same thing by using the Raspbian For Robots image instead.


I have run that command and it has failed to work. I did run the dexterindustries command however the install doesn’t finish because of all these repo errors.

image This is happening non-stop when I try to install.


I see. This partially seems to be a problem coming from the package manager and a bit from our scripts, potentially due to the version of python that you are using. Did you somehow change the version of Python to which python command points to?

Also, I notice an error referring to scratchpy suggesting that it’s a file, instead of a directory. Anyway, this is the source code to that and I don’t see why this would fail - I can assure you delete_folder is doing its job. Probably the apt-get command is creating a cascade of issues and this happens too. We can only find out by fixing the package manager.

Since we don’t know what you’ve done on that image (or what steps you have followed) we can only suggest you reflash the image and start clean.

Can you tell us what was the image you’ve started with and what you did on it before running the curl ... brickpi3 | bash command?

Thank you!