Page 1 of 6 123 ... LastLast
Results 1 to 10 of 53

Thread: apt-mirrored repository

  1. #1
    Join Date
    Dec 2008
    Location
    Taxes
    Beans
    455
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    apt-mirrored repository

    I have it downloaded, I can browse the repository via http on port 80.

    I try doing an install from the minimal installation ISO and enter the hostnameort number of the host with the repository, and then it asks for a directory and defaults to /ubuntu - which is the directory shared from the repository: http://localmachine/ubuntu

    Installation fails stating it can't find the distribution.

    I can't find any documentation on exactly what directory or files the installer is looking for.

    Can someone point me in the right direction?

  2. #2
    Join Date
    Dec 2008
    Location
    Taxes
    Beans
    455
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: apt-mirrored repository

    IS this in the wrong place, or no one uses their own repo?

  3. #3
    Join Date
    Aug 2007
    Location
    Hull, East Yorkshire, UK
    Beans
    299
    Distro
    Xubuntu Development Release

    Re: apt-mirrored repository

    I've never had the whole apt repo mirrored but i do use apt-cacher-ng to save all the packages once as the first Pc downloads it so others pull the package from apt-cache rather than download again. If this sounds like what you need you could check out my blog entry here.

    http://myubuntublog.wordpress.com/2009/05/17/an-apt-server-using-apt-cacher/
    Sony Vaio VGN-NS11J Laptop 2x Intel(R) Core(TM)2 Duo CPU T5800 @ 2.00GHz, 3 GB RAM, 320GB HD. My Linux Blog and My Folding@Home Stats

  4. #4
    Join Date
    Dec 2008
    Location
    Taxes
    Beans
    455
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: apt-mirrored repository

    Quote Originally Posted by Wobblybob View Post
    I've never had the whole apt repo mirrored but i do use apt-cacher-ng to save all the packages once as the first Pc downloads it so others pull the package from apt-cache rather than download again. If this sounds like what you need you could check out my blog entry here.

    http://myubuntublog.wordpress.com/2009/05/17/an-apt-server-using-apt-cacher/
    I'll look this over and maybe it will help, but I'm not looking to hold the repo for updates - I want to hold it so I can do a fresh install over the local network and not have to download from an external mirror. This *shouldn't* be this hard, but it damn sure is turning into a fairly difficult thing.

    I can find a lot of stuff on mirroring the repos, updating from the mirror, but nothing so far on installing from the mirror.

    Looks like it would be easier just to create a custom installation ISO. Sure hope that isn't the case


  5. #5
    Join Date
    Nov 2006
    Location
    Oregon
    Beans
    4,434
    Distro
    Ubuntu Development Release

    Re: apt-mirrored repository

    Quote Originally Posted by MakOwner View Post
    I'll look this over and maybe it will help, but I'm not looking to hold the repo for updates - I want to hold it so I can do a fresh install over the local network and not have to download from an external mirror. This *shouldn't* be this hard, but it damn sure is turning into a fairly difficult thing.

    I can find a lot of stuff on mirroring the repos, updating from the mirror, but nothing so far on installing from the mirror.

    Looks like it would be easier just to create a custom installation ISO. Sure hope that isn't the case

    I use to mirror the entire repo via rsync, but now I just use apt-mirror and get the parts I'm interested in.

    You need to point the client at the directory on the server that has the dist/ and pool/ directories. If you fire up a web browser and go to

    Code:
    http://localhost/ubuntu/
    You should see the dist/ and pool/ subdirectories. If you do not, you either are pointed at the wrong directory, or you have a permissions issue.

    Keep in mind, that by default, apt-mirror only downloads the same architecture packages as the server it is installed on. To gather other architectures, you need to setup your mirror.list file with something similar to

    Code:
    deb-i386 http://ubuntu.osuosl.org/ubuntu lucid main restricted universe multiverse
    deb-amd64 http://ubuntu.osuosl.org/ubuntu lucid main restricted universe multiverse
    *Don't PM me directly for support, open a new thread
    *Looking for a MythTV quick start guide?

  6. #6
    Join Date
    Dec 2008
    Location
    Taxes
    Beans
    455
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: apt-mirrored repository

    Quote Originally Posted by tgm4883 View Post
    I use to mirror the entire repo via rsync, but now I just use apt-mirror and get the parts I'm interested in.

    You need to point the client at the directory on the server that has the dist/ and pool/ directories. If you fire up a web browser and go to

    Code:
    http://localhost/ubuntu/
    You should see the dist/ and pool/ subdirectories. If you do not, you either are pointed at the wrong directory, or you have a permissions issue.

    Keep in mind, that by default, apt-mirror only downloads the same architecture packages as the server it is installed on. To gather other architectures, you need to setup your mirror.list file with something similar to

    Code:
    deb-i386 http://ubuntu.osuosl.org/ubuntu lucid main restricted universe multiverse
    deb-amd64 http://ubuntu.osuosl.org/ubuntu lucid main restricted universe multiverse
    I have setup apt-mirror, downloaded the repositories, set up daily updates. I linked the repo under the apache root as suggested in the apt-mirror information and I can browse to the host and browse the directories of the repo.

    Code:
    Index of /ubuntu
    [ICO]	Name	Last modified	Size	Description
    [DIR]	Parent Directory	 	- 	 
    [DIR]	dists/	07-Apr-2011 20:27 	- 	 
    [DIR]	pool/	07-Apr-2011 21:41 	- 	 
    Apache/2.2.14 (Ubuntu) Server at pe350-2 Port 80
    Now I want to boot up with the minimal installation CD and point to the repository when prompted for the mirror by choosing the manual entry option. I can get to the point the installer complains about "bad release files".

    And I only get that when I add dists/lucid on to the /ubuntu directory the installer adds by default.
    Last edited by MakOwner; April 14th, 2011 at 12:42 AM.

  7. #7
    Join Date
    Dec 2008
    Location
    Taxes
    Beans
    455
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: apt-mirrored repository

    So, I'm looking at the repository how to: http://www.debian.org/doc/manuals/re...n.html#release

    Will this work for Ubuntu?

    If so, I need this to build the Packages.gz file, but there are already packages files in the stuff apt-mirror downloaded.

    dpkg-scanpackages binary /dev/null | gzip -9c > binary/Packages.gz

  8. #8
    Join Date
    Nov 2006
    Location
    Oregon
    Beans
    4,434
    Distro
    Ubuntu Development Release

    Re: apt-mirrored repository

    Quote Originally Posted by MakOwner View Post
    I have setup apt-mirror, downloaded the repositories, set up daily updates. I linked the repo under the apache root as suggested in the apt-mirror information and I can browse to the host and browse the directories of the repo.

    Code:
    Index of /ubuntu
    [ICO]	Name	Last modified	Size	Description
    [DIR]	Parent Directory	 	- 	 
    [DIR]	dists/	07-Apr-2011 20:27 	- 	 
    [DIR]	pool/	07-Apr-2011 21:41 	- 	 
    Apache/2.2.14 (Ubuntu) Server at pe350-2 Port 80
    Now I want to boot up with the minimal installation CD and point to the repository when prompted for the mirror by choosing the manual entry option. I can get to the point the installer complains about "bad release files".

    And I only get that when I add dists/lucid on to the /ubuntu directory the installer adds by default.
    Odd. I downloaded the minimal ISO and couldn't connect it to my apt-mirror repo either. Perhaps the minimal ISO doesn't like the apt-mirror structure?
    *Don't PM me directly for support, open a new thread
    *Looking for a MythTV quick start guide?

  9. #9
    Join Date
    Dec 2008
    Location
    Taxes
    Beans
    455
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: apt-mirrored repository

    Quote Originally Posted by tgm4883 View Post
    Odd. I downloaded the minimal ISO and couldn't connect it to my apt-mirror repo either. Perhaps the minimal ISO doesn't like the apt-mirror structure?
    I found this, which led me down the path to another post, which at least has a method of getting a copy of the repository and the needed release and authentication files. It doesn't use apt-mirror, however. Not sure what the hell apt-mirror is used for as it doesn't appear to actually mirror the repository in a usable state. debmirror seems to mirror it and copy down the appropriate key files, however, if you have already downloaded everything with apt-mirror, you'll basically be starting over. <sigh>


    http://ubuntuforums.org/showthread.p...ight=debmirror

  10. #10
    Join Date
    Nov 2006
    Location
    Oregon
    Beans
    4,434
    Distro
    Ubuntu Development Release

    Re: apt-mirrored repository

    Quote Originally Posted by MakOwner View Post
    I found this, which led me down the path to another post, which at least has a method of getting a copy of the repository and the needed release and authentication files. It doesn't use apt-mirror, however. Not sure what the hell apt-mirror is used for as it doesn't appear to actually mirror the repository in a usable state. debmirror seems to mirror it and copy down the appropriate key files, however, if you have already downloaded everything with apt-mirror, you'll basically be starting over. <sigh>


    http://ubuntuforums.org/showthread.p...ight=debmirror
    It's in a usable state for me. Likely it's just something that the minimal ISO is checking for that doesn't exist. I honestly didn't even know there was a minimal ISO
    *Don't PM me directly for support, open a new thread
    *Looking for a MythTV quick start guide?

Page 1 of 6 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •