Home / Ubuntu

Use the Ubuntu Repository Mirror in Iran

Ubuntu shows up on plenty of servers and desktops. /ubuntu on Rasanegaar Mirror is the APT archive, reachable from inside Iran.

About Ubuntu

Canonical ships Ubuntu on an LTS and interim cadence. The archive and security pocket live on archive.ubuntu.com and security.ubuntu.com; every apt update or security upgrade moves real traffic overseas.

For teams that pull packages daily, distance to international hosts means latency, occasional reachability gaps, and bandwidth cost. A local mirror keeps the same indexes and packages closer.

Ubuntu mirror in Iran

On Rasanegaar Mirror, clients hit mirror.rasanegaar.com and pull from Rasanegaar’s software repository — without every host talking to the official archive directly.

When the mirror is live, you can browse the tree, check size and last sync, and point APT at it.

On Rasanegaar Mirror

StatusAvailable
Size286G
Last update18 Jul 2026, 10:12 (+03:30) — sync in progress
URLhttps://mirror.rasanegaar.com/ubuntu/

How to use the Ubuntu mirror in Iran

Manual steps

  1. Back up your APT sources.
  2. On DEB822, set archive and security URIs to the Rasanegaar Ubuntu mirror:

    /etc/apt/sources.list.d/ubuntu.sources

    https://mirror.rasanegaar.com/ubuntu

  3. On classic sources.list, 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

Switch with script

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

Updating Ubuntu in Iran

When the official archive is slow or flaky from Iran, apt update and upgrades against the local mirror usually finish faster — 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

Related links