Change Ubuntu Source Mirror Address

To change the source mirror address of the Ubuntu system, you can follow the steps below:

  1. Open the terminal by using the shortcut Ctrl+Alt+T.
  2. Execute the following command to backup the original source image file:
  3. 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
  4. Use the following command to edit the source image file:
  5. Edit the sources.list file using sudo nano.
  6. 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.
  7. After finishing the modifications, press Ctrl+X to save and exit the editor.
  8. Execute the following command to update the source mirror:
  9. Update the software packages using “sudo apt”.
  10. 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.
bannerAds