0.14.2 crashed with OSError in main(): [Errno 39] Directory not empty: '/usr/share/checkbox/scripts'

Bug #1047883 reported by Peter Golden
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
checkbox (Ubuntu)
Fix Released
Medium
Marc Tardif

Bug Description

Just upgraded to 12.10

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: checkbox 0.14.4
ProcVersionSignature: Ubuntu 3.5.0-14.15-generic 3.5.3
Uname: Linux 3.5.0-14-generic i686
ApportVersion: 2.5.1-0ubuntu7
Architecture: i386
CrashCounter: 1
Date: Sat Sep 8 15:50:16 2012
ExecutablePath: /usr/share/checkbox/patches/0.14.2
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110921.2)
InterpreterPath: /usr/bin/python3.2mu
ProcCmdline: /usr/bin/python3 /usr/share/checkbox/patches/0.14.2 checkbox
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
PythonArgs: ['/usr/share/checkbox/patches/0.14.2', 'checkbox']
SourcePackage: checkbox
Title: 0.14.2 crashed with OSError in main(): [Errno 39] Directory not empty: '/usr/share/checkbox/scripts'
UpgradeStatus: Upgraded to quantal on 2012-09-08 (0 days ago)
UserGroups:

Related branches

Revision history for this message
Peter Golden (peter-golden) wrote :
tags: removed: need-duplicate-check
Changed in checkbox (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Daniel Manrique (roadmr) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Did this happen while you were trying to upgrade? The error you show would happen when upgrading Checkbox to version 0.14.2 or newer.

Could you open a terminal and type:

sudo apt-get install checkbox

if it throws an error, could you paste the error output here?

Also, can you paste the output of running this command on a terminal:

ls -la /usr/share/checkbox/scripts/

This will help us to find and resolve the problem.

Changed in checkbox (Ubuntu):
status: New → Incomplete
visibility: private → public
Revision history for this message
Peter Golden (peter-golden) wrote : Re: [Bug 1047883] Re: 0.14.2 crashed with OSError in main(): [Errno 39] Directory not empty: '/usr/share/checkbox/scripts'
Download full text (4.8 KiB)

Hi Daniel,

It failed, error messages in RED below.

Kind Regards

Peter

>________________________________
> From: Daniel Manrique <email address hidden>
>To: <email address hidden>
>Sent: Monday, 10 September 2012, 15:44
>Subject: [Bug 1047883] Re: 0.14.2 crashed with OSError in main(): [Errno 39] Directory not empty: '/usr/share/checkbox/scripts'
>
>Thank you for taking the time to report this bug and helping to make
>Ubuntu better. Did this happen while you were trying to upgrade? The
>error you show would happen when upgrading Checkbox to version 0.14.2 or
>newer.
>
>Could you open a terminal and type:
>
>sudo apt-get install checkbox
>
>if it throws an error, could you paste the error output here?
>
>
>peter@LIFEBOOK:~$ sudo apt-get install checkbox
>[sudo] password for peter:
>Reading package lists... Done
>Building dependency tree
>Reading state information... Done
>checkbox is already the newest version.
>0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>4 not fully installed or removed.
>After this operation, 0 B of additional disk space will be used.
>Do you want to continue [Y/n]? Y
>Setting up checkbox (0.14.4) ...
>Traceback (most recent call last):
>  File "/usr/share/checkbox/patches/0.14.2", line 17, in <module>
>    main(sys.argv[1:])
>  File "/usr/share/checkbox/patches/0.14.2", line 12, in main
>    os.rmdir(share_dir)
>OSError: [Errno 39] Directory not empty: '/usr/share/checkbox/scripts'
>dpkg: error processing checkbox (--configure):
> subprocess installed post-installation script returned error exit status 1
>dpkg: dependency problems prevent configuration of checkbox-gtk:
> checkbox-gtk depends on checkbox (>= 0.14.4); however:
>  Package checkbox is not configured yet.
>
>
>dpkg: error processing checkbox-gtk (--configure):
> dependency problems - leaving unconfigured
>dpkg: dependency problems prevent configuration of checkbox-qt:
> checkbox-qt depends on checkbox (>= 0.14.4); however:
>  Package checkbox is not configured yet.
>
>
>dpkg: error processing checkbox-qt (--configure):
> dependency problems - leaving unconfigured
>dpkg: dependency problems prevent configuration of ubuntu-desktop:
> ubuntu-desktop depends on checkbox-qt; however:
>  Package checkbox-qt is not configured yet.
>
>
>dpkg: error processing ubuntu-desktop (--configure):
> dependency problems - leaving unconfigured
>No apport report written because the error message indicates it's a follow-up error from a previous failure.
>                            No apport report written because the error message indicates it's a follow-up error from a previous failure.
>                                                        No apport report written because MaxReports has already been reached
>                                            Errors were encountered while processing:
> checkbox
> checkbox-gtk
> checkbox-qt
> ubuntu-desktop
>E: Sub-process /usr/bin/dpkg returned an error code (1)
>
>
>Also, can you paste the output of running this command on a terminal:
>
>ls -la /usr/share/checkbox/scripts/
>
>
>peter@LIFEBOOK:~$ ls -la /usr/share/checkbox/scripts/
>total 20
>drwxr-xr-x  2 root root 12288 Sep  8 11:20 .
...

Read more...

Revision history for this message
Daniel Manrique (roadmr) wrote :

Hello,

I see a strange /usr/share/checkbox/scripts/reconnect file. None of the current checkbox jobs or scripts create it, so it *may* have been created by an older version of checkbox.

As it is, the upgrade process will not delete any user-created files (maybe the user put it there? we don't want to delete important files).

However, if you don't think that file contains anything important to you, you can safely delete it:

sudo rm /usr/share/checkbox/scripts/reconnect

then retry the checkbox installation:

sudo apt-get install checkbox

Let me know if it works (I'm pretty sure it will). This will help us decide if we want to handle this case in some way. Thanks!

Daniel Manrique (roadmr)
Changed in checkbox (Ubuntu):
status: Incomplete → Fix Committed
assignee: nobody → Marc Tardif (cr3)
Revision history for this message
Peter Golden (peter-golden) wrote :

Hi Daniel,

Looks like that cleared it and allowed the product to install

peter@LIFEBOOK:~$ sudo rm /usr/share/checkbox/scripts/reconnect
[sudo] password for peter:
peter@LIFEBOOK:~$ sudo apt-get install checkbox
Reading package lists... Done
Building dependency tree
Reading state information... Done
checkbox is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up checkbox (0.14.5) ...
Setting up checkbox-gtk (0.14.5) ...
Setting up checkbox-qt (0.14.5) ...
Setting up ubuntu-desktop (1.280) ...
peter@LIFEBOOK:~$

Kind Regards

Peter

>________________________________
> From: Daniel Manrique <email address hidden>
>To: <email address hidden>
>Sent: Monday, 10 September 2012, 21:23
>Subject: [Bug 1047883] Re: 0.14.2 crashed with OSError in main(): [Errno 39] Directory not empty: '/usr/share/checkbox/scripts'
>
>Hello,
>
>I see a strange /usr/share/checkbox/scripts/reconnect file. None of the
>current checkbox jobs or scripts create it, so it *may* have been
>created by an older version of checkbox.
>
>As it is, the upgrade process will not delete any user-created files
>(maybe the user put it there? we don't want to delete important files).
>
>However, if you don't think that file contains anything important to
>you, you can safely delete it:
>
>sudo rm /usr/share/checkbox/scripts/reconnect
>
>then retry the checkbox installation:
>
>sudo apt-get install checkbox
>
>Let me know if it works (I'm pretty sure it will). This will help us
>decide if we want to handle this case in some way. Thanks!
>
>--
>You received this bug notification because you are subscribed to the bug
>report.
>https://bugs.launchpad.net/bugs/1047883
>
>Title:
>  0.14.2 crashed with OSError in main(): [Errno 39] Directory not empty:
>  '/usr/share/checkbox/scripts'
>
>Status in “checkbox” package in Ubuntu:
>  Incomplete
>
>Bug description:
>  Just upgraded to 12.10
>
>  ProblemType: Crash
>  DistroRelease: Ubuntu 12.10
>  Package: checkbox 0.14.4
>  ProcVersionSignature: Ubuntu 3.5.0-14.15-generic 3.5.3
>  Uname: Linux 3.5.0-14-generic i686
>  ApportVersion: 2.5.1-0ubuntu7
>  Architecture: i386
>  CrashCounter: 1
>  Date: Sat Sep  8 15:50:16 2012
>  ExecutablePath: /usr/share/checkbox/patches/0.14.2
>  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110921.2)
>  InterpreterPath: /usr/bin/python3.2mu
>  ProcCmdline: /usr/bin/python3 /usr/share/checkbox/patches/0.14.2 checkbox
>  ProcEnviron:
>  TERM=linux
>  PATH=(custom, no user)
>  LANG=en_GB.UTF-8
>  PythonArgs: ['/usr/share/checkbox/patches/0.14.2', 'checkbox']
>  SourcePackage: checkbox
>  Title: 0.14.2 crashed with OSError in main(): [Errno 39] Directory not empty: '/usr/share/checkbox/scripts'
>  UpgradeStatus: Upgraded to quantal on 2012-09-08 (0 days ago)
>  UserGroups:
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/ubuntu/+source/checkbox/+bug/1047883/+subscriptions
>
>
>

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package checkbox - 0.14.7

---------------
checkbox (0.14.7) quantal; urgency=low

  * New upstream release (LP: #1057001)

  * Launchpad automated translation updates

  [Daniel Manrique]
  * jobs/audio.txt.in: replaced gconfaudiosink by autoaudiosink (LP: #978895)
  * scripts/audio_settings: Added exception handlers to catch problems with
    unwritable or absent settings files. jobs/audio.txt.in: Fixed unwritable
    setting files locations (LP: #1041644) (LP: #1041340)
  * Ensured that strings passed to qtiface.showError via dbus are strings,
    and not NoneType as could happen under certain circumstances.
    (LP: #1032337)
  * scripts/graphics_modes_info: updated shebang to python3 (LP: #1047515)
  * scripts/graphics_driver, scripts/color_depth_info: Added ignoring
    possible invalid characters in Xorg logfiles (LP: #1048096)

  [Matt Fischer]
  * scripts/network-device-info: fixed a problem with output causing a
    traceback and a problem where modules with improper modules field causes
    problems. jobs/networking.txt.in: added requires for pciutils for the
    above bugfix (LP: #1042395)

  [Sylvain Pineau]
  * jobs/suspend.txt.in: Fixed suspend/suspend_advanced dependencies to avoid
    calling fwts with the live CD (LP: #1045687)
  * qt/frontend/qtfront.ui: Fixed the test purpose widget size to allow two
    lines of description (LP: #1032255)
  * qt/frontend/qtfront.ui: Fixed the progressLabel widget size to support job
    names > 50 chars (LP: #1046274)

  [Brendan Donegan]
  * Make audio_settings before/after suspend tests more robust by not requiring
    every little audio setting to be the same before and after suspend, just
    the major ones such as the current source/sink and the mute/volume settings
    on them (LP: #1043144)
  * scripts/frequency_governors_test - Ensure that check for difference in
    expected and actual speedup only fails if the actual speedup is less than
    the expected speedup (LP: #999547)

  [Marc Tardif]
  * patch/0.14.2: Fixed patch to rmtree instead of rmdir scripts directory.
    (LP: #1047883)

  [Jeff Lane]
  * scripts/graphics_driver: fixed a bug causing the hybrid check to throw an
    exception on hybrid systems (LP: #1048058)
 -- Daniel Manrique <email address hidden> Tue, 25 Sep 2012 16:07:46 -0400

Changed in checkbox (Ubuntu):
status: Fix Committed → 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.