#1  
Old 4th January 2007, 10:31
bluegrass bluegrass is offline
Member
 
Join Date: Jan 2006
Location: Pinas
Posts: 51
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via Yahoo to bluegrass
Question Re apt-mirror

This is with regards to "How To Create A Local Debian/Ubuntu Mirror With apt-mirror"

After the configuration and I believe I was able to download all the necessary files (stable main contrib non-free), but when I tested it on my other newly configured server I get this error, after the "apt-get update" command.

Code:
W: Couldn't stat source package list http://192.168.0.211 sarge/main Packages (/var/lib/apt/lists/192.168.0.211_debian_dists_sarge_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://192.168.0.211 sarge/contrib Packages (/var/lib/apt/lists/192.168.0.211_debian_dists_sarge_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://192.168.0.211 sarge/non-free Packages (/var/lib/apt/lists/192.168.0.211_debian_dists_sarge_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://192.168.0.211 sarge/main Packages (/var/lib/apt/lists/192.168.0.211_debian_dists_sarge_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://192.168.0.211 sarge/contrib Packages (/var/lib/apt/lists/192.168.0.211_debian_dists_sarge_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://192.168.0.211 sarge/non-free Packages (/var/lib/apt/lists/192.168.0.211_debian_dists_sarge_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.
If I checked my local mirror on the internet browser I can actually access the folders: http://192.168.0.211/debian

Code:
Index of /debian/dists/stable/main

Icon  Name                    Last modified      Size  Description[DIR] Parent Directory                             -   
[DIR] binary-i386/            04-Jan-2006 11:12    -   

Apache/2.0.54 (Debian GNU/Linux) Server at 192.168.0.211 Port 80
When I make an NMAP to the local mirror from another server:

Code:
mail:/# nmap -P0 192.168.0.211

Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2007-01-04 17:24 PHT
Interesting ports on 192.168.0.211:
(The 1655 ports scanned but not shown below are in state: closed)
PORT    STATE SERVICE
22/tcp  open  ssh
80/tcp  open  http
110/tcp open  pop3
111/tcp open  rpcbind
113/tcp open  auth
143/tcp open  imap
752/tcp open  qrh
993/tcp open  imaps
MAC Address: 00:00:00:00:00:00 (D-Link Systems)

Nmap finished: 1 IP address (1 host up) scanned in 3.726 seconds
is there something i missed?

By the way, when I did this command:
Code:
/bin/bash /var/spool/apt-mirror/var/clean.sh
there were no unnecessary files nor directories removed. Is this normal?
Reply With Quote
Sponsored Links
  #2  
Old 5th January 2007, 15:47
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

I suggest you run
Code:
su - apt-mirror -c apt-mirror
again and check if there are any errors in the output.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 31st October 2007, 12:45
komerad komerad is offline
Junior Member
 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

Hi,

I have encountered this problem too. And it is barely documented this one comes pretty close to how I could describe the problem.

The problem is either :
a) apt (client) cannot handle packages on a vhost.
b) apt (client) has a problem with the symlinks

I haven't tested it much further yet to find out wich one is exactly causing the problem but this is how I solved it :

(a)
Code:
nano /etc/apache2/sites-available/default
Change :
Code:
 RedirectMatch ^/$ /apache2-default/
to :
Code:
 # RedirectMatch ^/$ /apache2-default/
(b)
As a mirror takes quiet a bit of space and is something you don't want to lose then its a good idea to have it on a seperate partition or even disk.
So :
Code:
mkdir /var/www/repositories
chown apt-mirror /var/www/repositories
mount /dev/[your mirror disk] /var/www/repositories
for future use :
Code:
nano /etc/apt/mirror.list
Change :
Code:
# set base_path    /var/spool/....
on line :7
to :
Code:
set base_path      /var/www/repositories/
when finished restart your webserver

Now change your clients sources list to search the new path.

As said : this way does probably more then is needed to fix the problem feel free to test it partitial and reply the method that does it alone

I also know that I'm a bit late with respons but I had this problem now and this forum came close to my search string so it will be usefull for others too.

Last edited by komerad; 31st October 2007 at 15:05.
Reply With Quote
The Following User Says Thank You to komerad For This Useful Post:
falko (1st November 2007)
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running A File-, Print-, Proxy-, DHCP-, AND Time-Server - Apt Problem nzfoxnet HOWTO-Related Questions 11 21st November 2006 08:11
Which Apt files to use for Suse 10.0 ? (perfect Suse 9.3) alphenit HOWTO-Related Questions 4 17th January 2006 13:37
Help intalling apt please samfraser Installation/Configuration 3 16th January 2006 23:14
Mirror FAQs from main page to forum domino Forum Suggestions 2 22nd November 2005 09:09
apt problems bluntman HOWTO-Related Questions 1 29th July 2005 11:17


All times are GMT +2. The time now is 22:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.