maemo.org Bugzilla – Bug 11915
Community SSU script doesn't work if you are behind a proxy
Last modified: 2011-02-26 14:54:52 UTC
You need to log in before you can comment on or make changes to this bug.
SOFTWARE VERSION: 20.2010.36-2.003 EXACT STEPS LEADING TO PROBLEM: 1. follow wiki steps for community ssu testing 2. launch "Community SSU" from progam menu. (/usr/sbin/install-community-ssu) EXPECTED OUTCOME: apt-get finds the repositorys ACTUAL OUTCOME: apt-get can not find the repositorys REPRODUCIBILITY: always OTHER COMMENTS: Ok, this is a common problem of apt-get in maemo 5. I don't know how to access the proxy settings from within the script, but for it works if I start the install-community-ssu after exporting the proxy settings in the shell: export https_proxy=https://proxyname:port export http_proxy=http://proxyname:port
(In reply to comment #0) > I don't know how to access the proxy settings from within the script Quick, dirty and untested: proxy_vars=$(gconftool-2 -R /system/http_proxy | sed -e 's/^/proxy_/' -e 's/ //g') eval $proxy_vars if [ "x$proxy_use_http_proxy" = "xtrue" ]; then export http_proxy=http://${proxy_host}:${proxy_port} fi One may also need to check whether /system/proxy/mode is "manual" (not sure if /system/http_proxy/* are set if its value is "none", and if it's "auto" the whole thing is a lost cause anyway). If https_proxy is also needed the keys to check are /system/proxy/secure_host & /system/proxy/secure_port.