Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Development & Programming > Repositories & Backports
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Repositories & Backports
Need help with apt-get and updating Ubuntu? Post here..

 
Thread Tools Display Modes
Old August 9th, 2006   #1
najevi
5 Cups of Ubuntu
 
najevi's Avatar
 
Join Date: Feb 2006
Location: Gold Coast, Australia
Beans: 18
Ubuntu 7.04 Feisty Fawn
Question Repository Mirror - "free" download

Can you offer advice on achieving the following goal subject to the limitation specified:

GOAL: package installs that don't count toward my ISP's monthly data download quota.

LIMITATION: in Australia at least, many ISP's shape bandwidth (i.e. throttle downstream data rate) after some monthly limit on downloads. In my case it is 10GB/month. I suspect I am not alone.

OPTIONS: as I currently see them
  1. Advise my ISP how to provide (and maintain) a repository mirror.
  2. Point my ISP to an officially-recognised set of files that allow me to create a repository mirror on my LAN
  3. order a set of DVD's of the repository contents
  4. something else that I haven't thought of
In the long run option 1) is my preference however for that to work I'd need to refer my ISP to a recognized & qualified person within the ubuntu community.

Google shows up at least one company that sells a set of DVD's that might suit option 3) above. Ubuntu 6.06 LTS Complete

That leaves Option 2:

Searching this forum I find a few promising threads describing how to create a local mirror of the repositories.either by download, file-sharing or purchase.

Searching archive.ubuntu.com I find what might be a suitable source for the files refered to in 2) above. viz. http://archive.ubuntu.com/ubuntu/dists/dapper-updates
subdirectories main, multiverse, restricted & universe

My ISP is willing to host any file that I can specify a legitimate source for. Customer downloads of that file will not count toward a customer's monthly quota. So what I need from informed users at this forum is a list of URL's pointing to the files that comprise the 12GB or so complete repository.

To help limit scope I care about release=Dapper Drake
& architecture=i386; although to be of service to the widest circle of fellow customers of the same ISP, specifying all architectures might be wise.

