使用Lucid,从Lucid mini.iso安装。都是AMD64。
在下面的文章中,我尝试了\,所有apt-get,apt-install,anna-install,dpkg:
d-i preseed/early_command string <cmd+opt> squid-deb-proxy-client我也试过:
d-i preseed/early_command string /usr/bin/wget \
-O squid-deb-proxy-client_0.3.1_all.deb \
http://ubuntu.media.mit.edu/ubuntu//pool/universe/s/squid-deb-proxy/squid-deb-proxy-client_0.3.1_all.deb && dpkg -i squid-deb-proxy-client_0.3.1_all.deb这是可能的吗?如果或者最早的点是什么,我们可以安装一个使用squid代理服务器的服务器吗?
发布于 2012-12-28 16:14:08
若要强制安装程序使用代理服务器,请使用d-i mirror/http/proxy选项正确地使用预置来配置它,例如:
d-i mirror/http/proxy string http://ip-or-hostname-of-proxy:8000/您实际上并不需要squid-deb-proxy-client包来使用Squid代理。-client包的唯一目的是能够自动发现网络中的代理服务器。
发布于 2011-12-23 18:42:50
当early_command运行时,我认为您甚至还没有格式化/挂载/target。例如,可以使用preseed/early_command在安装程序环境中安装udeb(但请注意,不是标准deb):
# This first command is run as early as possible, just after
# preseeding is read.
#d-i preseed/early_command string anna-install some-udeb您可以在您的late_command中运行这个程序,这时您可以在目标系统中实际安装内容:
d-i preseed/late_command string \
in-target apt-get install -y --force-yes openssh-server; \
true我认为让您的系统从代理获得包的最好方法是Pete建议的。
发布于 2013-12-11 14:13:09
由于bug #1183326,目前不可能这样做,但是如果有一天它被修复了,那么应该可以使用:
d-i anna/choose_modules string squid-deb-proxy-client-udeb在预置文件中,由于bug #642159,d-i镜像/http/代理技巧将适用于有限的escenarios。
https://askubuntu.com/questions/41006
复制相似问题