Ubuntu Mirror (apt archive) in Iran
Ubuntu mirror (apt archive) — For Ubuntu updates in Iran, Rasanegaar Mirror keeps the APT archive close — without every host depending on archive.ubuntu.com.
About Ubuntu
Ubuntu is Canonical’s Linux distribution on an LTS and interim cadence. Packages, kernels, and security updates come from the official archive; every apt update moves real traffic.
On servers and desktops, distance to international mirrors means latency, occasional reachability gaps, and bandwidth cost. A local repository keeps the same indexes and packages in-country.
Ubuntu mirror in Iran
The Ubuntu mirror in Iran at mirror.rasanegaar.com/ubuntu serves the same archive layout so apt pulls from Rasanegaar’s software repository.
When the tree is live you can browse the listing, check size and last update, and point APT at it.
On Rasanegaar Mirror
https://mirror.rasanegaar.com/ubuntu/Switch with script
curl -fsSL https://mirror.rasanegaar.com/scripts/switch-ubuntu.sh | sudo bash
Manual steps
- Back up your APT sources.
- On Ubuntu 24.04 and newer, sources are usually DEB822 in this file — set archive and security URIs to the Rasanegaar Ubuntu mirror:
/etc/apt/sources.list.d/ubuntu.sourceshttps://mirror.rasanegaar.com/ubuntu - On older releases, classic
sources.listis common — replacearchive.ubuntu.comandsecurity.ubuntu.comwithmirror.rasanegaar.comand keep the/ubuntupath:/etc/apt/sources.listmirror.rasanegaar.com - Refresh package indexes:
sudo apt update
Updating Ubuntu in Iran
Ubuntu updates in Iran against the local mirror usually finish faster than the official archive — especially across several hosts at once.
After switching, keep your normal APT routine; only the package origin changed.
Revert to official repository
If you need official upstream again:
curl -fsSL https://mirror.rasanegaar.com/scripts/revert-ubuntu.sh | sudo bash