[patch] apt-mark crashed with IndexError in <module>()

Bug #517917 reported by Kai Kasurinen
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Debian)
Fix Released
Unknown
apt (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: apt

$ apt-mark
Traceback (most recent call last):
  File "/usr/bin/apt-mark", line 80, in <module>
    if args[0] == "showauto":
IndexError: list index out of range

ProblemType: Crash
Architecture: amd64
Date: Sat Feb 6 06:07:30 2010
DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/bin/apt-mark
InterpreterPath: /usr/bin/python2.6
Package: apt 0.7.25ubuntu4
ProcCmdline: /usr/bin/python /usr/bin/apt-mark
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=fi_FI.UTF-8
 LANGUAGE=fi_FI.UTF-8
ProcVersionSignature: Ubuntu 2.6.32-12.17-generic
PythonArgs: ['/usr/bin/apt-mark']
SourcePackage: apt
Title: apt-mark crashed with IndexError in <module>()
Traceback:
 Traceback (most recent call last):
   File "/usr/bin/apt-mark", line 80, in <module>
     if args[0] == "showauto":
 IndexError: list index out of range
Uname: Linux 2.6.32-12-generic x86_64
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev staff video

Related branches

Revision history for this message
Kai Kasurinen (kai-kasurinen) wrote :
tags: removed: need-duplicate-check
visibility: private → public
Revision history for this message
Torsten Spindler (tspindler) wrote :

Confirmed on recent Lucid.

Changed in apt (Ubuntu):
status: New → Confirmed
Revision history for this message
Torsten Spindler (tspindler) wrote :

Attached is a patch that shows the usage if no argument is given.

summary: - apt-mark crashed with IndexError in <module>()
+ [patch] apt-mark crashed with IndexError in <module>()
tags: added: patch
Revision history for this message
Brian Murray (brian-murray) wrote :

Torsten - it would be great if you could add your patch to the Debian bug report also.

tags: added: patch-upstreaminput
removed: patch
Changed in apt (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Torsten Spindler (tspindler) wrote : Re: [Bug 517917] Re: [patch] apt-mark crashed with IndexError in <module>()

@Brian - done.

Michael Vogt (mvo)
Changed in apt (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt - 0.7.25.3ubuntu2

---------------
apt (0.7.25.3ubuntu2) lucid; urgency=low

  [ Michael Vogt ]
  * abicheck/
    - add new abitest tester using the ABI Compliance Checker from
      http://ispras.linuxfoundation.org/index.php/ABI_compliance_checker
  * debian/apt.conf.autoremove:
    - add "oldlibs" to the APT::Never-MarkAuto-Sections as its used
      for transitional packages
  * apt-pkg/deb/dpkgpm.cc:
    - fix backgrounding when dpkg runs (closes: #486222)
  * cmdline/apt-mark:
    - show error on incorrect aguments (LP: #517917), thanks to
      Torsten Spindler
  * cmdline/apt-get.cc:
    - if apt-get source foo=version or foo/distro can not be found,
      error out (LP: #502641)
  * apt-pkg/indexfile.cc:
    - deal correctly with three letter langcodes (LP: #391409)
  * debian/apt.cron.daily:
    - do not look into admin users gconf anymore for the http proxy
      the user now needs to use the "Apply system-wide" UI in the
      gnome-control-center to set it
  * debian/apt.postinst:
    - add set_apt_proxy_from_gconf() and run that once on upgrade if
      there is no proxy configured already system-wide (LP: #432631)
      From that point on gnome-control-center will have to warn if
      the user makes changes to the proxy settings and does not apply
      them system wide

  [ Robert Collins ]
  * Change the package index Info methods to allow apt-cache policy to be
    useful when using several different archives on the same host.
    (Closes: #329814, LP: #22354)
 -- Michael Vogt <email address hidden> Fri, 12 Mar 2010 23:10:52 +0100

Changed in apt (Ubuntu):
status: Fix Committed → Fix Released
Changed in apt (Debian):
status: Unknown → New
Changed in apt (Debian):
status: New → Fix Committed
Changed in apt (Debian):
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.