Issue:
Some users building Android & Docker, on Ubuntu 20.04 have reported receiving below error on apt-get commands of some Steps (for example, Flutter or Amazon S3 Bucket Sync).
Failed to install (awscli) with apt-get
Failed to install Step dependency, error: command failed with exit status 100 (sudo "apt-get" "update"): Hit:1 https://packages.cloud.google.com/apt cloud-sdk InRelease
Ign:2 https://deb.nodesource.com/node_16.x focal InRelease
Hit:3 https://dl.yarnpkg.com/debian stable InRelease
Err:4 https://deb.nodesource.com/node_16.x focal Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 23.62.230.111 443]...
Hit:12 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:10 https://packagecloud.io/github/git-lfs/ubuntu focal InRelease
Reading package lists...
E: The repository 'https://deb.nodesource.com/node_16.x focal Release' does not have a Release file.
Solution:
This seems to be an error with certificates, they are either outdated or missing. To fix this, we will need to use a script to update/install the certificates needed for the apt-get install.
Add a custom Script step before the Step with the apt-get
command that contains this:
β
sudo apt update
sudo apt-get install ca-certificates -y