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)
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: php5.1000. crash
sudo apport-retrace -g _usr_bin_
[...] apport- retrace" , line 446, in <module> unpack_ only, options.no_dpkg, options. extra_packages) apport- retrace" , line 271, in install_ missing_ packages packaging. get_file_ package( l, True) python- support/ python2. 5/apport/ packaging_ impl.py" , line 205, in get_file_package contents( file, map_cachedir) python- support/ python2. 5/apport/ packaging_ impl.py" , line 357, in _search_contents urlretrieve( url, map) python2. 5/urllib. py", line 89, in urlretrieve retrieve( url, filename, reporthook, data) python2. 5/urllib. py", line 222, in retrieve python2. 5/urllib. py", line 190, in open python2. 5/urllib. py", line 325, in open_http python2. 5/httplib. py", line 856, in endheaders _send_output( ) python2. 5/httplib. py", line 728, in _send_output python2. 5/httplib. py", line 695, in send python2. 5/httplib. py", line 679, in connect ImportError: ImportError('No module named shutil',) in <bound method __AptDpkgPackag eInfo._ _del__ of <apport. packaging_ impl.__ AptDpkgPackageI nfo instance at 0x835520c>> ignored
WARNING: libc6-i686-dbgsym is not available
WARNING: libpng12-0-dbgsym is not available
Traceback (most recent call last):
File "/usr/bin/
options.
File "/usr/bin/
pkg = apport.
File "/var/lib/
return self._search_
File "/var/lib/
urllib.
File "/usr/lib/
return _urlopener.
File "/usr/lib/
fp = self.open(url, data)
File "/usr/lib/
return getattr(self, name)(url)
File "/usr/lib/
h.endheaders()
File "/usr/lib/
self.
File "/usr/lib/
self.send(msg)
File "/usr/lib/
self.connect()
File "/usr/lib/
raise socket.error, msg
IOError: [Errno socket error] (110, 'Connection timed out')
Exception exceptions.
---------------
When I explicitly set the proxy, for example with the following command, it does work: $http_proxy apport-retrace -g _usr_bin_ php5.1000. crash php5/20060613+ lfs/ssh2. so is needed, but cannot be mapped to a package 0.99-0- dbgsym is not available php/phing. php -logger phing.list'.
sudo http_proxy=
[....]
WARNING: libpng12-0-dbgsym is not available
WARNING: /usr/lib/
WARNING: libtidy-
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/
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)