LinuxQuestions.org
Help answer threads with 0 replies.
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 05-01-2004, 08:45 AM   #1
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
Question Apt-proxy setup


did anybody managed to set up a mirror using apt-proxy?
I tried, but I couldn't make it work.

I want it to run on a separate partition /mirror and I changed the default directory of the repository..
but I get this errors:

Code:
sarge:/etc/apt# apt-get update
Err http://ambasador testing/main Packages
  404 is not serviced by this server
Ign http://ambasador testing/main Release
Err http://ambasador stable/main Packages
  404 is not serviced by this server
Ign http://ambasador stable/main Release
3% [Connecting to ftp.at.debian.org] [Connecting to ftp.easynet.be] [Connecting
sarge:/etc/apt# apt-get update
Err http://ambasador testing/main Packages
  404 is not serviced by this server
Ign http://ambasador testing/main Release
Err http://ambasador stable/main Packages
  404 is not serviced by this server
Ign http://ambasador stable/main Release
Hit http://security.debian.org stable/updates/main Packages
even when changed back to the default one it doesn't work...

The docs are pretty few and they all say " it should work "....

What can I do to make this work?

ambasador is the server and sarge is the workstation, of course.
the apt-proxy log looks like this (the end of it):
[4320 16:34:43] Sat May 1 16:34:43 EEST 2004 Request /dists/testing/main/binary-i386/Release
[4320 16:34:43] Bad URL /dists/testing/main/binary-i386/Release is not serviced by this server
[4390 16:34:43] Sat May 1 16:34:43 EEST 2004 Request /dists/stable/main/binary-i386/Packages.gz
[4390 16:34:43] Bad URL /dists/stable/main/binary-i386/Packages.gz is not serviced by this server
[4460 16:34:43] Sat May 1 16:34:43 EEST 2004 Request /dists/stable/main/binary-i386/Release
[4460 16:34:43] Bad URL /dists/stable/main/binary-i386/Release is not serviced by this server
[4543 16:35:37] Sat May 1 16:35:37 EEST 2004 Request /dists/testing/main/binary-i386/Packages.gz
[4543 16:35:37] Bad URL /dists/testing/main/binary-i386/Packages.gz is not serviced by this server
[4613 16:35:37] Sat May 1 16:35:37 EEST 2004 Request /dists/testing/main/binary-i386/Release
[4613 16:35:37] Bad URL /dists/testing/main/binary-i386/Release is not serviced by this server
[4683 16:35:37] Sat May 1 16:35:37 EEST 2004 Request /dists/stable/main/binary-i386/Packages.gz
[4683 16:35:37] Bad URL /dists/stable/main/binary-i386/Packages.gz is not serviced by this server
[4753 16:35:37] Sat May 1 16:35:37 EEST 2004 Request /dists/stable/main/binary-i386/Release
[4753 16:35:37] Bad URL /dists/stable/main/binary-i386/Release is not serviced by this server
[4836 16:37:04] Sat May 1 16:37:04 EEST 2004 Request /dists/testing/main/binary-i386/Packages.gz
[4836 16:37:04] Bad URL /dists/testing/main/binary-i386/Packages.gz is not serviced by this server
[4907 16:37:04] Sat May 1 16:37:04 EEST 2004 Request /dists/testing/main/binary-i386/Release
[4907 16:37:04] Bad URL /dists/testing/main/binary-i386/Release is not serviced by this server
[4977 16:37:04] Sat May 1 16:37:04 EEST 2004 Request /dists/stable/main/binary-i386/Packages.gz
[4977 16:37:04] Bad URL /dists/stable/main/binary-i386/Packages.gz is not serviced by this server
[5047 16:37:04] Sat May 1 16:37:04 EEST 2004 Request /dists/stable/main/binary-i386/Release
[5047 16:37:04] Bad URL /dists/stable/main/binary-i386/Release is not serviced by this server
[5126 16:37:55] Sat May 1 16:37:55 EEST 2004 Request /dists/testing/main/binary-i386/Packages.gz
[5126 16:37:55] Bad URL /dists/testing/main/binary-i386/Packages.gz is not serviced by this server
[5196 16:37:56] Sat May 1 16:37:56 EEST 2004 Request /dists/testing/main/binary-i386/Release
[5196 16:37:56] Bad URL /dists/testing/main/binary-i386/Release is not serviced by this server
[5266 16:37:56] Sat May 1 16:37:56 EEST 2004 Request /dists/stable/main/binary-i386/Packages.gz
[5266 16:37:56] Bad URL /dists/stable/main/binary-i386/Packages.gz is not serviced by this server
[5336 16:37:56] Sat May 1 16:37:56 EEST 2004 Request /dists/stable/main/binary-i386/Release
[5336 16:37:56] Bad URL /dists/stable/main/binary-i386/Release is not serviced by this server


What am I supposed to do ? Add Release and a Packages.gz files by hand?

Thanks
 
Old 05-01-2004, 03:44 PM   #2
andmalc
LQ Newbie
 
Registered: Nov 2003
Distribution: Debian
Posts: 19

Rep: Reputation: 0
Worked for me when I last had it set up (after a period of being confused). I don't remember enough to help you - sorry. I didn't have to create a Packages.gz, though.

Here's a link to a post on the Debian Users list that might help:

http://tinyurl.com/2o4qt
 
Old 05-03-2004, 01:27 PM   #3
andmalc
LQ Newbie
 
Registered: Nov 2003
Distribution: Debian
Posts: 19

Rep: Reputation: 0
OK, I'm trying this myself:

Take a look at the docs in /usr/share/doc/apt-proxy and the configuration generator script in the (misnamed) examples subdirectory.

The script generates an apt-proxy.conf file using the sources in your /etc/apt/sources.list and a sources.list file to put on the client machines. Save the original /etc/apt-proxy/apt-proxy.conf file before you copy in the generated one because it includes lots of configuration examples and is probably better for helping you understand what you're doing.
 
Old 05-04-2004, 12:38 PM   #4
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Original Poster
Rep: Reputation: 30
apparently, the server worked fine, but the sources for the clients were wrong.
they are supposed to contain "apt-proxy" at the end of the source line; so the line becomes:

now, I have another problem, I can't convince apt-proxy to give me testing branch, besides stable and unstable. (I have modified my sources, of course)
 
  


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
How to set up proxy in Apt-Get's apt.conf? rykel Fedora 9 10-09-2013 03:24 AM
knoppix 3.4 and no apt-setup how to fix info install apt-file + base-config maximalred Debian 0 10-16-2004 06:36 PM
apt-proxy and cron-apt - download once for the whole LAN Abject Debian 1 06-20-2004 01:53 PM
knoppix 3.4 apt-setup on hdinstall / apt-get on live-cd non3 Linux - Distributions 0 05-25-2004 10:14 AM
APT behind a proxy geniarse Debian 4 04-14-2004 09:26 PM


All times are GMT -5. The time now is 09:14 PM.

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