emacs 的 authinfo 代理设置出现问题
我刚刚开始使用 emacs,并尝试安装 package.el,但代理出现问题。当我尝试从 elpa 安装站点 运行命令时,“url-retrieve-synchronously”命令返回带有 407 错误的缓冲区(我知道这一点是因为我将它返回的内容写入文件并看到它,如果使用不需要代理的 www.google.com,它会返回页面)。
我认为问题出在代理的用户名上。它的形式如下:
学生\123454
我认为是“\”字符造成了麻烦。我尝试做
学生\123457 | “学生\1233467”| “学生\\1234567”
并且它不起作用。
我的 ~./authinfo 文件看起来像这样
机器 proxys.vasity.ac.za:80 端口 http 登录 STUDENTS\12234 密码 012TTjal
我正在从 Ubuntu Natty 存储库运行 emacs23。据我所知,emacs 没有其他配置。
我设置了 bash http_proxy 并且 wget 可以工作。所以我的问题是:
有没有办法告诉 emacs 附带的 url.el 包使用 wget 而不是现在使用的?
我可以指定我的用户名以便 url.el 工作吗?
是用户名有问题还是我错过了配置?
I just started using emacs and I am trying to install the package.el and it has trouble with the proxy. When I try to run the commands from elpa install site the "url-retrieve-synchronously" command returns a buffer with a 407 error (I know this because I wrote the what it returns to a file and saw it, if use a www.google.com, which doesn't require a proxy, it returns the page).
I think the problem is with the username for the proxy. It has the form:
STUDENTS\123454
I think it is the "\" character thats giving trouble. I tried doing
STUDENTS\123457 | "STUDENTS\1233467" | "STUDENTS\\1234567"
and it does not work.
My ~./authinfo file looks like this has this
machine proxys.vasity.ac.za:80 port http login STUDENTS\12234 password 012TTjal
I am running emacs23 from the Ubuntu Natty repos. I have no other configurations that I am aware of for emacs.
I have my bash http_proxy set and wget works. So my questions are :
is there a way to tell the url.el package that emacs comes with to use wget instead of what its using now?
can I specify my username so that url.el works?
is the username the issue or have I missed a configuration?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
package.el
现在是 vanilla Emacs 的一部分。考虑提交 Emacs 错误报告:Mx report-emacs-bug
。另外,现在有一些package.el
的变体,而且它的发展似乎也相当快。如果您使用 Tom Tromey 的文件版本,请考虑直接与他联系以解决问题。package.el
is now part of vanilla Emacs. Consider filing an Emacs bug report:M-x report-emacs-bug
. Also, there are now a few variants ofpackage.el
out there, and it seems to evolve fairly quickly as well. If you use Tom Tromey's version of the file, consider contacting him directly about the problem.