Re: FC3, up2date, yum, apt, authenticating proxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all.

--- William Hooper <whooperhsd3@xxxxxxxxxxxxx> wrote:
> Works for me.  Perhaps you can give us an example of what you are
> trying
> and what errors you get.

Sure.  Here's an example trying apt, yum, and up2date:

# export http_proxy=http://fqdn.com:nnnn   [proper proxy, username, ]
# export proxy_username=username           [ and password set       ]
# export proxy_passwd=password
# apt-get update
0% [Working]
0% [Waiting for headers]
0% [Waiting for headers]
0% [Waiting for headers]
0% [Waiting for headers]
0% [Waiting for headers]
0% [Waiting for headers]
0% [Waiting for headers]
0% [Waiting for headers]
Ign http://ayo.freshrpms.net fedora/linux/2/i386 release
50% [Working]
Err http://ayo.freshrpms.net fedora/linux/2/i386/core pkglist
  407 Proxy Authentication Required
7% [Working]
Ign http://ayo.freshrpms.net fedora/linux/2/i386/core release
14% [Working]
Err http://ayo.freshrpms.net fedora/linux/2/i386/updates pkglist
  407 Proxy Authentication Required
14% [Working]
Ign http://ayo.freshrpms.net fedora/linux/2/i386/updates release
21% [Working]
Err http://ayo.freshrpms.net fedora/linux/2/i386/freshrpms pkglist
  407 Proxy Authentication Required
21% [Working]
Ign http://ayo.freshrpms.net fedora/linux/2/i386/freshrpms release
28% [Working]
Failed to fetch
http://ayo.freshrpms.net/fedora/linux/2/i386/base/pkglist.core
407 Proxy Authentication Required
Failed to fetch
http://ayo.freshrpms.net/fedora/linux/2/i386/base/pkglist.update
s  407 Proxy Authentication Required
Failed to fetch
http://ayo.freshrpms.net/fedora/linux/2/i386/base/pkglist.freshr
pms  407 Proxy Authentication Required
Reading Package Lists... 0%
Reading Package Lists... 100%
Reading Package Lists... Done
Building Dependency Tree... 0%
Building Dependency Tree... 0%
Building Dependency Tree... 50%
Building Dependency Tree... 50%
Building Dependency Tree... Done
E: Some index files failed to download, they have been ignored, or old
ones used
 instead.
# yum update
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
retrygrab() failed for:
 
http://download.fedora.redhat.com/pub/fedora/linux/core/2/i386/os/headers/head
er.info
  Executing failover method
failover: out of servers to try
Error getting file
http://download.fedora.redhat.com/pub/fedora/linux/core/2/i38
6/os/headers/header.info
[Errno 4] IOError: HTTP Error 407: Proxy Authentication Required
# up2date update
http://fedora.redhat.com/download/up2date-mirrors/fedora-core-2
http://fedora.redhat.com/download/up2date-mirrors/updates-released-fc2
Traceback (most recent call last):
  File "/usr/sbin/up2date", line 1271, in ?
    sys.exit(main() or 0)
  File "/usr/sbin/up2date", line 799, in main
    fullUpdate, dryRun=options.dry_run))
  File "/usr/sbin/up2date", line 1147, in batchRun
    batch.run()
  File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 62, in run
    self.__findPackagesToUpdate()
  File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 97, in
__findPackag
esToUpdate
    plist.addGlobs(self.listOfGlobs)
  File "/usr/share/rhn/up2date_client/packageList.py", line 157, in
addGlobs
    availList = rhnPackageInfo.getAvailablePackageList()
  File "/usr/share/rhn/up2date_client/rhnPackageInfo.py", line 219, in
getAvaila
blePackageList
    package_list = availablePackageList(
  File "/usr/share/rhn/up2date_client/rhnPackageInfo.py", line 153, in
available
PackageList
    progressCallback = progressCallback)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 112, in
doCall
    ret = apply(method, args, kwargs)
  File "/usr/share/rhn/up2date_client/repoDirector.py", line 20, in
listPackages
    return self.handlers[channel['type']].listPackages(channel,
msgCallback, pro
gressCallback)
  File "/usr/share/rhn/up2date_client/rpmSource.py", line 226, in
listPackages
    msgCallback, progressCallback)
  File "/usr/share/rhn/up2date_client/repoBackends/yumRepo.py", line
205, in lis
tPackages
    agent = "Up2date %s/Yum" % up2dateUtils.version())
  File "/usr/share/rhn/up2date_client/repoBackends/urlUtils.py", line
324, in fe
tchUrl
    endRange=end)
  File "/usr/share/rhn/up2date_client/repoBackends/urlUtils.py", line
117, in op
en_resource
    return opener.open(request)
  File "/usr/lib/python2.3/urllib2.py", line 326, in open
    '_open', req)
  File "/usr/lib/python2.3/urllib2.py", line 306, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.3/urllib2.py", line 901, in http_open
    return self.do_open(httplib.HTTP, req)
  File "/usr/lib/python2.3/urllib2.py", line 886, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error (110, 'Connection timed out')>

------------------------------------------
Note the 407s, and the following from the bugzilla thread:

  Additional Comment #31 From Steve Bonds on 2004-03-25 20:08 


  After a nice tour of the python code I'm pretty convinced that the
Yum
  backend in urlUtils.py simply does not support Basic HTTP
  authentication.  The open_resource call (where fetchUrlAndWriteFD
ends
  up) does not have any facility for a Proxy-Authentication: header. 
  (In fact, a grep through the whole up2date and yum files shows that
  this string doesn't appear anywhere.)


Thanks for the help!


=====
--------------
Lets Go Canes!

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux