smart crashes on startup

Bug #316268 reported by sirscott42
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Undecided
Unassigned
smart (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Traceback (most recent call last):

  File "/usr/bin/smart", line 194, in ?
    main(sys.argv[1:])

  File "/usr/bin/smart", line 167, in main
    exitcode = iface.run(opts.command, opts.argv)

  File "/usr/lib/python2.4/site-packages/smart/interfaces/gtk/interactive.py", line 373, in run
    self._ctrl.reloadChannels()

  File "/usr/lib/python2.4/site-packages/smart/control.py", line 378, in reloadChannels
    self._cache.load()

  File "/usr/lib/python2.4/site-packages/smart/backends/deb/loader.py", line 123, in load
    def load(self):

  File "/usr/lib/python2.4/site-packages/smart/backends/deb/loader.py", line 136, in load
    for section, offset in self.getSections(prog):

  File "/usr/lib/python2.4/site-packages/smart/backends/deb/loader.py", line 271, in getSections
    while tf.advanceSection():

IOError: [Errno 21] Is a directory: '/var/lib/dpkg/status'

Revision history for this message
Diogo Matsubara (matsubara) wrote :

Thank you for the report, but this is not a launchpad bug, re-assigning to Ubuntu.
We're interested in why you accidentally recorded this bug as occurring in launchpad instead of ubuntu. If you can explain what happened, please let us know in bug 88818.

Changed in launchpad:
status: New → Invalid
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Hello,

could you please provide the following pieces of information?

- dpkg -l smartpm-core
- smart --version
- cat /etc/lsb-release
- sudo ls -la /var/lib/dpkg
- sudo smart update

If you are running intrepid, then please substitute the above smart command paths with /usr/share/smart/smart instead of just "smart", because in Intrepid the command is not in PATH.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

drwxr-xr-x 8 root root 4096 Jan 25 2008 .
drwxr-xr-x 48 root root 4096 Jan 5 03:03 ..
drwxr-xr-x 2 root root 4096 Jan 25 2008 alternatives
drwxr-xr-x 2 root root 4096 Jan 25 2008 info
-rw-r----- 1 root root 0 Apr 26 2008 lock
drwxr-xr-x 5 root root 4096 Jan 25 2008 methods
drwxr-xr-x 2 root root 4096 Jan 25 2008 parts
drwxrwxr-x 2 root root 4096 Apr 26 2008 status
drwxr-xr-x 2 root root 4096 Jan 25 2008 updates

I don't know how your status entry got to be a directory instead of a file. Did you had a crash recently and had to run fsck on that filesystem?

 Here is how my listing looks like:
drwxr-xr-x 7 root root 4.0K 2009-01-12 14:01 .
drwxr-xr-x 60 root root 4.0K 2009-01-07 18:34 ..
drwxr-xr-x 2 root root 4.0K 2009-01-07 17:57 alternatives
-rw-r--r-- 1 root root 1.3M 2009-01-12 14:01 available
-rw-r--r-- 1 root root 1.3M 2009-01-12 14:01 available-old
-rw-r--r-- 1 root root 8 2008-12-26 21:58 cmethopt
-rw-r--r-- 1 root root 703 2009-01-07 09:55 diversions
-rw-r--r-- 1 root root 601 2009-01-07 09:55 diversions-old
drwxr-xr-x 2 root root 256K 2009-01-12 14:01 info
-rw-r----- 1 root root 0 2009-01-12 14:01 lock
drwxr-xr-x 2 root root 4.0K 2008-09-03 09:03 parts
-rw-r--r-- 1 root root 233 2009-01-05 17:39 statoverride
-rw-r--r-- 1 root root 193 2009-01-05 17:39 statoverride-old
-rw-r--r-- 1 root root 1.4M 2009-01-12 14:01 status
-rw-r--r-- 1 root root 1.4M 2009-01-12 14:01 status-old
drwxr-xr-x 2 root root 4.0K 2009-01-12 13:31 triggers
drwxr-xr-x 2 root root 4.0K 2009-01-12 14:01 updates

What are the contents of your /var/lib/dpkg/status directory?

Is apt-get working on your system? Try "sudo apt-get update", and perhaps install some dummy package just to exercise dpkg.

Changed in smart:
status: New → Incomplete
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Also, you didn't get me this info, or I didn't find it in your email:

- cat /etc/lsb-release
- dpkg -l smartpm-core

Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in smart (Ubuntu):
status: Incomplete → Invalid
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.