# Ubuntu Mirror (apt archive) in Iran

Canonical: https://mirror.rasanegaar.com/guides/en/ubuntu.html
Language: en

Ubuntu mirror and apt archive for apt, apt-get and LTS from Iran — mirror.rasanegaar.com/ubuntu/

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

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

Browse URL: https://mirror.rasanegaar.com/ubuntu/

## Configuration

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
   ```

## Updates

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.

HTML version: https://mirror.rasanegaar.com/guides/en/ubuntu.html
