Why pin repositories to snapshots or internal mirrors?
AdvancedProductionPatching, Automation & Golden Images
Answer
Public repos change daily, so two servers patched an hour apart can end up with different versions, and a bad upstream package can hit production unexpectedly. An internal mirror or dated snapshot (Pulp, Satellite, Artifactory, aptly, snapshot.ubuntu.com) means dev, staging and prod install exactly the same tested set, works without internet access, and allows controlled promotion between environments.
More on Patching, Automation & Golden Images
What does a good Linux patching strategy look like?BeginnerIn-place patching vs immutable image replacement: which do you prefer?IntermediateHow do you know whether a server needs a reboot after patching?BeginnerHow do you configure automatic security updates?BeginnerWhat is kernel live patching?IntermediateHow do you roll kernel updates across a 200-node fleet safely?Advanced