Ubuntu Tweak crashes when update because of non-apt-cache

Bug #509009 reported by Bryan
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu Tweak
Fix Released
High
Ding Zhou

Bug Description

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/ubuntutweak/mainwindow.py", line 390, in setup_notebook
    page = module()
  File "/usr/lib/pymodules/python2.6/ubuntutweak/modules/appcenter.py", line 476, in __init__
    self.appview.update_model()
  File "/usr/lib/pymodules/python2.6/ubuntutweak/modules/appcenter.py", line 319, in update_model
    package = PackageInfo(pkgname)
  File "/usr/lib/pymodules/python2.6/ubuntutweak/common/package.py", line 237, in __init__
    self.pkg = PACKAGE_WORKER.get_cache()[name]
TypeError: 'NoneType' object is unsubscriptable

Tags: apt-cache
Revision history for this message
Ding Zhou (tualatrix) wrote :

Please update apt cache in the terminal, then run Ubuntu Tweak again.

sudo apt-get update

Ding Zhou (tualatrix)
tags: added: apt-cache
Revision history for this message
Bryan (bryan-lagos) wrote : Re: [Bug 509009] Re: Ubuntu Tweak Crasesh when update

Thanks It Worked

2010/1/24 TualatriX <email address hidden>

> ** Tags added: apt-cache
>
> --
> Ubuntu Tweak Crasesh when update
> https://bugs.launchpad.net/bugs/509009
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Ubuntu Tweak: New
>
> Bug description:
> Traceback (most recent call last):
> File "/usr/lib/pymodules/python2.6/ubuntutweak/mainwindow.py", line 390,
> in setup_notebook
> page = module()
> File "/usr/lib/pymodules/python2.6/ubuntutweak/modules/appcenter.py", line
> 476, in __init__
> self.appview.update_model()
> File "/usr/lib/pymodules/python2.6/ubuntutweak/modules/appcenter.py", line
> 319, in update_model
> package = PackageInfo(pkgname)
> File "/usr/lib/pymodules/python2.6/ubuntutweak/common/package.py", line
> 237, in __init__
> self.pkg = PACKAGE_WORKER.get_cache()[name]
> TypeError: 'NoneType' object is unsubscriptable
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu-tweak/+bug/509009/+subscribe
>

Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
milestone: none → 0.5.1
summary: - Ubuntu Tweak Crasesh when update
+ Ubuntu Tweak crashes when update because of non-apt-cache
Changed in ubuntu-tweak:
assignee: nobody → TualatriX (tualatrix)
importance: Undecided → High
status: New → Confirmed
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Confirmed → Fix Committed
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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