Results 1 to 2 of 2

Thread: Custom Live CD with apt-mirror

  1. #1
    Join Date
    2018-Jul
    Posts
    1

    Custom Live CD with apt-mirror

    Hello,

    I'm trying to build a full Kali mirror that includes Kali's installer files. GitHub's apt-mirror code was patched a while back to include the capability here: https://github.com/apt-mirror/apt-mi...89e2176d2eec7d

    Everything in my current apt-mirror config is working except it cannot pull the following from https://http.kali.org/kali/dists/kali-rolling/main/

    installer-amd64/
    installer-armel/
    installer-armhf/
    installer-i386/

    For the above reason, building custom live cd offline fails with:

    P: Begin installing debian-installer...
    http://192.168.10.111:8050/kali/dist...cdrom/vmlinuz:
    2018-07-30 01:41:44 ERROR 404: Not Found.
    E: Could not download file: http://192.168.90.111:4038/kali/dist.../cdrom/vmlinuz


    My current apt-mirror mirror.list includes the following. I tried the last two lines yet it still will not pull them from Kali's repos:

    ######## Kali Rolling
    deb https://http.kali.org/kali kali-rolling main contrib non-free
    deb-src https://http.kali.org/kali kali-rolling main non-free contrib

    deb-amd64 https://http.kali.org/kali kali-rolling main contrib non-free
    deb-armel https://http.kali.org/kali kali-rolling main contrib non-free
    deb-i386 https://http.kali.org/kali kali-rolling main contrib non-free
    deb-arm64 https://http.kali.org/kali kali-rolling main contrib non-free
    deb-armhf https://http.kali.org/kali kali-rolling main contrib non-free

    # Kali Debian CD/Installer Files
    deb https://http.kali.org/kali kali-rolling main/debian-installer main
    deb-amd64 https://http.kali.org/kali kali-rolling main/debian-installer main
    deb-i386 https://http.kali.org/kali kali-rolling main/debian-installer main
    deb-armel https://http.kali.org/kali kali-rolling main/debian-installer main
    deb-armhf https://http.kali.org/kali kali-rolling main/debian-installer main

    # Tried both of the below but neither works
    deb-amd64 https://http.kali.org/kali kali-rolling main netboot cdrom
    deb-installer-amd64 https://http.kali.org/kali kali-rolling netboot cdrom

    How can I adjust the above lines so it pulls all the directories from Kali's mirror, including the ones necessary to build CD 100% offline?

  2. #2
    Join Date
    2016-Dec
    Posts
    247
    Not a fix for this and I'm not familiar with apt-mirror.

    Give a try to apt-cacher-ng and configure the proxy on your servers. apt-cacher-ng will download the first time a package is requested then any next request will be downloaded from cache. One thing though, you probably want to block access to the web interface of apt-cacher-ng from the outside with a simple iptables rule.

Similar Threads

  1. Live Build a Custom Kali ISO
    By muts in forum Building Custom Kali Images
    Replies: 49
    Last Post: 2017-01-26, 09:58
  2. Replies: 1
    Last Post: 2016-10-03, 10:37
  3. How do I create custom (non-PAE) ISO from Live DVD launch?
    By cliffskier in forum Installing Archive
    Replies: 0
    Last Post: 2014-05-12, 16:52

Posting Permissions

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