aptdaemon ignores system wide proxy settings

Bug #800093 reported by Olaf Zaplinski
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Aptdaemon
Fix Released
High
Unassigned

Bug Description

language-selector-gnome ignores system wide proxy settings => it is unusable when your only HTTP connection is via proxy server; this is true in many companies => 11.04 is great at home and unusable at work

affects: apport → language-selector
Revision history for this message
Martin Pitt (pitti) wrote :

language-selector does not do any downloading by itself, but just uses aptdaemon.

affects: language-selector → aptdaemon
summary: - language-selector-gnome ignores system wide proxy settings
+ aptdaemon ignores system wide proxy settings
Revision history for this message
Sebastian Heinlein (glatzor) wrote :

please append the file /etc/environment and the output of the command "apt-config dump"

Changed in aptdaemon:
status: New → Incomplete
Revision history for this message
Sven Kreienbrock (vinterkind) wrote :

Hi all,

Any progress here ?

Same problem here, I'm behind a companies proxy.
some things I've done

/etc/environment has "export http_proxy=<proxy>" set.
I've configured apt with Aquire::http::Proxy AND http::Proxy
Additionally I've configured the network settings system wide proxy (manual and automatic)

nothing worked.
What puzzles me, is that I cannot see a thing in the details window.

Then it bails out
Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/l/language-pack-kde-en-base/language-pack-kde-en-base_11.10+20111006_all.deb Could not connect to de.archive.ubuntu.com:80 (141.30.13.10), connection timed out [IP: 141.30.13.10 80]
Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/l/language-pack-kde-en/language-pack-kde-en_11.10+20111006_all.deb Unable to connect to de.archive.ubuntu.com:http: [IP: 141.30.13.10 80

cheers,
Sven

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

Actually aptdaemon doesn't unset the proxy if configured in apt.

Could you please append the output of apt-config dump?
Does "sudo apt-get update" in a Terminal work?

Revision history for this message
Sven Kreienbrock (vinterkind) wrote :
Download full text (4.8 KiB)

Like I've said. I've got APT configured and the Shell. I've got no problems on the shell,
except the export of http_proxy to root when using sudo.
So what I can do is "sudo -E apt-get update".
Else it won't work if I don't set the http_proxy variable explicitly for that session.

$ apt-config dump
APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
APT::NeverAutoRemove:: "^gnumach$";
APT::NeverAutoRemove:: "^gnumach-image.*";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Never-MarkAuto-Sections:: "oldlibs";
APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
APT::Never-MarkAuto-Sections:: "universe/oldlibs";
APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
APT::Periodic "";
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Update "";
APT::Update::Post-Invoke-Success "";
APT::Update::Post-Invoke-Success:: "touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";
APT::Update::Post-Invoke-Success:: "[ ! -f /var/run/dbus/system_bus_socket ] || /usr/bin/dbus-send --system --dest=org.debian.apt --type=signal /org/debian/apt org.debian.apt.CacheChanged || true";
APT::Archives "";
APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";
APT::Changelogs "";
APT::Changelogs::Server "http://changelogs.ubuntu.com/changelogs";
APT::Architectures "";
APT::Architectures:: "amd64";
APT::Architectures:: "i386";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "extended_states";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::solvers "";
Dir::Bin::solvers:: "/usr/lib/apt/solvers";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Media "";
Dir::Media::MountPath "/media/apt";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log...

Read more...

Changed in aptdaemon:
status: Incomplete → Confirmed
importance: Undecided → High
Revision history for this message
Sebastian Heinlein (glatzor) wrote :

I configured the system proxy using network-manager which resulted in a corresponding entry in /ect/environment:

http_proxy="http://test:8080"

The download in aptdcon failed since it could not connect to the proxy. So all seems to work fine.

Changed in aptdaemon:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.