Sometimes, you ran into issues that apt update package list so slow or even can not connect to the destination server.
You can change the default list into new one near your country. Get example : if you live in ASIA, choose the Singapore or Japan mirror instead of main mirror. you just change the "archive.ubuntu.com" and "security.ubuntu.com" to "[country_code].archive.ubuntu.com" in file list
sudo apt update to test your new mirror :)
TIP : you can generate the new source list file based on this online tool : https://repogen.simplylinux.ch/generate.php