The Australian ISP in question is BigPond and, to it's credit, it already hosts
ubuntu-6.06-alternate-i386.iso &
ubuntuplus-dapper_2006-06-07.iso (http://www.ubuntuforums.org/showpost.php?p=1063510)

Thank you for considering this request. I hope that the answer(s) will help others in a similar situation.
__________________
The Apostles Creed - anon.
The Four-Way Test - Rotary International
If - Rudyard Kipling
polite, patient, persistent - moi!

Last edited by najevi; August 10th, 2006 at 03:56 AM..
najevi is offline   Reply With Quote
Old August 9th, 2006   #2
simonn
Quad Shot of Ubuntu
 
simonn's Avatar
 
Join Date: Dec 2005
Location: Sydney, Oz
Beans: 483
Hardy Heron (Ubuntu Development)
Re: Repository Mirror - "free" download

Quote:
4. something else that I haven't thought of
Move to iinet. Up to 21Mbit download (I get ~20Mbit) / 1Mbit upload, 10Gb peak + 10Gb off-peak shaped to 64kbit for AU$49.95/month (+ ~AU$35 for phone though).

Everything on ftp.iinet.com.au free, including Ubuntu mirror (repos and isos), redhat, debian, knoppix etc.
__________________
Linux is NOT a free (as in beer) substitute for windows.
Ask Questions The Smart Way. Rute User's Tutorial and Exposition.
Look in the repositories first, only build from source as a last resort.
http://diversity.sf.net http://gdivelog.sf.net
simonn is offline   Reply With Quote
Old August 10th, 2006   #3
najevi
5 Cups of Ubuntu
 
najevi's Avatar
 
Join Date: Feb 2006
Location: Gold Coast, Australia
Beans: 18
Ubuntu 7.04 Feisty Fawn
Re: Repository Mirror - "free" download

Quote:
Originally Posted by simonn View Post
Move to iinet. Up to 21Mbit download (I get ~20Mbit) / 1Mbit upload, 10Gb peak + 10Gb off-peak shaped to 64kbit for AU$49.95/month (+ ~AU$35 for phone though).

Everything on ftp.iinet.com.au free, including Ubuntu mirror (repos and isos), redhat, debian, knoppix etc.
Yes iinet is certainly an appealing alternative to BigPond and may well be where I move to in December when my 2 year contract expires.

The repository files at ftp.iinet.com.au look to be comprehensive. Do you simply point Synaptic/aptget to:
ftp://ftp.iinet.com.au/linux/ubuntu/...dapper-updates
ftp://ftp.iinet.com.au/linux/ubuntu/...apper-security
etc.

If so then persuading BigPond to mirror the repositories might not be as involved as I imagined.
__________________
The Apostles Creed - anon.
The Four-Way Test - Rotary International
If - Rudyard Kipling
polite, patient, persistent - moi!
najevi is offline   Reply With Quote
Old August 10th, 2006   #4
najevi
5 Cups of Ubuntu
 
najevi's Avatar
 
Join Date: Feb 2006
Location: Gold Coast, Australia
Beans: 18
Ubuntu 7.04 Feisty Fawn
Lightbulb Re: Repository Mirror - "free" download

In the interest of getting closure on option 2, let me ask one very specific question for the repository gurus browsing this forum:

I have read the debmirror manpage and it seems that the command line
Code:
debmirror --nosource --host=archive.ubuntu.com --root=ubuntu/ 
 --dist=dapper --section=main,universe,restricted,multiverse --arch=i386 ./mirror
will very tidily create a local mirror of the specified sections of the repository.

My understanding of the four repository sections/components (main, universe, restricted and multiverse) is limited to what I can read at Wikipedia (Package_classification_and_support) and from that it appears to me that all but the multiverse section is freely redistributable.
  • For each of the 4 sections (main, universe, restricted and multiverse) and from both a public and local(private) file hosting perspective are all of these files made available (and therefore redistributable) under something similar to the Debian Free Software License?
__________________
The Apostles Creed - anon.
The Four-Way Test - Rotary International
If - Rudyard Kipling
polite, patient, persistent - moi!

Last edited by najevi; August 11th, 2006 at 05:30 AM.. Reason: correcting a false premise
najevi is offline   Reply With Quote
Old August 11th, 2006   #5
najevi
5 Cups of Ubuntu
 
najevi's Avatar
 
Join Date: Feb 2006
Location: Gold Coast, Australia
Beans: 18
Ubuntu 7.04 Feisty Fawn
Angry Re: Repository Mirror - "free" download

I found a helpful overview of repositories (for a std Debian distribution) at
http://www.debian.org/doc/manuals/repository-howto/ written by Aaron Isotton.
It helped me to understand the repository heirarchy and appreciate what a pool is and what purpose the Packages.gz, Sources.gz and Release files serve.

I can now see that the .deb files are located under archive.ubuntu.com/ubuntu/pool
It is also clear that this pool includes files from all architectures.

If someone has done (or has ready-access to do) a
Code:
debmirror --nosource --host=archive.ubuntu.com --root=ubuntu/ 
 --dist=dapper --section=main,universe,restricted,multiverse --arch=i386
to extract a mirror of the i386 + Dapper Drake + [main & universe & restricted & multiverse]
repositories then please post the du -s output for these 4 sections of the repository mirror.
__________________
The Apostles Creed - anon.
The Four-Way Test - Rotary International
If - Rudyard Kipling
polite, patient, persistent - moi!

Last edited by najevi; August 11th, 2006 at 10:11 PM.. Reason: added repository-howto link
najevi is offline   Reply With Quote
Old August 11th, 2006   #6
we_r_disturbed
First Cup of Ubuntu
 
we_r_disturbed's Avatar
 
Join Date: Apr 2006
Beans: 11
Re: Repository Mirror - "free" download

I messed around with the same post about the debmirror script and for the most part it works. There were a few changes that I had to make compared to what he did because his sources.list file wasn't correct.
I am in no way saying that my way is correct, but it does work for me so I don't have to redownload the updates every time I reinstall ubuntu. Here is what I did...

Create a folder on your system to hold the repos...I put mine under /home/username/repos (replace username with your user name)

then...

$ sudo gedit /bin/repoupdate

Then I inserted the following:

#!/bin/bash
cd /home/username/repos
debmirror --nosource -m --passive --host=archive.ubuntulinux.org --root=ubuntu/ --method=ftp --progress --dist=dapper \
--section=main,multiverse,universe --arch=i386 repos/ --ignore-release-gpg
sudo dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
sudo dpkg-scansources . /dev/null | gzip -9c > Sources.gz

That takes care of all of his actions at once. It will download and then create the packages/sources.gz files. When I first ran it, it took a long time since the files total around 12GB. That doesn't include the restricted files either, if you want those, just add "restricted" to the list.

Now make your script executable.

sudo chmod +x /bin/repoupdate

Kick off your update by doing:

sudo repoupdate

For your sources.list, you will need to add the following:

deb file:///home/username/repos/repos dapper main universe multiverse
or
deb http://site name or ip address/repos/repos/ dapper main universe multiverse

It all depends on if you are hosting it local or getting it from somewhere else. I have 2 machines, one hosts it locally and the other gets it thru the ip address.

Like I said, I messed with the other guy's post for a good week before I got it working correctly. I never got any errors, but when I'd do an install, it would always retreive data from an outside source. I don't know if this addresses your problem, but if you are following his post it might save you some time.
we_r_disturbed is offline   Reply With Quote
Old August 11th, 2006   #7
we_r_disturbed
First Cup of Ubuntu
 
we_r_disturbed's Avatar
 
Join Date: Apr 2006
Beans: 11
Re: Repository Mirror - "free" download

Quote:
Originally Posted by najevi View Post
If someone has done (or has ready-access to do) a
Code:
debmirror --nosource --host=archive.ubuntu.com --root=ubuntu/ 
 --dist=dapper --section=main,universe,restricted,multiverse --arch=i386
to extract a mirror of the i386 + Dapper Drake + [main & universe & restricted & multiverse]
repositories then please post the du -s output for these 4 sections of the repository mirror.
I took it a bit further and included dapper-updates dapper-backports in my debmirror, and included restricted...adding restricted and dapper-updates/backports only added about 1.3gb worth of downloading. But as you requested, here is the output.

du -s
12663896 .

Hope that helps
we_r_disturbed is offline   Reply With Quote
Old August 14th, 2006   #8
najevi
5 Cups of Ubuntu
 
najevi's Avatar
 
Join Date: Feb 2006
Location: Gold Coast, Australia
Beans: 18
Ubuntu 7.04 Feisty Fawn
Arrow Re: Repository Mirror - "free" download

With thanks to we_r_disturbed I have the information I need.
With thanks to David (offline) my ISP, BigPond, is now hosting a snapsot of the (dapper, i386, nosource, main) repository on the BigPond unmetered content file downloads area (search http://files.bigpond.com/index.php using keywords dapper repository). I hope to persuade David to also post the universe repository section in the near future. The plan is to replace this with a new snapshot periodically.

FYI here is a breakdown of the size of the repository mirrored using:
Code:
debmirror local_mirror_dir --host=archive.ubuntulinux.org --root=ubuntu/
     --nosource -m --passive --method=ftp --progress --ignore-release-gpg
     --section=main,universe,restriced,multiverse --arch=i386
     --dist=dapper,dapper-backports,dapper-security,dapper-updates

Code:

Section                             Size in kB
main                                 2,912,256
restricted                              26,624
universe                             9,318,400
multiverse                             360,448

Free     = main+universe          = 12,230,656   97% of  TOTAL
Non-Free = restricted+multiverse  =    387,072    3% of  TOTAL
                           TOTAL  = 12,617,728
Is there a better way?
In the process of investigating all of this I learned about a promising package called
apt-proxy
(manpage & HowTo) which may prove to be a better minimalistic solution
for a home network ... search for apt-proxy and you'll find plenty of posts.

enjoy!
__________________
The Apostles Creed - anon.
The Four-Way Test - Rotary International
If - Rudyard Kipling
polite, patient, persistent - moi!
najevi is offline   Reply With Quote
Old August 17th, 2006   #9
we_r_disturbed
First Cup of Ubuntu
 
we_r_disturbed's Avatar
 
Join Date: Apr 2006
Beans: 11
.

Last edited by we_r_disturbed; August 17th, 2006 at 11:10 PM..
we_r_disturbed is offline   Reply With Quote
Old April 15th, 2007   #10
airtonix
Dipped in Ubuntu
 
airtonix's Avatar
 
Join Date: Oct 2005
Location: Adelaide, South Australia
Beans: 589
Ubuntu 8.10 Intrepid Ibex
Re: Repository Mirror - "free" download

mirror.internode.on.net/pub/ubuntu (proly only accesible by customers)

hehe internode for adelaide has good deals, and a huge linux repository that is not counted to your quota....and they keep it as up to date as possible sometimes i do an apt-get update and upgrade and some of the packages arent all there yet. lol

Also intenode doesnt have those stupid upload quotaing schemes plus they have heaps of other unmetered content (abc.com.au, oftheworld.tv, etc etc)....
__________________
Fear is the mindkiller....
The little death that obliterates...
airtonix is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:55 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry