- 46 Views
- 30/10/2024
How to change mirror sg.archive.ubuntu.com to vn.archive.ubuntu.com on ubuntu
To change the mirror from sg.archive.ubuntu.com to vn.archive.ubuntu.com on Ubuntu, follow these steps:
Step 1: Open the `sources.list` file
In a terminal, open the `sources.list` file using a text editor:
sudo nano /etc/apt/sources.list
Step 2: Find and replace `sg.archive.ubuntu.com` with `vn.archive.ubuntu.com`
Inside `sources.list`, locate any lines containing `sg.archive.ubuntu.com` and replace them with `vn.archive.ubuntu.com`.
Alternatively, you can use the `sed` command to perform this replacement automatically:
sudo sed -i 's|sg.archive.ubuntu.com|vn.archive.ubuntu.com|g' /etc/apt/sources.list
Step 3: Update the package list
Once you've saved the changes, refresh the package list to use the new mirror:
sudo apt update
Now, Ubuntu will use vn.archive.ubuntu.com as the primary mirror.
