It usually goes this way:
- 1. Writhe the .img to the SD card.
- 2. First boot, everything goes fine, I'm seeing 'DietPi has been updated to the latest version.'
- 3. Second boot, trying to finish with 'Install', getting 'Apt-get simulation has failed.'
Code: Select all
E: Package 'bash-doc' has no installation candidate
Code: Select all
Err http://ftp.debian.org jessie/main armhf Packages
Err http://ftp.debian.org jessie/main armhf Packages
404 Not Found [IP: 130.89.148.12 80]
Fetched 12.0 MB in 20s (581 kB/s)
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie/main/binary-armhf/Packages 404 Not Found [IP: 130.89.148.12 80]
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie/non-free/binary-armhf/Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
So I tried:
Code: Select all
apt-get -o Debug::Acquire::http=true -o Debug::Hashs=true -o Debug::pkgAcquire::Auth=true update
I'm not very familiar with the apt-get update and I'm unable to debug the real cause here. From several runs I've spotted different issues each time, so I suspect that something is unstable and causing the errors. The SD Card was used for quite a long time on a Raspberry Pi without issues, so I suspect the OrangePi board itself. One time the gunzip and xz failed to decompress the Packages.gz/Packages.xz from http://ftp.debian.org/debian/dists/jess ... ary-armhf/. Other run usually ends up with different errors, but the one related to http://ftp.debian.org/debian/dists/jess ... ary-armhf/ is always present. It is either hashsum mismatch or 404 not found.
I can help by providing ssh access to the OrangePi Plus2 with fresh install if this will be useful (we'll have to use some 1:1 communication channel to share the details because I don't want to let everybody in my home network). Or I can dump the SD card once the errors are hit and upload the image.