Change Mirrors from iWeb to Leaseweb

Change Mirrors from iWeb to Leaseweb

In this article you will find information to update a Linux server’s mirrors running under one of the OS described below.

CENTOS 7

  • Use the below commands to replace the iWeb mirror with the Leaseweb ones:
sudo sed -i s/centos.mirror.iweb.ca/mirror.mtl2.ca.leaseweb.net/g /etc/yum.repos.d/*.repo
sudo sed -i s/centos.mirror.iweb.com/mirror.mtl2.ca.leaseweb.net/g /etc/yum.repos.d/*.repo
  • This will automatically replace the mirror
  • If there is any issue replacing it, you can navigate to the file yum.repos.d using the following command:
cd /etc/yum.repos.d
  • And find the baseURL file “.repo”, use nano to open the text manager, find the old iWeb mirror and replace it with mirror.mtl2.ca.leaseweb.net

UBUNTU XX

  • Under Ubuntu, you can use a “sed” command or navigate directly to the folder and modify it
sudo sed -i 's|ubuntu-cd.mirror.iweb.com|mirror.mtl2.ca.leaseweb.net|g' /etc/apt/sources.list
sudo sed -i 's|ubuntu-cd.mirror.iweb.ca|mirror.mtl2.ca.leaseweb.net|g' /etc/apt/sources.list
  • Alternatively, you can replace the line manually by navigating to the folder below and replacing it with “mirror.mtl2.ca.leaseweb.net”:
sudo nano /etc/apt/sources.list

DEBIAN

  • For Debian, use apt edit-sources (as root!) to open /etc/apt/sources.list in the (command line) text editor of choice
  • Replace the line with the mirror with mirror.mtl2.ca.leaseweb.net
  • When the file is saved it will be checked for syntax errors