| Both sides previous revisionPrevious revision | |
| mirrors:ubuntu [2026/05/18 07:01] – [Notes] pal | mirrors:ubuntu [2026/07/22 16:23] (current) – external edit 127.0.0.1 |
|---|
| ====== Ubuntu — Mirror Configuration ====== | ====== Ubuntu — Mirror Configuration ====== |
| |
| The local mirror covers Ubuntu 20.04 (Focal), 22.04 (Jammy), 24.04 (Noble), and 26.04 (Resolute Raccoon) for ''amd64''. Security updates, backports, and all components (main, restricted, universe, multiverse) are included. | The local mirror covers Ubuntu 20.04 (Focal Fossa), Ubuntu 22.04 (Jammy Jellyfish), Ubuntu 24.04 (Noble Numbat), Ubuntu 26.04 LTS (Resolute Raccoon) for ''amd64''. Security updates, backports, and all components (main, restricted, universe, multiverse) are included. |
| |
| <WRAP important> | <WRAP important> |
| Unlike the upstream Ubuntu archive, the local mirror organises releases into separate directories (e.g. ''/ubuntu/jammy/'') rather than a single flat tree. Use the per-release URLs below, not the upstream path structure. | **Now matches the real Ubuntu archive layout.** The mirror uses a single shared root (''/ubuntu/dists/'', ''/ubuntu/pool/'') across every release, exactly like ''archive.ubuntu.com''. Point your client at ''https://mirror.nplab.bth.se/ubuntu/'' the same way you would at the upstream archive — just swap the host. No per-release path segment, and nothing to reconfigure when a new release is added. |
| </WRAP> | </WRAP> |
| |
| ===== Ubuntu 24.04+ (Noble, Resolute) ===== | ===== Recommended: shared-root configuration ===== |
| |
| These releases default to **deb822** format. Replace ''/etc/apt/sources.list.d/ubuntu.sources'': | Ubuntu 24.04+ (Noble, Resolute) — **deb822** format. Replace ''/etc/apt/sources.list.d/ubuntu.sources'': |
| |
| <code> | <code> |
| Types: deb | Types: deb |
| URIs: https://mirror.nplab.bth.se/ubuntu/<release>/ | URIs: https://mirror.nplab.bth.se/ubuntu/ |
| Suites: <release> <release>-updates <release>-backports <release>-security | Suites: <release> <release>-updates <release>-backports <release>-security |
| Components: main restricted universe multiverse | Components: main restricted universe multiverse |
| </code> | </code> |
| |
| Replace ''<release>'' with ''noble'' or ''resolute''. | Ubuntu 20.04 / 22.04 (Focal, Jammy) — classic **sources.list** format. Replace ''/etc/apt/sources.list'': |
| |
| ===== Ubuntu 20.04 / 22.04 (Focal, Jammy) ===== | <code> |
| | deb https://mirror.nplab.bth.se/ubuntu <release> main restricted universe multiverse |
| | deb https://mirror.nplab.bth.se/ubuntu <release>-updates main restricted universe multiverse |
| | deb https://mirror.nplab.bth.se/ubuntu <release>-backports main restricted universe multiverse |
| | deb https://mirror.nplab.bth.se/ubuntu <release>-security main restricted universe multiverse |
| | </code> |
| |
| These releases use the classic **sources.list** format. | Replace ''<release>'' with ''focal'', ''jammy'', ''noble'', or ''resolute'' — same URL for all of them. This is exactly what the downloadable config files below contain. |
| |
| Replace ''/etc/apt/sources.list'': | ===== Legacy: per-release URLs (outdated) ===== |
| | |
| | <WRAP alert> |
| | **Outdated — do not use for new installs.** Kept only so nodes already configured against the old per-release URLs (e.g. ''/ubuntu/jammy/dists/...'') keep working. An nginx rewrite transparently maps these onto the shared root above, so the content is identical and always current — but new installs should use the shared-root configuration instead. |
| | </WRAP> |
| |
| <code> | <code> |
| deb https://mirror.nplab.bth.se/ubuntu/<release>/ <release> main restricted universe multiverse | Types: deb |
| deb https://mirror.nplab.bth.se/ubuntu/<release>/ <release>-updates main restricted universe multiverse | URIs: https://mirror.nplab.bth.se/ubuntu/<release>/ |
| deb https://mirror.nplab.bth.se/ubuntu/<release>/ <release>-backports main restricted universe multiverse | Suites: <release> <release>-updates <release>-backports <release>-security |
| deb https://mirror.nplab.bth.se/ubuntu/<release>/ <release>-security main restricted universe multiverse | Components: main restricted universe multiverse |
| | Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg |
| </code> | </code> |
| |
| ===== Release Reference ===== | ===== Release Reference ===== |
| |
| ^ Codename ^ Version ^ Format ^ Local URL ^ Config File ^ | ^ Codename ^ Version ^ Format ^ Shared-root URL (recommended) ^ Config File ^ |
| | focal | 20.04 LTS | sources.list | ''https://mirror.nplab.bth.se/ubuntu/focal/'' | [[https://mirror.nplab.bth.se/configs/ubuntu/focal.list|focal.list]] | | | focal | 20.04 LTS | sources.list | ''https://mirror.nplab.bth.se/ubuntu/'' | [[https://mirror.nplab.bth.se/configs/ubuntu/focal.list|focal.list]] | |
| | jammy | 22.04 LTS | sources.list | ''https://mirror.nplab.bth.se/ubuntu/jammy/'' | [[https://mirror.nplab.bth.se/configs/ubuntu/jammy.list|jammy.list]] | | | jammy | 22.04 LTS | sources.list | ''https://mirror.nplab.bth.se/ubuntu/'' | [[https://mirror.nplab.bth.se/configs/ubuntu/jammy.list|jammy.list]] | |
| | noble | 24.04 LTS | deb822 | ''https://mirror.nplab.bth.se/ubuntu/noble/'' | [[https://mirror.nplab.bth.se/configs/ubuntu/noble.sources|noble.sources]] | | | noble | 24.04 LTS | deb822 | ''https://mirror.nplab.bth.se/ubuntu/'' | [[https://mirror.nplab.bth.se/configs/ubuntu/noble.sources|noble.sources]] | |
| | resolute | 26.04 LTS | deb822 | ''https://mirror.nplab.bth.se/ubuntu/resolute/'' | [[https://mirror.nplab.bth.se/configs/ubuntu/resolute.sources|resolute.sources]] | | | resolute | 26.04 LTS | deb822 | ''https://mirror.nplab.bth.se/ubuntu/'' | [[https://mirror.nplab.bth.se/configs/ubuntu/resolute.sources|resolute.sources]] | |
| |
| **Download and apply (run as root):** | **Download and apply (run as root):** |
| |
| * The security suite is folded into the same mirror URI (unlike Debian, no separate ''/security/'' subdirectory needed). | * The security suite is folded into the same mirror URI (unlike Debian, no separate ''/security/'' subdirectory needed). |
| | * The legacy per-release URLs will be retired once no client is observed using them — check nginx access logs before removing the rewrite. |
| |