Set Up A Local Ubuntu Mirror

This post has moved.

2 comments:

  1. I set up apt-mirror and it pulled down a ton of files, great, but I only seem to have the ubuntu/pool directory. When I point my client at it and run apt-get update it fails as it tries to get files in other paths like ubuntu/dists. Any idea why these paths are not present and how to fix it? Thanks!

    W: Failed to fetch http://10.0.0.1/ubuntu/dists/trusty/InRelease
    W: Failed to fetch http://10.0.0.1/ubuntu/dists/trusty-security/InRelease
    W: Failed to fetch http://10.0.0.1/ubuntu/dists/trusty-updates/InRelease
    W: Failed to fetch http://10.0.0.1/ubuntu/dists/trusty-backports/InRelease
    W: Failed to fetch http://10.0.0.1/ubuntu/dists/trusty-proposed/InRelease
    W: Failed to fetch http://10.0.0.1/ubuntu/dists/trusty/Release.gpg Unable to connect to 10.0.0.1:3142:
    W: Failed to fetch http://10.0.0.1/ubuntu/dists/trusty-security/Release.gpg Unable to connect to 10.0.0.1:3142:
    W: Failed to fetch http://10.0.0.1/ubuntu/dists/trusty-updates/Release.gpg Unable to connect to 10.0.0.1:3142:
    W: Failed to fetch http://10.0.0.1/ubuntu/dists/trusty-backports/Release.gpg Unable to connect to 10.0.0.1:3142:
    W: Failed to fetch http://10.0.0.1/ubuntu/dists/trusty-proposed/Release.gpg Unable to connect to 10.0.0.1:3142:

    ReplyDelete
    Replies
    1. I think what might have happened is that now Apache defaults to /var/www/html instead of /var/www. Please let me know if you run/change step 2 to be
      sudo ln -s /var/spool/apt-mirror/mirror/archive.ubuntu.com/ubuntu/ /var/www/html/ubuntu
      Does that work for you?

      Delete