apt-mirror

Discussion in 'Linux, BSD and Other OS's' started by donkey42, Jun 20, 2009.

  1. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    ok trying create local apt mirror, following this guide but as with all guides, if it goes wrong your on your own,
    anyway @ start page 2 i enter sudo apt-mirror -c apt-mirror, which returns this error: apt-mirror: invalid config file specified at /usr/bin/apt-mirror line 101.

    & only the spanish version debian site comes up in google when i enter error message

    BTW: i don't think i missed anything, what do you want first ?

    conf files attached, i'mm at a loss wahat to do ?
     

    Attached Files:

  2. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    Hehe, you and your crazy projects! :chk: A local apt mirror is to save bandwidth on networks with a whole lot of Debian systems, or to act as a mirror on the WWW so others can download debian from you. I'm assuming you only have one system? In that case it's just a huge waste of bandwidth and disc space! It's also rude to the volunteer mirrors that host the distros, since you're wasting their bandwidth too. So, please keep that in mind before plunging ahead.

    Assuming this is a learning exercise, copying word for word probably won't help you much unless you're working on your copy & paste skills. On that note, look at the config files. Notice anything? For one thing, both Sarge and Edgy are extremely obsolete, and probably aren't available on those mirrors anymore. As for the error, how are you running the apt-mirror command? Try running it this way:

    Code:
    apt-mirror /etc/apt/mirror.list
     
  3. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    will do :beer:

    BTW: just because i won't benefit much except speeding up the apt processes & waste disk space but it's my disk space & i'll waste it if i want, no offence

    anyway i've since created a partition n mounted it in fstab to /mnt/apt/archives, no bigy i've just to create a symlink from /var/spool/apt-mirror/ to /mnt/apt/archives i think
     
  4. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    By all means, waste away then. But if you don't want advice, why post here? Also, like I said, it would be rude to run a local apt mirror since you're not just wasting your own resources, but the resources of the upstream mirrors you're pulling from. That said, I hope you learn what you've set out to learn.
     
  5. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    i'm always leaning, and i tend to learn more by making my own mistakes, in my opinion it's the best way to learn, unlike teachers with more brains than common sense[ot]it's just my luck that your wife is a teacher :doh: :married:[/ot]BTW: one day all this crap floating around in my head will be useful to someone one day
    BTW: you know your a geek when it's sunny outside & your inside on your PC
     
  6. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    Dont' get me wrong, I'm all for doing labs and learning things you wouldn't normally work with. In fact, both of my my current servers started out as labs. However, I feel this should be tempered with some self-discipline.

    For instance, if your Linux system isn't even working right, should you be running theoretical labs on things you may never encounter in your lifetime? Or, would it be more productive to get your own house in order, so to speak, before taking on new projects? If you don't force yourself to tackle the problems right in front of you, how can you expect to handle less fundamental issues when they arise?

    If you want an example, last I heard, you had a system with a broken half-installation of SELinux, no working 3D drivers, and a bunch of compiliation cruft for half-installed broken software. Is that still the case? Did you ever learn how to do those things correctly, or simply shrug and move on?

    P.S. - Not trying to be harsh, but trying to be honest in the interest of helping you out.
     
  7. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    well when i did net install i formatted my / & /boot parts & kept data on my /home so theres only some prog configs remaining which won't do any harm in /home the main reason i kept data is so i wouldn't get rid of emails
    whatever gave you that idea, well TBH i'm on default kernel, i've got 3D (1280x1024) got kernel you rolled installed but it won't boot, just freezes at "bootin the kernel"

    BTW: non booting kernel is: 2.6.30 P4

    no i appriceate it, i'm not one of these mamby pamby posh gits, i live in the real world & love having a laugh, never ever hold back with me, if you think i'm being too much of a plank, tell me and i'll probably agree with you, as far as if concerned anyone can say anything about me but i don't like it if somone says something about someone i care about, but i ayways remain calm & i hate violance i would prefer to talk calmly about any issues anyone has

    BTW: thank you for everything, especially for taking the time to read this crap
     
  8. Impotence

    Impotence May the source be with u!

    Likes Received:
    6
    Trophy Points:
    38
    instead of trying to mirror an entire repository, Perhaps a caching apt proxy would be a good project donkey? i'd also have a look a Apt-p2p. It acts as a http proxy that you tell apt to use, when apt requests a package it checks a distributed database to see if its available from other apt-p2p users, downloads it from them and returns it to apt in the format it would expect if it had been downloaded from the real mirror. If it can't find it in the distributed db then it falls back to downloading it from the real mirror.
     

Share This Page