Recently we have noticed errors when running apt-get update before installing a package. This can lead to failed compute environment builds. There can be various causes to this issue, here are some of the more common.
- Not really an error, but you can ignore the error by adding `|| true`, i.e. run `apt-get update || true`. This will allow the build to proceed, but may not correctly install your package.
- The issue may be due to apt-get update attempting to use an http (vs https) URL. Add this before the update to resolve this issue by replacing http with https: `RUN sudo sed -i 's/http/https/g' /etc/apt/sources.list`
- You may be missing the apt-transport-https package. Install this before running the 'apt-get update' statement, 'RUN apt-get install apt-transport-https -y && apt-get update'.