LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 09-29-2009, 06:55 AM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 591

Rep: Reputation: 31
apt-mirror doesn't create appropriate mirror ???


Hi,
Sorry for disturbing again,
I can't create a local mirror, I tryed many and many times .
Help please


Here is what I have done:
I create a local mirror for lenny ( just to test so I mirrored contrib i386 about 200 MB), here is the tree (remove some letter directories):

I used the command
apt-mirror

the file contains /etc/apt/mirror.list

deb http://ftp.fr.debian.org/debian lenny contrib
###deb-src http://ftp.us.debian.org/debian unstable main contrib non-free

here is the tree :

debian225:/var/www# ls debian
dists pool
debian225:/var/www# tree -L 3 debian
debian
|-- dists
| `-- lenny
| |-- Contents-i386.gz
| |-- Release
| |-- Release.gpg
| `-- contrib
`-- pool
`-- contrib
|-- a
|-- b
|-- c
|-- x
`-- y
40 directories, 3 files

I used the official netboot lenny thru PXE (dhcp)

evrything is fine at boot from a remote client until the choice of the mirror to complete,
If I choose an official one for example ftp://ftp.fr.debian.org/ then debian It runs fine

if I choose my local repo :
http://172.19.6.225/ then debian I get the error
bad archive error
the specified archive mirror is either not available or doesn't have a valid Release!!!!!

The file Realease and Release.gpg are exactly the same as files in official repo, I check them !!!

Is there a special thing to add to the installer ?
here is the pxe directory

debian225:/home# tree -L 3 /var/lib/tftpboot/
/var/lib/tftpboot/
|-- debian-installer
| `-- i386
| |-- boot-screens
| |-- initrd.gz
| |-- linux
| |-- pxelinux.0
| `-- pxelinux.cfg
|-- pxelinux.0 -> debian-installer/i386/pxelinux.0
|-- pxelinux.cfg -> debian-installer/i386/pxelinux.cfg
`-- version.info


I add the line to apt.conf ??

APT::Get::AllowUnauthenticated 1 ;

to disable the test authencity (if any pb of Release.gpg ), not sure that it does something, because If I have to
do something I have to do in /var/lib/tftpboot/debian-installer which contains the kernel

cat /etc/apt/apt.conf


I
http://172.19.6.225/debian/
gives correct directory:
Index of /debian
[ICO] Name Last modified Size Description
[DIR] Parent Directory -
[DIR] dists/ 29-Sep-2009 11:23 -
[DIR] pool/ 29-Sep-2009 10:56 -

Ofcourse no README and other files, are not required normally.



PLEASE HELP

best regards
bela
 
Old 09-30-2009, 04:23 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,497

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Take a look at
http://www.pendrivelinux.com/how-to-...-linux-mirror/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Create a Local Ubuntu Repository using Apt-Mirror and Apt-Cacher LXer Syndicated Linux News 0 08-04-2009 10:13 PM
Apt-mirror clean.sh CoderMan Linux - Software 0 06-06-2009 12:46 PM
LXer: How To Create A Local Debian/Ubuntu Mirror With apt-mirror LXer Syndicated Linux News 0 01-04-2007 05:33 PM
add apt-get mirror johntramp Debian 3 04-22-2004 09:05 AM
apt mirror preference dbkluck Debian 5 10-31-2003 12:01 PM


All times are GMT -5. The time now is 03:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration