According to documentation it seems the machine executor is still using Ubuntu 14.04 Trusty Tahr. Trusty will be EOL in days. Is there any way to use a more recent machine executor?
Note that I’m using the machine executor so I can install snaps, which cannot happen within docker.
At the bottom of the docs I now see that I can use image: ubuntu-1604:201903-01. Unfortunately, it seems broken:
$ sudo apt update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://dl.google.com/linux/chrome/deb stable Release [943 B]
Get:3 http://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]
Hit:4 http://archive.canonical.com/ubuntu xenial InRelease
Hit:5 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:6 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease
Hit:7 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:8 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Err:3 http://dl.google.com/linux/chrome/deb stable Release.gpg
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E
Hit:9 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:10 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease
Hit:11 https://cli-assets.heroku.com/apt ./ InRelease
Hit:12 https://download.docker.com/linux/ubuntu xenial InRelease
Ign:13 https://packagecloud.io/circleci/trusty/ubuntu xenial InRelease
Err:14 https://packagecloud.io/circleci/trusty/ubuntu xenial Release
404 Not Found
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com/linux/chrome/deb stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E
E: The repository 'https://packagecloud.io/circleci/trusty/ubuntu xenial Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Good point. We alway have an Ubuntu 16.04 image available with 18.04 in the pipeline for this year as well.
The default machine image may still be 14.04, but if it is it should be changed any day now. I’ll check in by Monday to help make sure that happens. That change should be happening today according to our previous announcement: Default machine executor image update
As far as the Ubuntu 16.04 image being broken, that I wasn’t aware of. I’ll check that and follow up here.
Excellent, thanks @FelicianoTech. Thanks for the link to the announcement as well, I’ve now made sure I’m subscribed to that category so I see such things in the future.
Both the Ubuntu 16.04 and Ubuntu 14.04 machine images have had their repository issues fixed. apt-get update will work just fine now.
The default machine image has not yet changed over to Ubuntu 16.04 as originally planned. For anyone reading this in the future, here’s how you would use the newer Ubuntu image: