Unable to install nodejs randomly

For a few months, builds worked just fine. In my build cycle, it would look like this: https://i.imgur.com/UcpJq4V.png

I would use Circle’s UI to manually insert commands I would like to perform. I am unable to find that UI now. It appears it’s now missing?

The problem is that step 3, installing nodejs randomly fails.

Here are the logs of it working 4 days ago:

Reading package lists... Done


Building dependency tree       


Reading state information... Done

The following package was automatically installed and is no longer required:
  os-prober
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
  libc-ares2 libv8-3.14.5
The following NEW packages will be installed:
  libc-ares2 libv8-3.14.5 nodejs
0 upgraded, 3 newly installed, 0 to remove and 131 not upgraded.
Need to get 1,907 kB of archives.
After this operation, 7,538 kB of additional disk space will be used.


Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libc-ares2 amd64 1.10.0-2ubuntu0.1 [34.0 kB]

Get:2 archive.ubuntu.com/ubuntu/ trusty/universe libv8-3.14.5 amd64 3.14.5.8-5ubuntu2 [1,189 kB]

Get:3 archive.ubuntu.com/ubuntu/ trusty/universe nodejs amd64 0.10.25~dfsg2-2ubuntu1 [684 kB]

Fetched 1,907 kB in 0s (2,033 kB/s)
Selecting previously unselected package libc-ares2:amd64.
(Reading database ... 425403 files and directories currently installed.)
Preparing to unpack .../libc-ares2_1.10.0-2ubuntu0.1_amd64.deb ...
Unpacking libc-ares2:amd64 (1.10.0-2ubuntu0.1) ...
Selecting previously unselected package libv8-3.14.5.
Preparing to unpack .../libv8-3.14.5_3.14.5.8-5ubuntu2_amd64.deb ...
Unpacking libv8-3.14.5 (3.14.5.8-5ubuntu2) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../nodejs_0.10.25~dfsg2-2ubuntu1_amd64.deb ...
Unpacking nodejs (0.10.25~dfsg2-2ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libc-ares2:amd64 (1.10.0-2ubuntu0.1) ...
Setting up libv8-3.14.5 (3.14.5.8-5ubuntu2) ...
Setting up nodejs (0.10.25~dfsg2-2ubuntu1) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...

And then without any configuration changes, 3 days ago it started failing

sudo apt-get install nodejs
Reading package lists... Done


Building dependency tree       


Reading state information... Done

The following package was automatically installed and is no longer required:
  os-prober
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
  libc-ares2 libv8-3.14.5
The following NEW packages will be installed:
  libc-ares2 libv8-3.14.5 nodejs
0 upgraded, 3 newly installed, 0 to remove and 131 not upgraded.
Need to get 1,907 kB of archives.
After this operation, 7,538 kB of additional disk space will be used.


Err archive.ubuntu.com/ubuntu/ trusty-updates/main libc-ares2 amd64 1.10.0-2ubuntu0.1
  404  Not Found [IP: 91.189.88.161 80]

Err security.ubuntu.com/ubuntu/ trusty-security/main libc-ares2 amd64 1.10.0-2ubuntu0.1
  404  Not Found [IP: 91.189.91.23 80]

Get:1 archive.ubuntu.com/ubuntu/ trusty/universe libv8-3.14.5 amd64 3.14.5.8-5ubuntu2 [1,189 kB]

Get:2 archive.ubuntu.com/ubuntu/ trusty/universe nodejs amd64 0.10.25~dfsg2-2ubuntu1 [684 kB]

Fetched 1,873 kB in 1s (1,529 kB/s)
E: Failed to fetch security.ubuntu.com/ubuntu/pool/main/c/c-ares/libc-ares2_1.10.0-2ubuntu0.1_amd64.deb  404  Not Found [IP: 91.189.91.23 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

sudo apt-get install nodejs returned exit code 100

Action failed: sudo apt-get install nodejs

As you can see, it’s unable to fetch some archives. I would like to do as it suggests, adding an apt-get update or try with --fix-missing, but I am unable to locate the UI to alter these commands.

Are my only options to do this with a circle.yml file?

EDIT:

I solved this by running sudo apt-get update in the circle.yml file