My ISP provides a mirror of ubuntu, which I can reconfigure my sources.list to use the ISP repository instead. Since this local ISP mirror is free (does not contribute to monthly download quota), I much prefer to use it.
But, this repository is only available inside the ISP network and IP range. Thus, if I am not connected to the internet from my home ISP connection, then 'apt-get update' attempts fail to connect to the repository.
Is it possible to have multiple repositories defined, with a priority assignment? Thus, if I am at home and apt can connect to my local ISP's repo mirror then it will use that, but if I am not at home and it cannot connect then it will fall-back to another repo?
Example ...
deb ftp://ftp.netspace.net.au/pub/ubuntu/ intrepid main restricted 10
deb http://au.archive.ubuntu.com/ubuntu/ intrepid main restricted 20
Where the 10|20 at the end of each line denotes the usage priority. Thus use the 10 priority first (my ISP mirror) and if that fails then use the 20 priority line.
I search the forums and used google, but could find nothing. I did find references to apt priority for package versions, but this didn't seem teh same/appropriate to me.
Thanks.
Bookmarks