Build failure trying to push balena-ssh-python-master to RPi 3

Here’s some of the output from the Windows command line:

Directory of D:\Balena\balena-ssh-python-master

04/22/2019 10:41 AM .
04/22/2019 10:41 AM …
04/22/2019 10:41 AM 495 Dockerfile.template
04/22/2019 10:41 AM 1,076 LICENSE
04/22/2019 10:41 AM 172 main.py
04/22/2019 10:41 AM 1,668 README.md
04/22/2019 10:41 AM 13 requirements.txt
04/22/2019 10:41 AM 210 start.sh
6 File(s) 3,634 bytes
2 Dir(s) 865,581,191,168 bytes free

D:\Balena\balena-ssh-python-master>balena push MissionCtrl_x32
[Info] Starting build for MissionCtrl_x32, user vincent5

image

The reason for this is that Wheezy and Jessie were removed from the mirrors. I’d recommend to switch to Debian Stretch and to migrate your project to balenalib images. Or as a workaround, you can add …

RUN sed -i '/jessie-updates/{s/^/#/}' /etc/apt/sources.list

… to your Dockerfile.template before running apt-get.