Network proxy setting does not set apt.conf from the second time

Bug #877088 reported by Nobuto Murata
54
This bug affects 10 people
Affects Status Importance Assigned to Milestone
ubuntu-system-service (Ubuntu)
In Progress
Low
Unassigned

Bug Description

How to reproduce:
  1. open network settings in gnome-control-center
  2. set proxy like the example below:
      * method - manual
      * HTTP Proxy - example.com:8080
      * HTTPS Proxy - example.com:8090
  3. press "Apply system wide"
      - confirm proxy settings are written in /etc/environment and /etc/apt/apt.conf
  4. turn off proxy by set back the Method to "None" and press "Apply system wide" again.
      - confirm proxy settings are gone from /etc/environment and /etc/apt/apt.conf
  5. set proxy again as well as step. 2, then press "Apply system wide" again.

Expected to happen:
  6. proxy settings are written in /etc/environment and /etc/apt/apt.conf

What happened instead:
  6. proxy settings are written in only /etc/environment, then /etc/apt/apt.conf remains as blank.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gnome-control-center 1:3.2.0-0ubuntu6
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
CasperVersion: 1.285
Date: Tue Oct 18 05:07:00 2011
LiveMediaBuild: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-control-center
UpgradeStatus: No upgrade log present (probably fresh install)
usr_lib_gnome-control-center:
 deja-dup 20.0-0ubuntu3
 gnome-bluetooth 3.2.0-0ubuntu1
 indicator-datetime 0.3.0-0ubuntu3

Related branches

Revision history for this message
Nobuto Murata (nobuto) wrote :
Revision history for this message
Phil. V (philip.v) wrote :
Revision history for this message
Phil. V (philip.v) wrote :

I can't seem to reproduce this, my apt.conf changes as expected both times. Disregard my previous comment by the way, I found that bug to be a duplicate of one that has already been triaged.

Revision history for this message
Nobuto Murata (nobuto) wrote :

Hi Phil V,
Thank you for checking this bug's reproducibility.
At least for me, I can reproduce this bug on 2 of 2 machines.

Let's wait and see whether others can confirm this bug or not.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-control-center (Ubuntu):
status: New → Confirmed
Changed in gnome-control-center (Ubuntu):
assignee: nobody → Rodrigo Moya (rodrigo-moya)
importance: Undecided → Low
Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

I can reproduce it on my machine, but this seems to be a bug in ubuntu-system-service, which is the responsible for writing the proxy settings in /etc/apt/apt.conf. g-c-c only calls it via DBus, so it's clearly a bug there?

affects: gnome-control-center (Ubuntu) → ubuntu-system-service (Ubuntu)
Changed in ubuntu-system-service (Ubuntu):
assignee: Rodrigo Moya (rodrigo-moya) → nobody
Revision history for this message
Ramin.Honary (ramin-honary) wrote :

I have the same problem. I had created my own (duplicate) bug for this problem at:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/879223

I am behind a corporate firewall using a McAfee web gateway, a content-filtering proxy server. Our DNS resolves IP addresses without any proxy settings, but HTTP, HTTPS, and FTP connections cannot be made to addresses beyond the firewall unless we connect through the proxy server. So when executing apt-get, it resolves my mirror's IP address OK, but times-out trying to download the "Packages.gz" file. The only way to make "apt-get" work correctly is to set the "/etc/apt/apt.conf" file, which should be done by gnome-control-center, but it doesn't.

All I can do is write my own script to set "/etc/apt/apt.conf" to use the proxy, and execute it every time I want to run "apt-get" at the office.

Michael Vogt (mvo)
Changed in ubuntu-system-service (Ubuntu Oneiric):
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Nobuto, or anyone else affected,

Accepted ubuntu-system-service into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in ubuntu-system-service (Ubuntu Oneiric):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Nobuto Murata (nobuto) wrote :

Indeed ubuntu-system-service/oneiric-proposed 0.1.26.1 set proxy for apt on the second time or later.
But it set proxy to apt.conf *and* the all files under apt.conf.d. This is not my desirable behavior.
Please refer attached diff between before and after pressing "Apply system wide".

tags: added: verification-failed
removed: verification-needed
Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

I think u-s-s already had this bug of writing the same to every file under /etc/apt, but anyway, looking for a fix...

Changed in ubuntu-system-service (Ubuntu):
assignee: nobody → Rodrigo Moya (rodrigo-moya)
status: Confirmed → In Progress
Revision history for this message
Reinis Ivanovs (dabas) wrote :

This bug is still present in the latest Oneiric pseudo-stable release.

Changed in ubuntu-system-service (Ubuntu Oneiric):
status: Fix Committed → Triaged
importance: Undecided → Low
no longer affects: ubuntu-system-service (Ubuntu Oneiric)
Changed in ubuntu-system-service (Ubuntu):
assignee: Rodrigo Moya (rodrigo-moya) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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