[Bug 852003] Re: USC fails to launch in non-admin user account if there's a private PPA

David Ayers ayers at fsfe.org
Wed Jul 11 04:41:04 UTC 2012


Well if I call:
sudo -u landscape /usr/bin/landscape-package-reporter
I don't get the error, but every now and then when it is invoked automatically I do see the crash.
(the last crash report is from:
Date: Mon Jul  9 10:38:26 2012
but I've had it a few times before.)

I get:
PythonArgs: ['/usr/bin/landscape-package-reporter']
Traceback:
 Traceback (most recent call last):
   File "/usr/bin/landscape-package-reporter", line 10, in <module>
     main(sys.argv[1:])
   File "/usr/lib/python2.7/dist-packages/landscape/package/reporter.py", line 729, in main
     return run_task_handler(PackageReporter, args)
   File "/usr/lib/python2.7/dist-packages/landscape/package/taskhandler.py", line 267, in run_task_handler
     package_facade = AptFacade()
   File "/usr/lib/python2.7/dist-packages/landscape/package/facade.py", line 123, in __init__
     self._cache = apt.cache.Cache(rootdir=root)
   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 102, in __init__
     self.open(progress)
   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 149, in open
     self._list.read_main_list()
 SystemError: E:Opening /etc/apt/sources.list.d/private-ppa.launchpad.net_commercial-ppa-uploaders_fluendo-plugins_ubuntu.list - ifstream::ifstream (13: Permission denied)
UserGroups: admin libvirtd

yet:
-rw-r----- 1 root admin 161 Jun 13 12:18 /etc/apt/sources.list.d/private-ppa.launchpad.net_commercial-ppa-uploaders_fluendo-plugins_ubuntu.list

So it's not easily reproducible but it happens...
see: Bug #961611

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

Title:
  USC fails to launch in non-admin user account if there's a private PPA

Status in “apt” package in Ubuntu:
  Confirmed
Status in “python-apt” package in Ubuntu:
  Confirmed
Status in “software-center” package in Ubuntu:
  Triaged

Bug description:
  Ubuntu Software Center 4.1.23.2, Ubuntu 11.10 beta 1
  Ubuntu Software Center 5.0.1.4, Ubuntu 11.10

  1. Subscribe to a private PPA. (For example, purchase some software.)
  2. Close USC and relaunch it.
  3. Switch to a guest account (or any non-admin account), and launch USC.

  What happens:
  2. USC opens.
  3. USC fails to open, with this traceback:
  ------------
  Traceback (most recent call last):
    File "/usr/bin/software-center", line 151, in <module>
      app = SoftwareCenterAppGtk3(datadir, xapian_base_path, options, args)
    File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 206, in __init__
      self.cache.open()
    File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/aptcache.py", line 209, in open
      self._cache = apt.Cache(GtkMainIterationProgress())
    File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 93, in __init__
      self.open(progress)
    File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 140, in open
      self._list.read_main_list()
  SystemError: E:Opening /etc/apt/sources.list.d/private-ppa.launchpad.net_whatever_ubuntu.list - ifstream::ifstream (13: Permission denied)
  ------------

  What should happen:
  3. USC should launch.

  Bug 746625 (currently marked Invalid) is the equivalent bug in apt.

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




More information about the foundations-bugs mailing list