[Desktop-packages] [Bug 1323586] Re: oneconf crashes if one apt list file is unreadable
** Package changed: oneconf (Ubuntu) => python-apt (Ubuntu) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to oneconf 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: New 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 -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1323586] Re: oneconf crashes if one apt list file is unreadable
The Debian maintainer marked that as wontfix for apt, that should be handled by the client "Unreadable sources.list files are an unsupported mode of operation and will not be supported in neither APT nor python-apt (which directly calls the functions from APT). Authentication data should not be stored in sources.list files, but in a netrc file. Using that, there's no need for unreadable sources.list files. If you cannot read a sources.list file, the state would be inconsistent." ** Changed in: python-apt (Ubuntu) Status: Invalid => Won't Fix ** Also affects: oneconf (Ubuntu) Importance: Undecided Status: New ** Changed in: oneconf (Ubuntu) Importance: Undecided => High ** Changed in: oneconf (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to oneconf in Ubuntu. https://bugs.launchpad.net/bugs/1323586 Title: oneconf crashes if one apt list file is unreadable Status in oneconf package in Ubuntu: Confirmed Status in python-apt package in Ubuntu: Won't Fix 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/oneconf/+bug/1323586/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1323586] Re: oneconf crashes if one apt list file is unreadable
It may not be a bug in python-apt, but it is a bug nevertheless. If unreadable files are not supported, the applications should ignore them or complain about them, not crash and raise an apport dialog every hour. Please note that it is very easy to generate files in `sources.list.d` that are not readable by normal users. Just use `sudo apt-add- repository` and a 077 umask. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to oneconf in Ubuntu. https://bugs.launchpad.net/bugs/1323586 Title: oneconf crashes if one apt list file is unreadable Status in oneconf package in Ubuntu: Confirmed Status in python-apt package in Ubuntu: Won't Fix 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/oneconf/+bug/1323586/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1323586] Re: oneconf crashes if one apt list file is unreadable
you mean 770 umask? 077 is world readable... -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to oneconf in Ubuntu. https://bugs.launchpad.net/bugs/1323586 Title: oneconf crashes if one apt list file is unreadable Status in oneconf package in Ubuntu: Confirmed Status in python-apt package in Ubuntu: Won't Fix 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/oneconf/+bug/1323586/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1323586] Re: oneconf crashes if one apt list file is unreadable
I mean `umask 077`. With umask 077 the default file permissions are 600. With umask 077 a file created by root via sudo will be unreadable for a normal user. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to oneconf in Ubuntu. https://bugs.launchpad.net/bugs/1323586 Title: oneconf crashes if one apt list file is unreadable Status in oneconf package in Ubuntu: Confirmed Status in python-apt package in Ubuntu: Won't Fix 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/oneconf/+bug/1323586/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp