LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Apt-proxy setup (https://www.linuxquestions.org/questions/debian-26/apt-proxy-setup-176637/)

pe2338 05-01-2004 08:45 AM

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

andmalc 05-01-2004 03:44 PM

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

andmalc 05-03-2004 01:27 PM

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.

pe2338 05-04-2004 12:38 PM

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)


All times are GMT -5. The time now is 12:33 PM.