{"id":21017923,"url":"https://github.com/sthysel/ubuntu-mirror","last_synced_at":"2026-03-17T08:39:40.968Z","repository":{"id":138852329,"uuid":"89825049","full_name":"sthysel/ubuntu-mirror","owner":"sthysel","description":"debmirror script to mirror ubuntu with","archived":false,"fork":false,"pushed_at":"2017-04-30T03:14:12.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-31T06:56:57.858Z","etag":null,"topics":["debmirror","mirror","repository","ubuntu"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sthysel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-30T02:35:12.000Z","updated_at":"2024-12-19T02:51:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"206eaf4b-97e1-42b6-a935-3c6a3206afcd","html_url":"https://github.com/sthysel/ubuntu-mirror","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sthysel/ubuntu-mirror","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sthysel%2Fubuntu-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sthysel%2Fubuntu-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sthysel%2Fubuntu-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sthysel%2Fubuntu-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sthysel","download_url":"https://codeload.github.com/sthysel/ubuntu-mirror/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sthysel%2Fubuntu-mirror/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30619218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T08:10:05.930Z","status":"ssl_error","status_checked_at":"2026-03-17T08:10:04.972Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debmirror","mirror","repository","ubuntu"],"created_at":"2024-11-19T10:22:45.661Z","updated_at":"2026-03-17T08:39:40.950Z","avatar_url":"https://github.com/sthysel.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tool to mirror Ubuntu repos\n\nThis tool mirrors Ubuntu repositories for use in Cobbler or other alternative local\nsources.\n\n## Assumptions\n\n* This tool will be run on a late Ubuntu server (It can be run on any machine that has `debmirror` installed,\n  the recipe below needs to be tweeked for that)\n* You have ~200G of disk space and bandwith available per release you want to mirror. Assuming both i686 and amd64 arches.\n\n## Install\n\nClone this repo.\n\nYou want the system gpg key in ./keyring:\n\n```\n$ gpg --no-default-keyring --keyring ./keyring/trustedkeys.gpg --import /usr/share/keyrings/ubuntu-archive-keyring.gpg\n```\n\nNow fuxor with mirror.sh to your liking. The knobs that can be tuned are documented in the script. \n\n\nRun ```mirror.sh```, its going to take a few hours at least, depending on the releases you want and the architectures of those.\nSo to only get the i386 of Trusty comes to about 120G.\n\n\nIf selecting only Trusty the repo structure will end up looking like so:\n\n```\n.\n├── keyring/\n│   ├── .gitignore\n│   ├── README.md\n│   ├── trustedkeys.gpg\n│   └── trustedkeys.gpg~\n├── repomirror/\n│   ├── dists/\n│   │   ├── trusty/\n│   │   │   ├── main/\n│   │   │   ├── multiverse/\n│   │   │   ├── restricted/\n│   │   │   └── universe/\n│   │   ├── trusty-security/\n│   │   │   ├── main/\n│   │   │   ├── multiverse/\n│   │   │   ├── restricted/\n│   │   │   └── universe/\n│   │   └── trusty-updates/\n│   │       ├── main/\n│   │       ├── multiverse/\n│   │       ├── restricted/\n│   │       └── universe/\n│   ├── pool/\n│   │   └── main/\n│   │       ├── a/\n│   │       └── b/\n│   ├── .temp/\n│   │   ├── dists/\n│   │   │   ├── trusty/\n│   │   │   ├── trusty-security/\n│   │   │   └── trusty-updates/\n│   │   └── .tmp/\n│   │       └── dists/\n│   └── Archive-Update-in-Progress-elim\n├── .gitignore\n├── mirror.sh\n└── README.md\n```\n\nThe `dists` directory will have a set of release specific directories, here there is only trusty.\n\nOnce the repo has synced you van expose it over http using nginx, apache or the like.\n\n\n# Resources\n\n* https://help.ubuntu.com/community/Debmirror\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsthysel%2Fubuntu-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsthysel%2Fubuntu-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsthysel%2Fubuntu-mirror/lists"}