LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 4191|回复: 5

hiweed apt代理设置问题。

[复制链接]
发表于 2004-6-14 17:07:39 | 显示全部楼层 |阅读模式
我在apt.conf里已经设置了代理
但这里还是没有用。

错误 http://210.45.66.210 sid/main Packages
  Could not connect to 3128:80 (206.253.214.102). - connect (111 Connection refused)
错误 http://210.45.66.210 sid/main Release
  Could not connect to 3128:80 (206.253.214.102). - connect (111 Connection refused)
错误 http://210.45.66.210 sid/non-free Packages
  Could not connect to 3128:80 (206.253.214.102). - connect (111 Connection refused)
错误 http://210.45.66.210 sid/non-free Release
  Could not connect to 3128:80 (206.253.214.102). - connect (111 Connection refused)
错误 http://210.45.66.210 sid/contrib Packages
  Could not connect to 3128:80 (206.253.214.102). - connect (111 Connection refused)
错误 http://210.45.66.210 sid/contrib Release
  Could not connect to 3128:80 (206.253.214.102). - connect (111 Connection refused)
错误 http://210.45.66.210 sid/non-US/main Packages
  Could not connect to 3128:80 (206.253.214.102). - connect (111 Connection refused)
错误 http://210.45.66.210 sid/non-US/main Release
  Could not connect to 3128:80 (206.253.214.102). - connect (111 Connection refused)
错误 http://210.45.66.210 sid/non-US/non-free Packages
  Could not connect to 3128:80 (206.253.214.102). - connect (111 Connection refused)
错误 http://210.45.66.210 sid/non-US/non-free Release
  Could not connect to 3128:80 (206.253.214.102). - connect (111 Connection refused)
错误 http://210.45.66.210 sid/non-US/contrib Packages
  Could not connect to 3128:80 (206.253.214.102). - connect (111 Connection refused)
错误 http://210.45.66.210 sid/non-US/contrib Release
  Could not connect to 3128:80 (206.253.214.102). - connect (111 Connection refused)
错误 http://210.45.66.210 sid/ustc Packages
  Could not connect to 3128:80 (206.253.214.102). - connect (111 Connection refused)
错误 http://210.45.66.210 sid/ustc Release
  Could not connect to 3128:80 (206.253.214.102). - connect (111 Connection refused)
错误 http://210.45.66.210 sid/firefly Packages
  Could not connect to 3128:80 (206.253.214.102). - connect (111 Connection refused)
错误 http://210.45.66.210 sid/firefly Release
  Could not connect to 3128:80 (206.253.214.102). - connect (111 Connection refused)
正在读取软件包列表...

好象我的代理没有设置过一样
发表于 2004-6-14 17:26:07 | 显示全部楼层
您是如何设置的呢?设置 http_proxy 或者 ftp_proxy 的环境变量也没有用么?
 楼主| 发表于 2004-6-14 17:30:06 | 显示全部楼层

  1. // Options for the downloading routines
  2. Acquire
  3. {
  4.   // HTTP method configuration
  5.   http
  6.   {
  7.     Proxy "http://10.61.2.88:3128";
  8.     //Proxy::http.us.debian.org "DIRECT";  // Specific per-host setting
  9.     Timeout "120";
  10.     Pipeline-Depth "5";
  11.    
  12.     // Cache Control. Note these do not work with Squid 2.0.2
  13.     No-Cache "false";
  14.     Max-Age "86400";     // 1 Day age on index files
  15.     No-Store "false";    // Prevent the cache from storing archives   
  16.   };

  17.   ftp
  18.   {
  19.     Proxy "ftp://10.61.2.88:3128/";
  20.     //Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting

  21.     /* Required script to perform proxy login. This example should work
  22.        for tisfwtk */
  23.    
  24.     Timeout "120";
  25.    
  26.     /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
  27.        is prefered if possible */
  28.     //Passive "true";
  29.     //Proxy::Passive "true";
  30.     //Passive::http.us.debian.org "true"; // Specific per-host setting
  31.   };
  32. };
  33. //This Is Not A Valid Config File
复制代码
 楼主| 发表于 2004-6-14 17:30:47 | 显示全部楼层
同时我也把http_proxy,ftp_proxy之前,export了
发表于 2004-6-15 08:05:34 | 显示全部楼层
你把你的 /etc/apt/apt.conf 改成别的名字,然后创建一个新的,内容只包括以下这行即可:
Acquire::http:roxy "http://10.61.2.88:3128";

或者在终端中 export http_proxy=http://10.61.2.88:3128
发表于 2006-9-27 18:33:05 | 显示全部楼层
hiweed里面的apt目录是只读啊,怎么使用窗口管理改权限呢?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表