How do I force a Ubuntu machine to only download updates from official canonical.com mirrors? Right now it sometimes downloads from non canonical mirrors, which get flagged in our network monitoring software.
(Note: We don't have any third party repositories on this machine)
In the software sources (synaptic packages manager -> settings -> repositories), you can manage your mirrors
you can also edit the /etc/apt/sources.list file which contains all the repositories details.
then update once:
when you open the sources.list file, you will find different keywords after the name of the repositories.
Remove the following if present. These are third party repositories:
deb http://archive.canonical.com/ubuntu quantal partner
deb-src http://archive.canonical.com/ubuntu quantal partner
deb http://archive.canonical.com/ubuntu quantal partner
deb-src http://archive.canonical.com/ubuntu quantal partner
deb http://extras.ubuntu.com/ubuntu quantal main
deb-src http://extras.ubuntu.com/ubuntu quantal main
deb http://ubuntu.mirror.cambrium.nl/ubuntu/ quantal main