Lubuntu Software Center will not run on LiveCD. Root owns ~/.config so can't write ~/.config/lsc/LSC.ini

Bug #1414366 reported by Istimsak
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
lubuntu-software-center (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Lubuntu Software Center will not run on the daily image of Lubuntu Vivid from 2015/01/25.

Clicking the Lubuntu Software Center icon in the LXDE menu does nothing.
Running "lubuntu-software-center" in LXTerminal fails with the following error:

** (lubuntu-software-center:3139): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
/usr/lib/python2.7/dist-packages/aptdaemon/gtk3widgets.py:424: Warning: The property GtkSettings:gtk-button-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.set_label(Gtk.STOCK_CANCEL)
DEBUG 2015-01-25 00:37:30,174 __init__ 44 Opening config file
DEBUG 2015-01-25 00:37:30,175 __init__ 60 Creating new conf file in /home/lubuntu/.config/lsc/LSC.ini
Traceback (most recent call last):
  File "/usr/bin/lubuntu-software-center", line 25, in <module>
    import LSC.main
  File "/usr/lib/python2.7/dist-packages/LSC/main.py", line 29, in <module>
    import threadingops
  File "/usr/lib/python2.7/dist-packages/LSC/threadingops.py", line 37, in <module>
    control.__init__()
  File "/usr/lib/python2.7/dist-packages/LSC/control.py", line 165, in __init__
    controller = Controller()
  File "/usr/lib/python2.7/dist-packages/LSC/control.py", line 67, in __init__
    self.clean_conf_file(self.file_path)
  File "/usr/lib/python2.7/dist-packages/LSC/control.py", line 130, in clean_conf_file
    self.conffile = open(file_path, "w")
IOError: [Errno 2] No such file or directory: '/home/lubuntu/.config/lsc/LSC.ini'

To reproduce, click "Lubuntu Software Center" in LXDE menu or run "lubuntu-software-center" in LXTerminal.

A workaround was attempted, creating ~/.config/lsc, when it was noticed that the LiveCD user does not have permission to edit ~/.config without sudo.

Original Report:

Distributor ID: Ubuntu
Description: Ubuntu Vivid Vervet (development branch)
Release: 15.04
Codename: vivid
lubuntu@lubuntu:~$

lubuntu-software-center:
  Installed: 0.0.8-0ubuntu1
  Candidate: 0.0.8-0ubuntu1
  Version table:
 *** 0.0.8-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ vivid/universe i386 Packages
        100 /var/lib/dpkg/status

A window the lists category of applications that can be installed on Lubuntu is to show. Nothing happened when the icon was clicked.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: lubuntu-software-center 0.0.8-0ubuntu1
ProcVersionSignature: Ubuntu 3.18.0-9.10-generic 3.18.2
Uname: Linux 3.18.0-9-generic i686
ApportVersion: 2.15.1-0ubuntu2
Architecture: i386
CasperVersion: 1.349
CurrentDesktop: LXDE
Date: Sat Jan 24 20:46:25 2015
LiveMediaBuild: Lubuntu 15.04 "Vivid Vervet" - Alpha i386 (20150123)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: lubuntu-software-center
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Istimsak (saqman2060) wrote :
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1414366

tags: added: iso-testing
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lubuntu-software-center (Ubuntu):
status: New → Confirmed
Revision history for this message
Dave Kokandy (drkokandy) wrote :

I can also confirm this was working during Alpha 2 testing.

Further, trying to run lubuntu-software-center from LXTerminal produces the following error message:

** (lubuntu-software-center:3139): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
/usr/lib/python2.7/dist-packages/aptdaemon/gtk3widgets.py:424: Warning: The property GtkSettings:gtk-button-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.set_label(Gtk.STOCK_CANCEL)
DEBUG 2015-01-25 00:37:30,174 __init__ 44 Opening config file
DEBUG 2015-01-25 00:37:30,175 __init__ 60 Creating new conf file in /home/lubuntu/.config/lsc/LSC.ini
Traceback (most recent call last):
  File "/usr/bin/lubuntu-software-center", line 25, in <module>
    import LSC.main
  File "/usr/lib/python2.7/dist-packages/LSC/main.py", line 29, in <module>
    import threadingops
  File "/usr/lib/python2.7/dist-packages/LSC/threadingops.py", line 37, in <module>
    control.__init__()
  File "/usr/lib/python2.7/dist-packages/LSC/control.py", line 165, in __init__
    controller = Controller()
  File "/usr/lib/python2.7/dist-packages/LSC/control.py", line 67, in __init__
    self.clean_conf_file(self.file_path)
  File "/usr/lib/python2.7/dist-packages/LSC/control.py", line 130, in clean_conf_file
    self.conffile = open(file_path, "w")
IOError: [Errno 2] No such file or directory: '/home/lubuntu/.config/lsc/LSC.ini'

It seems this is also caused by a missing config file.

Additionally, trying to create the directory ~/.config/lsc failed due to lack of permissions.

Again, I have attached the output of ls -lR /.config.

summary: - The Lubuntu software center does not load in the LiveCD version when
- selected.
+ Lubuntu Software Center will not run on LiveCD. Missing
+ ~/.config/lsc/LSC.ini
Dave Kokandy (drkokandy)
description: updated
Dave Kokandy (drkokandy)
summary: - Lubuntu Software Center will not run on LiveCD. Missing
- ~/.config/lsc/LSC.ini
+ Lubuntu Software Center will not run on LiveCD. Root owns ~/.config so
+ can't write ~/.config/lsc/LSC.ini
Revision history for this message
Dave Kokandy (drkokandy) wrote :

Root owning ~/.config is definitely the cause of the problem.

At some point in the startup process, a file is written to /home/lubuntu/.config/ubuntu-system-settings/wizard-has-run

Apparently it is written by root, causing root to own the file.

Revision history for this message
Istimsak (saqman2060) wrote : RE: [Bug 1414366] Re: Lubuntu Software Center will not run on LiveCD.Root owns ~/.config so can't write ~/.config/lsc/LSC.ini
Download full text (4.3 KiB)

That means whatever program is responsible for creating the ~/.config folder should create it for the liveCD user.

-----Original Message-----
From: "Dave Kokandy" <email address hidden>
Sent: ‎1/‎25/‎2015 12:50 AM
To: "<email address hidden>" <email address hidden>
Subject: [Bug 1414366] Re: Lubuntu Software Center will not run on LiveCD.Root owns ~/.config so can't write ~/.config/lsc/LSC.ini

Root owning ~/.config is definitely the cause of the problem.

At some point in the startup process, a file is written to
/home/lubuntu/.config/ubuntu-system-settings/wizard-has-run

Apparently it is written by root, causing root to own the file.

** Attachment added: "output of ls -alR ~/.config"
   https://bugs.launchpad.net/ubuntu/+source/lubuntu-software-center/+bug/1414366/+attachment/4305174/+files/ls-config.txt

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1414366

Title:
  Lubuntu Software Center will not run on LiveCD. Root owns ~/.config so
  can't write ~/.config/lsc/LSC.ini

Status in lubuntu-software-center package in Ubuntu:
  Confirmed

Bug description:
  Lubuntu Software Center will not run on the daily image of Lubuntu
  Vivid from 2015/01/25.

  Clicking the Lubuntu Software Center icon in the LXDE menu does nothing.
  Running "lubuntu-software-center" in LXTerminal fails with the following error:

  ** (lubuntu-software-center:3139): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
  /usr/lib/python2.7/dist-packages/aptdaemon/gtk3widgets.py:424: Warning: The property GtkSettings:gtk-button-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
    self.set_label(Gtk.STOCK_CANCEL)
  DEBUG 2015-01-25 00:37:30,174 __init__ 44 Opening config file
  DEBUG 2015-01-25 00:37:30,175 __init__ 60 Creating new conf file in /home/lubuntu/.config/lsc/LSC.ini
  Traceback (most recent call last):
    File "/usr/bin/lubuntu-software-center", line 25, in <module>
      import LSC.main
    File "/usr/lib/python2.7/dist-packages/LSC/main.py", line 29, in <module>
      import threadingops
    File "/usr/lib/python2.7/dist-packages/LSC/threadingops.py", line 37, in <module>
      control.__init__()
    File "/usr/lib/python2.7/dist-packages/LSC/control.py", line 165, in __init__
      controller = Controller()
    File "/usr/lib/python2.7/dist-packages/LSC/control.py", line 67, in __init__
      self.clean_conf_file(self.file_path)
    File "/usr/lib/python2.7/dist-packages/LSC/control.py", line 130, in clean_conf_file
      self.conffile = open(file_path, "w")
  IOError: [Errno 2] No such file or directory: '/home/lubuntu/.config/lsc/LSC.ini'

  To reproduce, click "Lubuntu Software Center" in LXDE menu or run
  "lubuntu-software-center" in LXTerminal.

  A workaround was attempted, creating ~/.config/lsc, when it was
  noticed that the LiveCD user does not have permission to edit
  ~/.config without sudo.

  Original Report:

  Distributor ID: Ubuntu
  Description: Ubuntu Vivid Vervet (development branch)
  Release: 15.04
  Codename: vivi...

Read more...

Changed in lubuntu-software-center (Ubuntu):
importance: Undecided → High
Revision history for this message
Dave Kokandy (drkokandy) wrote :

This appears to have been resolved as of the 15 February 2015 daily image. Marking as incomplete. Please update if anyone encounters this again.

Changed in lubuntu-software-center (Ubuntu):
status: Confirmed → Incomplete
Istimsak (saqman2060)
Changed in lubuntu-software-center (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.