Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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)

share|improve this question

2 Answers 2

In the software sources (synaptic packages manager -> settings -> repositories), you can manage your mirrors

share|improve this answer

you can also edit the /etc/apt/sources.list file which contains all the repositories details.

sudo cat /etc/apt/sources.list

then update once:

sudo apt-get update

when you open the sources.list file, you will find different keywords after the name of the repositories.

  1. "main restricted" -> part of canonical
  2. "universe" -> N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu team. Also, please note that software in universe WILL NOT receive any review or updates from the Ubuntu security team.
  3. "multiverse" -> N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu team, and may not be under a free licence. Please satisfy yourself as to your rights to use the software. Also, please note that software in multiverse WILL NOT receive any review or updates from the Ubuntu security team.
  4. "partner" -> other than canonical

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

share|improve this answer
    
sources.list has the following repositories: security.ubuntu.com/ubuntu us.archive.ubuntu.com/ubuntu . However the machine still downloads from non-canonical servers. Any ideas? –  Saqib Ali Feb 16 '13 at 23:37
    
@SaqibAli please refer to updated answer –  Vivek Feb 17 '13 at 8:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.