2019-09-15 22:01:55 |
Jarno Suni |
description |
by default `sudo add-apt-repository ppa:username` creates a file /etc/apt/sources.list.d/username-ppa-karmic.list with the default umask-based permissions which in my case on karmic left with a file readable only be root
this causes all non-superuser run apps that legitimately probe the contents of /etc/apt/sources.list to fail
e.g.,
$ apport-cli -f -p python-software-properties
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
Traceback (most recent call last):
File "/usr/bin/apport-cli", line 395, in <module>
if not app.run_argv():
File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 343, in run_argv
return self.run_report_bug()
File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 305, in run_report_bug
self.collect_info()
File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 455, in collect_info
icthread.exc_raise()
File "/usr/lib/python2.6/dist-packages/apport/REThread.py", line 37, in run
self._retval = self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 41, in thread_collect_info
report.add_package_info(package)
File "/usr/lib/python2.6/dist-packages/apport/report.py", line 178, in add_package_info
version = packaging.get_version(package)
File "/usr/lib/python2.6/dist-packages/apport/packaging_impl.py", line 65, in get_version
pkg = self._apt_pkg(package)
File "/usr/lib/python2.6/dist-packages/apport/packaging_impl.py", line 58, in _apt_pkg
return self._cache()[package]
File "/usr/lib/python2.6/dist-packages/apport/packaging_impl.py", line 49, in _cache
self._apt_cache = apt.Cache()
File "/usr/lib/python2.6/dist-packages/apt/cache.py", line 66, in __init__
self.open(progress)
File "/usr/lib/python2.6/dist-packages/apt/cache.py", line 103, in open
self._cache = apt_pkg.GetCache(progress)
SystemError: E:Opening /etc/apt/sources.list.d/kwwii-ppa-karmic.list - ifstream::ifstream (13 Permission denied), E:The list of sources could not be read.
add-apt-repository should be updated to ensure the resulting apt source files have been treated to a `chmod a+r username-ppa-karmic.list`
ProblemType: Bug
Architecture: i386
Date: Wed Jul 15 13:30:55 2009
DistroRelease: Ubuntu 9.10
Package: python-software-properties 0.75
PackageArchitecture: all
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_GB.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-3.19-generic
SourcePackage: software-properties
Uname: Linux 2.6.31-3-generic i686 |
by default `sudo add-apt-repository ppa:username` creates a file /etc/apt/sources.list.d/username-ppa-karmic.list with the default umask-based permissions which in my case on karmic left with a file readable only by root
this causes all non-superuser run apps that legitimately probe the contents of /etc/apt/sources.list to fail
e.g.,
$ apport-cli -f -p python-software-properties
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
Traceback (most recent call last):
File "/usr/bin/apport-cli", line 395, in <module>
if not app.run_argv():
File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 343, in run_argv
return self.run_report_bug()
File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 305, in run_report_bug
self.collect_info()
File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 455, in collect_info
icthread.exc_raise()
File "/usr/lib/python2.6/dist-packages/apport/REThread.py", line 37, in run
self._retval = self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 41, in thread_collect_info
report.add_package_info(package)
File "/usr/lib/python2.6/dist-packages/apport/report.py", line 178, in add_package_info
version = packaging.get_version(package)
File "/usr/lib/python2.6/dist-packages/apport/packaging_impl.py", line 65, in get_version
pkg = self._apt_pkg(package)
File "/usr/lib/python2.6/dist-packages/apport/packaging_impl.py", line 58, in _apt_pkg
return self._cache()[package]
File "/usr/lib/python2.6/dist-packages/apport/packaging_impl.py", line 49, in _cache
self._apt_cache = apt.Cache()
File "/usr/lib/python2.6/dist-packages/apt/cache.py", line 66, in __init__
self.open(progress)
File "/usr/lib/python2.6/dist-packages/apt/cache.py", line 103, in open
self._cache = apt_pkg.GetCache(progress)
SystemError: E:Opening /etc/apt/sources.list.d/kwwii-ppa-karmic.list - ifstream::ifstream (13 Permission denied), E:The list of sources could not be read.
add-apt-repository should be updated to ensure the resulting apt source files have been treated to a `chmod a+r username-ppa-karmic.list`
ProblemType: Bug
Architecture: i386
Date: Wed Jul 15 13:30:55 2009
DistroRelease: Ubuntu 9.10
Package: python-software-properties 0.75
PackageArchitecture: all
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_GB.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-3.19-generic
SourcePackage: software-properties
Uname: Linux 2.6.31-3-generic i686 |
|