Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After install ubuntu 12.04 in client PC. I try to setup apt-cache server in client PC. But, it doesn't work in ubuntu client.

Err precise/multiverse Sources
  403  Forbidden

I try this step:

Step 1: sudo apt-get install apt-cacher apache2
Step 2: sudo nano /etc/default/apt-cacher --> already set AUTOSTART = 1
Step 3: sudo invoke-rc.d apache2 restart
Step 4: open http://server:3142/apt-cacher in browser
    HTTP Error 403 (Forbidden): The server refused to fulfill the request.

Here is my /etc/apt-cacher/apt-cacher.conf:

I try to open:

wget -q -O-

FW-1 at jeinfw: Access denied.</BODY>

ufw status

Status: inactive

sudo iptables -L

netstat -an | grep "LISTEN "

share|improve this question
It means , you don't have access to it. – atenz Jul 9 '12 at 6:38
@tijybba:how to make it can accessing the server ? – klox Jul 9 '12 at 7:18

I had same problem too. To solve this issue you must edit /etc/apt-cacher/apt-cacher.conf and find the line that has this word: #allowed_hosts:*.

After finding the line delete "#" and add your allowed network to use for example:


save the file (use sudo for saving), restart your server and apt-cacher-server accessible from every allowed client on your network.

share|improve this answer
+1, It is the usual solution for this error. – shgnInc Jan 29 '14 at 17:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.