diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 866a2ec8..bcf2ac28 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -76,7 +76,13 @@ metadata_v0: 'Dpkg::Use-Pty "0";' 'quiet "1";' >> /etc/apt/apt.conf.d/99gitlab + # Ubuntu and other distros often lack https:// support + - grep Debian /etc/issue.net + && { find /etc/apt/sources.list* -type f | xargs sed -i s,http:,https:, ; } + - echo 'Acquire::https::Verify-Peer "false";' > /etc/apt/apt.conf.d/99nocacertificates - apt-get update + - apt-get install ca-certificates + - rm /etc/apt/apt.conf.d/99nocacertificates - apt-get dist-upgrade