create a local debian/ubuntu mirror with apt-mirror

Discussion in 'HOWTO-Related Questions' started by ZoDiaK, Mar 23, 2009.

  1. ZoDiaK

    ZoDiaK New Member

    Hello,


    I created a mirror with apt-mirror with the help of this howto:
    http://www.howtoforge.com/local_debian_ubuntu_mirror

    My problem is, that apt-mirror mirrors only the normal packages of the distributions but the updates or security packages wont be mirrored.

    Here is the output of apt-mirror:
    Code:
    openssh-server:~# su - apt-mirror -c apt-mirror
    Downloading 51 index files using 20 threads...
    Begin time: Mon Mar 23 09:54:48 2009
    [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
    End time: Mon Mar 23 09:54:48 2009
    
    Proceed indexes: [PPsh: security.debian.org/debian-security//dists/lenny/updates/main/binary-i386/Packages.gz: Datei oder Verzeichnis nicht gefunden
    apt-mirror: can't open index in proceed_index_gz at /usr/bin/apt-mirror line 382.
    
    The problem are the double slashes in front of dists but I don't know how I can change this :confused:

    And this is my mirror.list
    Code:
    ############# config ##################
    #
    set base_path    /mirror
    #
    # if you change the base path you must create the directories below with write privlages
    #
    set mirror_path  /mirror
    set skel_path    /mirror/skel
    set var_path     /mirror/var
    # set cleanscript $var_path/clean.sh
    # set defaultarch  <running host architecture>
    set nthreads    20
    set _tilde 0
    #
    ############# end config ##############
    
    deb http://ftp.de.debian.org/debian                     lenny                   main contrib non-free
    deb http://security.debian.org/debian-security          lenny/updates           main contrib non-free
    deb http://de.archive.ubuntu.com/ubuntu                 intrepid                main restricted universe multiverse
    deb http://de.archive.ubuntu.com/ubuntu                 intrepid-updates        main restricted universe multiverse
    deb http://de.archive.ubuntu.com/ubuntu                 intrepid-security       main restricted universe multiverse
    clean http://ftp.de.debian.org/
    clean http://security.debian.org/
    clean http://de.archive.ubuntu.com/
    
    I hope you can help me

    Thanks a lot!
    Zodiak

    ###########################################
    My Problem is solved.

    My PC didn't find the Mirrorserver because the default gateway wasnt configured.

    Greetz
    ZoDiaK
     
    Last edited: Mar 24, 2009
  2. aubrey

    aubrey New Member

    How did you fix the problem.

    Hi. I have trying on Ubuntu 10.10 Server to create a repository. I keep on running into the same problem that you have identified.

    Could you please provide me with the solution to this.

    You have mentioned it was a Gateway configuration.
     
  3. falko

    falko Super Moderator Howtoforge Staff

    Does the server have a working Internet connection? Does
    Code:
    ping -c4 google.com
    work?
     
  4. bkbarros

    bkbarros New Member

    apt-mirror with the 3 last distros of ubuntu

    in my case, I mirrored the three last versions of ubuntu. apt-mirror has created the pool but did not create the folder /dists... so my local computers are unable to pull from the mirror in sources.list. what i did wrong? and how fix that? Thanks..and sorry my "google english"! :(
     
  5. falko

    falko Super Moderator Howtoforge Staff

    Any errors in your logs?
     

Share This Page