← Back to team overview

touch-packages team mailing list archive

[Bug 1323586] Re: oneconf crashes if one apt list file is unreadable

 

That seems to still be an issue, sent to debian, https://bugs.debian.org
/cgi-bin/bugreport.cgi?bug=800500

** Bug watch added: Debian Bug tracker #800500
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=800500

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to python-apt in Ubuntu.
https://bugs.launchpad.net/bugs/1323586

Title:
  oneconf crashes if one apt list file is unreadable

Status in python-apt package in Ubuntu:
  Invalid

Bug description:
  oneconf-service will crash if one of the files in
  `/etc/apt/sources.list.d` is unreadable (for example because it has
  been created using sudo and umask 077).

  In my case this is the error message

      Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/oneconf/packagesethandler.py", line 63, in update
          newpkg_list = self.distro.compute_local_packagelist()
        File "/usr/lib/python3/dist-packages/oneconf/distributor/Ubuntu.py", line 42, in compute_local_packagelist
          with apt.Cache() as apt_cache:
        File "/usr/lib/python3/dist-packages/apt/cache.py", line 107, in __init__
          self.open(progress)
        File "/usr/lib/python3/dist-packages/apt/cache.py", line 155, in open
          self._list.read_main_list()
      SystemError: E:Opening /etc/apt/sources.list.d/tor.list - ifstream::ifstream (13: Permission denied)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1323586/+subscriptions