LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apt-cacher help! (https://www.linuxquestions.org/questions/linux-newbie-8/apt-cacher-help-760719/)

odin06 10-09-2009 02:36 AM

Apt-cacher help!
 
Hi to All!

Im a super noob in ubuntu and im just starting to discover its strengths, one of them is APT-CACHE/APT-CACHER. Imagine a local repository that saves a lot of your bandwidth. Now back to my concern, ive done a "Server-Client" of APT-CACHER already, but im getting this message when i enter the sudo apt-get update to my ubuntu client,

"Failed to fetch http://192.168.2.44/ubuntu/dists/jau...source/Sources 403 Sorry, not allowed to fetch that type of file: Packages"

Am i missing something? coz im pretty sure i followed the Ubuntu Tech Docs correctly.

Need your help on this guys.. Thank you very much!

jstephens84 10-10-2009 12:13 AM

A 403 is a forbidden message. So I would start with the permissions on this folder structure. Just for quick reference. http://en.wikipedia.org/wiki/HTTP_403

Can you post what doc you followed so we can reference that. Also just for grins, try changing the privileges to 777 on the ubuntu directory and see if that lets you download them. If it does then Try removing write from the all group and see if you can still download them.

odin06 10-10-2009 05:32 AM

Nice!:)

https://help.ubuntu.com/community/Apt-Cacher-Server

Ive used this reference. and applied the second option in client installations. can you teach me where to put the 777 rights? i really appreciate the help.

Thanks.

jstephens84 10-10-2009 07:48 AM

Quote:

Originally Posted by odin06 (Post 3714427)
Nice!:)

https://help.ubuntu.com/community/Apt-Cacher-Server

Ive used this reference. and applied the second option in client installations. can you teach me where to put the 777 rights? i really appreciate the help.

Thanks.

if you go to your web root. Where the ubuntu folder first exists, you will then want to type in the following command,

Code:

sudo chmod -R 777 ubuntu
what that will do is make all files read / write. Then test to see if that works. Then if it does you will want to remove the write access for the everyone group. this can be done my doing the following.

Code:

sudo chmod -R o-w ubuntu
Can you also post what release of Ubuntu you are using to host the updates?

One last thing. Can you post your apt-cacher.conf file.


All times are GMT -5. The time now is 10:52 AM.