Change Ubuntu Source Mirror Address
To change the source mirror address of the Ubuntu system, you can follow the steps below:
- Open the terminal by using the shortcut Ctrl+Alt+T.
- Execute the following command to backup the original source image file:
- Make a backup copy of /etc/apt/sources.list by executing the following command as root: sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
- Use the following command to edit the source image file:
- Edit the sources.list file using sudo nano.
- You can view the current source mirror used by the system in the editor and modify these addresses to change the source mirror. Replace the original source mirror address with a new mirror address.
- After finishing the modifications, press Ctrl+X to save and exit the editor.
- Execute the following command to update the source mirror:
- Update the software packages using “sudo apt”.
- At this point, the original mirror address has been successfully modified, and you can now proceed to install or update software packages by executing other apt commands.