Masseffect repo EOL instructions


DreamCompute Ubuntu 14.04 Virtual Machines (VMs) launched prior to August 7, 2019, included an apt repository mirror. This mirror was hosted by DreamHost and set up to provide quick package downloads from VMs, and to reduce the load on Canonical’s apt repositories.

This mirrored apt repository has been decommissioned. After a few weeks of monitoring the mirror, DreamHost believes there are very few customers who will be affected by this work. However, if you are one of the few who may be affected, the following are some tips to help ensure your VM continues to work as expected.

Who is affected?

To determine if you are affected, run the following command:
[user@instance]$ grep /etc/apt/sources.list

If nothing returns from this command, you are NOT affected and can continue using your VM as is. However, if you are affected by this work, you will see a result that looks similar to the following:

[user@instance]$ grep /etc/apt/sources.list
deb trusty main restricted
deb-src trusty main restricted
deb trusty-updates main restricted
deb-src trusty-updates main restricted

What to do if you’re affected

If you are affected by this mirror work, you have a few options on how to continue.

Option one: Building a new VM

The most disruptive solution would be to build a new VM and migrate your workload to this VM. Specifics on how to do this depends entirely on what software is running and how sensitive it is to changes such as IPs, OS versions, and so on.

Option two: Mirroring your VM

Even though DreamHost won’t be hosting a mirror of Ubuntu-14.04, Canonical has committed to continuing to provide support for Ubuntu-14.04 until April of 2022. As such, you can change the mirror your VM uses to point at Canonical’s apt repository.

The following are three different methods to accomplish this:

Method #1

Edit the file by hand using the vim command:

[user@instance]$ sudo vim /etc/apt/sources.list

Method #2

Edit the file using the sed command:

[user@instance]$ sudo sed -i 's/' /etc/apt/sources.list

Method #3

Modify the file using a simple Ansible playbook. The following example is a simple playbook. Run ansible-playbook fixit.yml to swap out the apt mirrors:

- name: Update apt mirrors
  hosts: localhost
  become: true
  connection: local
  gather_facts: no

    - name: Replace old mirror with new mirror
        path: /etc/apt/sources.list

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?