在客户端PC上安装ubuntu 12.04后。我尝试在客户端PC中安装apt缓存服务器.但是,它在ubuntu客户端不起作用。
Err http://136.xxx.xxx.x precise/multiverse Sources
403 Forbidden我尝试这一步:
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.这是我的/etc/apt-cacher/apt-cacher.conf:
http://paste.ubuntu.com/1087474/
我试着打开:
wget -q -O- http://www.google.com
<TITLE>Error</TITLE>
<BODY>
<H1>Error</H1>
FW-1 at jeinfw: Access denied.</BODY>
ufw status
Status: inactivesudo iptables
netstat -an \grep“听”
发布于 2012-12-04 21:30:32
我也有同样的问题。要解决这个问题,您必须编辑/etc/apt-cacher/apt-cacher.conf并找到包含以下单词的行:#allowed_hosts:*。
在找到行后,删除"#“并添加允许使用的网络,例如:
allowed_hosts:192.168.1.0/24保存文件(使用sudo保存),重新启动服务器和从网络上每个允许的客户端访问的apt缓存服务器。
https://askubuntu.com/questions/161427
复制相似问题