Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tuapuikia/8457c22f838b9a652710986cbeab421c to your computer and use it in GitHub Desktop.
Save tuapuikia/8457c22f838b9a652710986cbeab421c to your computer and use it in GitHub Desktop.
How to mirror ubuntu ESM protected repository

Via https://ubuntu.com/esm#faq

"We're mirroring the repository on our internal Landscape server. Can we still get Ubuntu ESM if using Landscape? ESM is just a regular Ubuntu archive, but authenticated and served over HTTPS. Archive mirroring is already available in Landscape and is the only supported mechanism for mirroring the ESM archive."

TL;DR

It seems its just possible to use URI with login:pass

# Extract login/pass
> cat /etc/apt/auth.conf.d/90ubuntu-advantage
> /usr/bin/aptly -config /etc/aptly.conf mirror create -architectures="amd64" -with-sources=false -with-udebs=false ubuntu-esm-trusty https://<login>:<pass>@esm.ubuntu.com/ubuntu trusty-updates
# Security repo
> aptly mirror show esm-ubuntu-trusty-security|grep packages
Number of packages: 841

# OR
> curl -v https://<login>:<pass>@esm.ubuntu.com/ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment