Can not update

Bug #720693 reported by sinosunnysun
This bug report is a duplicate of:  Bug #626599: problem with update-manager. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Tweak
New
Undecided
Unassigned

Bug Description

Distribution: Ubuntu 10.10 maverick
Application: Ubuntu Tweak 0.6.0
Desktop: gnome

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/ubuntutweak/mainwindow.py", line 502, in setup_notebook
    page = module()
  File "/usr/lib/python2.6/dist-packages/ubuntutweak/modules/updatemanager.py", line 44, in __init__
    self.update_list()
  File "/usr/lib/python2.6/dist-packages/ubuntutweak/modules/updatemanager.py", line 59, in update_list
    PACKAGE_WORKER.update_apt_cache(init=True)
  File "/usr/lib/python2.6/dist-packages/ubuntutweak/common/package.py", line 224, in update_apt_cache
    self.cache = apt.Cache()
  File "/usr/lib/python2.6/dist-packages/apt/cache.py", line 88, in __init__
    self.open(progress)
  File "/usr/lib/python2.6/dist-packages/apt/cache.py", line 126, in open
    self._cache = apt_pkg.Cache(progress)
SystemError: E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/ppa.launchpad.net_cairo-dock-team_weekly_ubuntu_dists_maverick_main_binary-i386_Packages, E:The package lists or status file could not be parsed or opened.

Revision history for this message
Ding Zhou (tualatrix) wrote :

Hello,

Try to do the following steps to make your system work:

1. Open your terminal
2. Delete the old list files

  sudo rm -r /var/lib/apt/lists/*

3. Update apt cache:

  sudo apt-get update

Now run Ubuntu Tweak or Software Center, tell me if it work after
these steps.

Good luck!

Revision history for this message
Ding Zhou (tualatrix) wrote :

Oh sorry, the command should be "sudo rm -f /var/lib/apt/lists/*"

If you run the old command, make sure to run this command to keep system correctly: sudo mkdir -p /var/lib/apt/lists/partial

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.