** Description changed:

  Background:
  In Emacs, I had customized backup-directory-alist to (("." . ".~"))
  Then, when I edited /etc/apt/apt.conf.d/10periodic, it created a backup file 
named /etc/apt/apt.conf.d/.~/10periodic~
  
  The problem: today when I changed proxy settings in the network applet and 
tried to apply them system wide, it failed silently.  Eventually I had the idea 
of starting unity-control-center in a terminal to see its error messages.  I 
got multiple error messages.  The message for http was:
  (unity-control-center:5448): network-cc-panel-WARNING **: Error while calling 
set_proxy for http protocol: 
GDBus.Error:org.freedesktop.DBus.Python.IsADirectoryError: Traceback (most 
recent call last):
    File "/usr/lib/python3/dist-packages/dbus/service.py", line 707, in 
_message_cb
      retval = candidate_method(self, *args, **keywords)
    File "/usr/lib/python3/dist-packages/UbuntuSystemService/backend.py", line 
232, in set_proxy
      res = self._write_apt_proxy(proxy_type, new_proxy)
    File "/usr/lib/python3/dist-packages/UbuntuSystemService/backend.py", line 
149, in _write_apt_proxy
      open(f,"w").write("".join(new_content))
  IsADirectoryError: [Errno 21] Is a directory: '/etc/apt/apt.conf.d/.~'
  
  I saved the messages to a file and attached it.
  
  I worked around the problem by moving /etc/apt/apt.conf.d/.~/ elsewhere.
+ Later I may decide to reconfigure Emacs.
+ 
  ---
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  CurrentDesktop: Unity
  DistroRelease: Ubuntu 16.04
  InstallationDate: Installed on 2016-07-12 (20 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.1)
  Package: unity-control-center 15.04.0+16.04.20160705-0ubuntu1
  PackageArchitecture: amd64
  ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13
  Tags: xenial gnome3-ppa third-party-packages
  Uname: Linux 4.4.0-31-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  _MarkForUpload: True

** Description changed:

  Background:
  In Emacs, I had customized backup-directory-alist to (("." . ".~"))
  Then, when I edited /etc/apt/apt.conf.d/10periodic, it created a backup file 
named /etc/apt/apt.conf.d/.~/10periodic~
  
  The problem: today when I changed proxy settings in the network applet and 
tried to apply them system wide, it failed silently.  Eventually I had the idea 
of starting unity-control-center in a terminal to see its error messages.  I 
got multiple error messages.  The message for http was:
  (unity-control-center:5448): network-cc-panel-WARNING **: Error while calling 
set_proxy for http protocol: 
GDBus.Error:org.freedesktop.DBus.Python.IsADirectoryError: Traceback (most 
recent call last):
    File "/usr/lib/python3/dist-packages/dbus/service.py", line 707, in 
_message_cb
      retval = candidate_method(self, *args, **keywords)
    File "/usr/lib/python3/dist-packages/UbuntuSystemService/backend.py", line 
232, in set_proxy
      res = self._write_apt_proxy(proxy_type, new_proxy)
    File "/usr/lib/python3/dist-packages/UbuntuSystemService/backend.py", line 
149, in _write_apt_proxy
      open(f,"w").write("".join(new_content))
  IsADirectoryError: [Errno 21] Is a directory: '/etc/apt/apt.conf.d/.~'
  
  I saved the messages to a file and attached it.
  
- I worked around the problem by moving /etc/apt/apt.conf.d/.~/ elsewhere.
- Later I may decide to reconfigure Emacs.
+ I temporarily worked around the problem by moving
+ /etc/apt/apt.conf.d/.~/ elsewhere.  Later I may decide to reconfigure
+ Emacs.
  
  ---
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  CurrentDesktop: Unity
  DistroRelease: Ubuntu 16.04
  InstallationDate: Installed on 2016-07-12 (20 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.1)
  Package: unity-control-center 15.04.0+16.04.20160705-0ubuntu1
  PackageArchitecture: amd64
  ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13
  Tags: xenial gnome3-ppa third-party-packages
  Uname: Linux 4.4.0-31-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  _MarkForUpload: True

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1608543

Title:
  Network applet fails to apply proxy settings system wide, giving
  IsADirectoryError message

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-control-center/+bug/1608543/+subscriptions

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

Reply via email to