Since my test upgrade to hardy, I have a similiar probem with gksudo
*and* normal sudo.

Every application (apt-get, apport, hwdb, ...) startet with (gk)sudo
does not use the proxy and the connection times out. For apt-get I
configured the proxy directly in /etc/apt/apt.conf.d/, but this is not
possible for every program.

For example, I tried to "apport-retrace" a crash report, it begins to work 
until it finds a file, which is not part of a package:
sudo apport-retrace -g _usr_bin_php5.1000.crash 

[...]
WARNING: libc6-i686-dbgsym is not available
WARNING: libpng12-0-dbgsym is not available
Traceback (most recent call last):
  File "/usr/bin/apport-retrace", line 446, in <module>
    options.unpack_only, options.no_dpkg, options.extra_packages)
  File "/usr/bin/apport-retrace", line 271, in install_missing_packages
    pkg = apport.packaging.get_file_package(l, True)
  File "/var/lib/python-support/python2.5/apport/packaging_impl.py", line 205, 
in get_file_package
    return self._search_contents(file, map_cachedir)
  File "/var/lib/python-support/python2.5/apport/packaging_impl.py", line 357, 
in _search_contents
    urllib.urlretrieve(url, map)
  File "/usr/lib/python2.5/urllib.py", line 89, in urlretrieve
    return _urlopener.retrieve(url, filename, reporthook, data)
  File "/usr/lib/python2.5/urllib.py", line 222, in retrieve
    fp = self.open(url, data)
  File "/usr/lib/python2.5/urllib.py", line 190, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.5/urllib.py", line 325, in open_http
    h.endheaders()
  File "/usr/lib/python2.5/httplib.py", line 856, in endheaders
    self._send_output()
  File "/usr/lib/python2.5/httplib.py", line 728, in _send_output
    self.send(msg)
  File "/usr/lib/python2.5/httplib.py", line 695, in send
    self.connect()
  File "/usr/lib/python2.5/httplib.py", line 679, in connect
    raise socket.error, msg
IOError: [Errno socket error] (110, 'Connection timed out')
Exception exceptions.ImportError: ImportError('No module named shutil',) in 
<bound method __AptDpkgPackageInfo.__del__ of 
<apport.packaging_impl.__AptDpkgPackageInfo instance at 0x835520c>> ignored
---------------

When I explicitly set the proxy, for example with the following command, it 
does work:
sudo http_proxy=$http_proxy apport-retrace -g _usr_bin_php5.1000.crash 
[....]
WARNING: libpng12-0-dbgsym is not available
WARNING: /usr/lib/php5/20060613+lfs/ssh2.so is needed, but cannot be mapped to 
a package
WARNING: libtidy-0.99-0-dbgsym is not available
WARNING: libexpat1-dbgsym is not available
WARNING: libc6-i686-dbgsym is not available
WARNING: libtasn1-3-dbgsym is not available
[...]
Core was generated by `/usr/bin/php -d html_errors=off -qC 
/usr/share/php/phing.php -logger phing.list'.
Program terminated with signal 11, Segmentation fault.
#0  0x0829e00c in ?? ()

I hope this does help to resolve the problem.

 (the php problem has to do with a self compiled php extension, so I am
not reporting it as a bug, it is only an example)

-- 
No good proxy conf, for synaptic...
https://bugs.launchpad.net/bugs/56655
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to