-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathset-mirror.sh
27 lines (18 loc) · 1.91 KB
/
set-mirror.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
sudo sed -i 's|http://archive.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list
sudo sed -i 's|http://archive.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list.d/*.list
sudo sed -i 's|http://security.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list
sudo sed -i 's|http://security.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list.d/*.list
sudo sed -i 's|http://ppa.launchpad.net|https://launchpad.proxy.noc.one|g' /etc/apt/sources.list
sudo sed -i 's|http://ppa.launchpad.net|https://launchpad.proxy.noc.one|g' /etc/apt/sources.list.d/*.list
sudo sed -i 's|http://downloads-distro.mongodb.org|https://mongodb-distro.mirror.noc.one|g' /etc/apt/sources.list.d/*.list
sudo sed -i 's|http://us-east-1.ec2.archive.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list
sudo sed -i 's|http://us-east-1.ec2.archive.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list.d/*.list
sudo sed -i 's|http://us-central1.gce.archive.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list
sudo sed -i 's|http://us-central1.gce.archive.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list.d/*.list
sudo sed -i 's|http://us-central1.gce.clouds.archive.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list
sudo sed -i 's|http://us-central1.gce.clouds.archive.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list.d/*.list
sudo sed -i 's|http://asia-east1.gce.clouds.archive.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list
sudo sed -i 's|http://asia-east1.gce.clouds.archive.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list.d/*.list
sudo sed -i 's|http://europe-west1.gce.clouds.archive.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list
sudo sed -i 's|http://europe-west1.gce.clouds.archive.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list.d/*.list