apt-mirror in Ubuntu

Discussion in 'HOWTO-Related Questions' started by machavez84, Apr 26, 2007.

  1. machavez84

    machavez84 New Member

    I use the apt-mirror for debian/ubuntu howto, is great, but I have a problem:

    I am trying to change de default path to a directory called apt-mirror in my home. In the mirror.list file says that if i change the default path, i should create the subdirectorys too.

    I did that but when i run su - apt-mirror -c apt-mirror I get this error:

    apt-mirror: can't write to intermediate file (index-urls.0) at /usr/bin/apt-mirror line 174.

    what is that?
     
  2. falko

    falko Super Moderator ISPConfig Developer

    What exactly did you do?
     
  3. machavez84

    machavez84 New Member

    thanks, I solve it, was a permision problem
     
  4. AnRkey

    AnRkey New Member

    Ubuntu network install problem

    Hi Falco

    When I run the network install I enter the IP of the local mirror that I created. Then I add /ubuntu as the directory and then I get an error Downloading a file failed" with an Option to retry or change mirror.

    I checked my local mirror by going to http://172.16.10.18/ubuntu and checking that apache was serving the files and it seems fine as I can download files through my browser.

    I then hit Alt+F2 and typed tail /var/log/syslog and it shows that I have a bad d-i packages file. This is my mirror.conf file...

    ############# config ##################
    #
    # set base_path /var/spool/apt-mirror
    #
    # if you change the base path you must create the directories below with write privlages
    #
    # set mirror_path $base_path/mirror
    # set skel_path $base_path/skel
    # set var_path $base_path/var
    # set cleanscript $var_path/clean.sh
    # set defaultarch <running host architecture>
    # set nthreads 20
    # set tilde 0
    #
    ############# end config ##############

    deb http://archive.ubuntu.com/ubuntu feisty main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu feisty-updates main restricted universe multiverse
    # deb http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse
    # deb http://archive.ubuntu.com/ubuntu edgy-security main restricted universe multiverse
    # deb http://archive.ubuntu.com/ubuntu edgy-proposed main restricted universe multiverse

    # deb-src http://archive.ubuntu.com/ubuntu feisty main restricted universe multiverse
    # deb-src http://archive.ubuntu.com/ubuntu feisty-updates main restricted universe multiverse
    # deb-src http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse
    # deb-src http://archive.ubuntu.com/ubuntu edgy-security main restricted universe multiverse
    # deb-src http://archive.ubuntu.com/ubuntu edgy-proposed main restricted universe multiverse

    clean http://archive.ubuntu.com/


    Could you shed some light?

    Thanks for the kickass howto.

    AnRkey
     
    Last edited: May 14, 2007
  5. vietwow

    vietwow New Member

    So how did you resolve ? because i have the same problem with you :(
     
  6. AnRkey

    AnRkey New Member

    I still don't have this fixed, waiting for Falco to respond. This thread is about his howto so maybe he can help.

    AnRkey
     
  7. falko

    falko Super Moderator ISPConfig Developer

    What's the exact error message?
     
  8. AnRkey

    AnRkey New Member

    Screenshots

    Hi Falco

    I have attached screenshots of my problem. Please let me know if there is anything else I can provide.

    AnRkey
     

    Attached Files:

    • vm0.png
      vm0.png
      File size:
      5.9 KB
      Views:
      690
    • vm1.png
      vm1.png
      File size:
      12.3 KB
      Views:
      687
    • vm2.png
      vm2.png
      File size:
      12 KB
      Views:
      681
  9. max3903

    max3903 New Member

    main/debian-installer

    Hello,

    You need to add main/debian-installer in mirror.list if you want to be able to install.

    Your next problem (the one i have) is that the installation will stop as apt-get won't be able to find Packages.bz2 files in the skel directory.

    I guess they have been bunzipped by apt-mirror to build the list of packages to download. Too bad it doesn't keep them.

    Any idea to solve this issue.

    Thank you.

    Maxime
     
  10. AnRkey

    AnRkey New Member

    Ubuntu

    My problem is with the Ubuntu network installer not Debian. Is the advise still the same in this case?
     
  11. max3903

    max3903 New Member

  12. falko

    falko Super Moderator ISPConfig Developer

    Your mirror.conf looks ok, so I'm not sure what's causing the problem... :confused:
     
  13. max3903

    max3903 New Member

    My mirror.list

    ############# config ##################
    #
    set base_path /srv/repository/ubuntu
    #
    # if you change the base path you must create the directories below with write privlages
    #
    # set mirror_path $base_path/mirror
    # set skel_path $base_path/skel
    # set var_path $base_path/var
    # set cleanscript $var_path/clean.sh
    # set defaultarch <running host architecture>
    set nthreads 20
    set tilde 0
    #
    ############# end config ##############

    deb http://mirrors.kernel.org/ubuntu feisty main main/debian-installer restricted restricted/debian-installer
    deb http://mirrors.kernel.org/ubuntu feisty-updates main restricted
    deb http://mirrors.kernel.org/ubuntu feisty-security main restricted

    clean http://mirrors.kernel.org/ubuntu

    My installation now works with this config file.
     
  14. Icarus

    Icarus New Member

    Hi !! I had the same error message. In my case I changed the default mirror path and the issue was that I did not have the correct permissons on the new folder I created. Make sure the user apt-mirror has write privilegies on the new path.

    chown -R apt-mirror. /newfolder

    BR
     

Share This Page