Home / Ubuntu

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

StatusAvailable
Size
Last update
URLhttps://mirror.rasanegaar.com/ubuntu/

Switch with script

curl -fsSL https://mirror.rasanegaar.com/scripts/switch-ubuntu.sh | sudo bash

Manual steps

  1. Back up your APT sources.
  2. 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.sources

    https://mirror.rasanegaar.com/ubuntu

  3. On older releases, classic sources.list is common — replace archive.ubuntu.com and security.ubuntu.com with mirror.rasanegaar.com and keep the /ubuntu path:

    /etc/apt/sources.list

    mirror.rasanegaar.com

  4. 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