aptoncd crashed with IndexError in main()

Bug #263572 reported by tdflanders
This bug report is a duplicate of:  Bug #272509: APTonCD crashes. Edit Remove
6
Affects Status Importance Assigned to Milestone
aptoncd (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: aptoncd

It just crashed while starting up, by clicking on the icon. I could repeat this process by calling sudo aptoncd:

thomas@thomas-laptop:~$ sudo aptoncd
Reading package lists... Done
Building dependency tree
Reading state information... Done
FATAL -> Failed to fork.
thomas@thomas-laptop:~$

The GUI start image looks fine: see first screenshot. It contains a couple of language mistakes though.

Try to replace '... you've created ...' in the first sentence with '... you have created ...'. The abbreviation is not incorrect, it is just not common in formal written English to use this abbreviation, it had rather be spelled out completely. Also it is not likely to be used in oral conversation or in informal emails in this way: you've got mail would work, you've created an image would work too maybe, but that you've created would not be that commonly used either in informal language, although not incorrect. Therefor I would replace it as mentioned above.

I also noted in the last sentence that you have used a different font size. Try to correct this to improve the appearance of the GUI. It too contains a spelling mistake, two mistakes actually. Try to replace 'it just copy it back' with 'it will just copy it back' and add a point to the end of your sentence. Also I am not to sure if you have placed a comma before 'it will just copy' or if it is a point. If it is a point, then 'it will just copy' should begin with a large cap or capital letter: 'It will just copy'.

Right, so the first pop up window works fine, when I click the Create button though, it will give me the second pop up window. In this window, you should try to replace the 'Reading information of packages ...' line on the loading bar below with 'Reading information from packages ...' or 'Reading package information from disk ...', as the current line actually means you are now reading the information the belongs to a third person, named packages, who is the genuine owner of the property called information. Since packages is a subject and not an object (or group of), I would replace it as described above.

Now when the orange bar showing the loading process is nearing 51-54%, the application crashes, and the following error code is given:

thomas@thomas-laptop:~$ sudo apt-get --reinstall install aptoncd
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B/213kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 200081 files and directories currently installed.)
Preparing to replace aptoncd 0.1.98-0ubuntu2 (using .../aptoncd_0.1.98-0ubuntu2_all.deb) ...
Unpacking replacement aptoncd ...
Processing triggers for man-db ...
Setting up aptoncd (0.1.98-0ubuntu2) ...

thomas@thomas-laptop:~$ sudo lsb-release -rd ; uname -a ; apt-cache policy aptoncd
sudo: lsb-release: command not found
Linux thomas-laptop 2.6.26-5-generic #1 SMP Fri Aug 15 13:54:58 UTC 2008 i686 GNU/Linux
aptoncd:
  Installed: 0.1.98-0ubuntu2
  Candidate: 0.1.98-0ubuntu2
  Version table:
 *** 0.1.98-0ubuntu2 0
        500 http://gb.archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status
     0.1.98-0ubuntu1.1 0
        500 cdrom://[APTonCD for ubuntu hardy - i386 (2008-08-17 02:58) DVD1] Packages
thomas@thomas-laptop:~$ sudo aptoncd
Reading package lists... Done
Building dependency tree
Reading state information... Done
FATAL -> Failed to fork.
thomas@thomas-laptop:~$

I also noticed a large discrepancy between man apotoncd and aptoncd --help:

'thomas@thomas-laptop:~$ man -a aptoncd' gives me:

 APTONCD(1) APTONCD(1)

NAME
       aptoncd - CD/DVD-based repository creator for debian packages

SYNOPSIS
      aptoncd [options]

DESCRIPTION
       APTonCD is a complete solution to manage/backup/restore your packages
       downloaded via apt-get, aptitude and synaptic. APTonCD also is the
       best choice to download an entire repository and/or specific section of
       selected mirror, by an pretty GUI.

       A manual with detailed instructions can be found in the help menu of
       APTonCD.

OPTIONS
       APTonCD accept the following command-line call methods:

       -c, --packages-list=FILE
              Starts aptoncd listing the packages in FILE

       -l, --cache-dir=PATH
              Uses PATH as apt cache dir (instead of /var/cache/apt/archives

       -r, --temp-dir=PATH
              Uses PATH as temporary directory for copying files and mounting
              images

       AUTHORS
              APTonCD is developed by Rafael Proenca <email address hidden>
              and Laudeci Oliveira <email address hidden>, with some contributors
              that can be found on the project page.

       All development is done at http://aptoncd.sourceforge.net

       This manual page was written by Rafael Proenca <email address hidden>.

COPYRIGHT
       Copyright (C) 2007 Rafael Proenca

       There is NO warranty. You may redistribute this software under the
       terms of the GNU General Public License. For more information about
       these matters, see the files named copyright.

                                Aug 15th, 2007 APTONCD(1)

while:

thomas@thomas-laptop:~$ aptoncd --help
Usage: aptoncd [OPTION] [FILE]
Run aptoncd with command-line parameters.

Options:
  -h, --help show this help message and exit
  -v, --version output version information and exit.
  -l, --packages-list uses the packages listed in FILE to create a
                        installation disc.
  -p PATH, --cache-dir=PATH
                        uses PATH as folder to scan for packages instead of
                        apt cache.
  -t PATH, --temp-dir=PATH
                        uses PATH as temporary folder.
  -n, --non-interactive
                        placeholder
thomas@thomas-laptop:~$

Where are the '-c' and '-r' options in 'aptoncd --help'? Where the are the '-h', '-v', '-p', '-t', '-n' options in 'man -a aptoncd'?

Also you should close the brackets () in the '-l' option of the 'man -a aptoncd' man page. An it is an installation disk instead of a installation disk in '-l' of aptoncd --help.

Thanks for the program anyway,

It did work fine under hardy.

Thomas

ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/aptoncd
InterpreterPath: /usr/bin/python2.5
Package: aptoncd 0.1.98-0ubuntu2
PackageArchitecture: all
ProcAttrCurrent: unconfined
ProcCmdline: /usr/bin/python2.5 -tt /usr/bin/aptoncd -l
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/aptoncd', '-l']
SourcePackage: aptoncd
Title: aptoncd crashed with IndexError in main()
Uname: Linux 2.6.26-5-generic i686
UserGroups:

Tags: apport-crash
Revision history for this message
tdflanders (thomasdelbeke) wrote :
Revision history for this message
tdflanders (thomasdelbeke) wrote :

BTW, no crash report is created for aptoncd, while apport crashes continuously. See '/var/crash'. I will also write a bug report for lsb-release failure and I will notify 'Rafael Proenca <email address hidden>'. Thanks again, Thomas.

Oh, now it is created: '/var/crash/_usr_bin_aptoncd.0.crash'. A little late or I am not awake yet./_usr_bin_aptoncd.0.crash

Revision history for this message
tdflanders (thomasdelbeke) wrote :

Sorry,

now there is a problem with bug tracker.

I also forgot to include screenshots. I will do that now.

The check box should read This attachment is a path and not a patch (See screenshot-bug-tracker).

Revision history for this message
tdflanders (thomasdelbeke) wrote :
Revision history for this message
tdflanders (thomasdelbeke) wrote :
Revision history for this message
tdflanders (thomasdelbeke) wrote :
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.