Failed to upgrade to 11.04: dpkg: error: parsing file '/var/lib/dpkg/status' near line 14082 package 'kde-plasmoid-cwp': junk after word in `priority' field

Bug #773022 reported by NickElliott
62
This bug affects 9 people
Affects Status Importance Assigned to Milestone
dpkg (Ubuntu)
Fix Released
High
Unassigned
Natty
Fix Released
High
Unassigned
update-manager (Ubuntu)
Invalid
Medium
Michael Vogt
Natty
Invalid
Medium
Unassigned

Bug Description

TEST CASE:
- regression test should be enough, if a copy of kde-plasmoid-cwp can be obtained and upgrade wiht
  that would be the perfect test

Binary package hint: update-manager

Followed the upgrade process after getting the upgrade notification in KPackageKit.

Upgrade packages were downloaded and the installation began. Upgrade aborted at some point. I have attached the files from /var/log/dist-upgrade (wasn't able to copy apt-term.log - system reported it as unreadable)

Revision history for this message
NickElliott (nicholas-elliott1) wrote :
summary: - Could not install the upgrades to 11.04
+ Failed to upgrade to 11.04: dpkg: error: parsing file
+ '/var/lib/dpkg/status' near line 14082 package 'kde-plasmoid-cwp': junk
+ after word in `priority' field
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

I'm affecting to dpkg because even if the bug is with the packaging of kde-plasmoid-cwp, installing this broken package breaks the status database and package management system.

affects: update-manager (Ubuntu) → dpkg (Ubuntu)
Changed in dpkg (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Raphaël Hertzog (hertzog) wrote :

Note that the new dpkg also refuses to install such a package. So it's consistent with itself. But there's room to do better indeed.

Revision history for this message
Ulrik Stervbo (ulrik-stervbo) wrote :

I have the same problem

Revision history for this message
Adrian Patzak (zoiss) wrote :

Hello everybody.
I was stuck at the same problem, but got to fix it now.
I just want to tell you what I did, maybe it also works for you.

After the failed upgrade process to 11.04 I was still able to get to the (slight damaged) 10.04 desktop, where I could uninstall the cwp plasmoid using "sudo dpkg -r kde-plasmoid-cwp".
Then I opened "/var/lib/dpkg/status" and "/var/lib/dpkg/available" and was looking for the keyword "kde-plasmoid-cwp". The word after priority is "low" which I changed to "optional".
After that the distribution upgrade using the command "sudo do-release-upgrade" was working as expected and after a reboot everything was just OK.

Just for those who have the same problem. You could also try to edit those two files, but I will take no responsibility :-).

Good luck,
kind regards

Revision history for this message
Michael Vogt (mvo) wrote :

I add a update-manager task with a simple workaround. u-m will just remove kde-plasmoid-cwp early to avoid the breakage.

Changed in update-manager (Ubuntu):
status: New → In Progress
Changed in update-manager (Ubuntu Natty):
status: New → In Progress
importance: Undecided → Medium
Changed in update-manager (Ubuntu):
importance: Undecided → Medium
Michael Vogt (mvo)
Changed in update-manager (Ubuntu):
status: In Progress → Fix Released
description: updated
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted update-manager into natty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in update-manager (Ubuntu Natty):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

SRU verification for Natty:

I have reproduced the problem with update-manager 1:0.150 in natty and however the version of update-manager 1:0.150.2 in -proposed doesn't fixes the issue.
I've installed http://download.opensuse.org/repositories/home:/georg298/xUbuntu_10.10/i386/kde-plasmoid-cwp_1.5.2_i386.deb and verified that it is in the removal list at the beginning of the upgrade.
But the new version of dpkg is installed before kde-plasmoid-cwp is removed and the upgrade fails as before.

Marking as verification-failed

tags: added: verification-failed
removed: verification-needed
Changed in dpkg (Ubuntu Natty):
status: New → Triaged
Changed in dpkg (Ubuntu):
importance: Medium → High
Changed in dpkg (Ubuntu Natty):
importance: Undecided → High
tags: added: regression-release
Revision history for this message
Raphaël Hertzog (hertzog) wrote :

The patch for dpkg is in commit d84b36a81088721b340e52664aa2c3379fea2a9a. I'm attaching it.

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-manager - 1:0.150.2

---------------
update-manager (1:0.150.2) natty-proposed; urgency=low

  * debian/control:
    - point to "natty" branch
  * DistUpgrade/DistUpgrade.cfg:
    - remove "kde-plasmoid-cwp" early as it will break upgrades
      later (LP: #773022)
  * DistUpgrade/DistUpgradeCache.py:
    - do not fail if not all meta-package can not be upgraded, packages
      like ubuntu-desktop and xubuntu-desktop have implicit conflicts
      LP: #775411

update-manager (1:0.150.1) natty-proposed; urgency=low

  [ Brian Murray ]
  * DistUpgrade/DistUpgradeApport.py:
    - do not report zero size attachments (LP: #772052)
  * DistUpgrade/DistUpgrade.cfg:
    - enable apport for distribution upgrades (LP: #772913)
  * DistUpgrade/DistUpgradeController.py:
    - use service to start apport

  [ Michael Vogt ]
  * DistUpgrade/DistUpgrade.cfg:
    - Remove 'dontzap' from kubuntu-desktops rules (LP: #769680).
      This fixes a upgrade issue when a old package is leftover
 -- Michael Vogt <email address hidden> Mon, 02 May 2011 09:52:35 +0200

Changed in update-manager (Ubuntu Natty):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Reopening as verification failed and the bug is still present.

Changed in update-manager (Ubuntu):
status: Fix Released → Triaged
Changed in update-manager (Ubuntu Natty):
status: Fix Released → Triaged
Changed in update-manager (Ubuntu):
assignee: nobody → Michael Vogt (mvo)
Revision history for this message
Raphaël Hertzog (hertzog) wrote :

You'd better invest the time in preparing the dpkg SRU rather than working around in update-manager.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dpkg - 1.16.0.3ubuntu1

---------------
dpkg (1.16.0.3ubuntu1) oneiric; urgency=low

  * Merge from Debian unstable; remaining changes:
    - Merge from git://git.debian.org/users/hertzog/dpkg.git
      pu/multiarch/snapshot/20110314 for multiarch support.
    - On upgrade from 1.16.0~ubuntu[1-3], if /var/lib/dpkg/info/$arch is a
      directory, migrate the contents to var/lib/dpkg/info; and handle the
      reverse on downgrade. This does not handle metadata for packages of
      foreign architectures.
  * Restores support for parsing priority fields with unknown values.
    LP: #773022.
 -- Steve Langasek <email address hidden> Fri, 17 Jun 2011 00:04:19 -0700

Changed in dpkg (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Chris Halse Rogers (raof) wrote :

Invalidating the update-manager tasks; this can, should, and is be fixed in dpkg.

Changed in update-manager (Ubuntu):
status: Triaged → Invalid
Changed in update-manager (Ubuntu Natty):
status: Triaged → Invalid
Revision history for this message
Chris Halse Rogers (raof) wrote :

Approve, please accept into natty-proposed.

Changed in dpkg (Ubuntu Natty):
status: Triaged → Fix Committed
tags: removed: verification-failed
tags: added: verification-needed
Revision history for this message
Chris Halse Rogers (raof) wrote :

Accepted dpkg into natty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dpkg - 1.16.0~ubuntu7.1

---------------
dpkg (1.16.0~ubuntu7.1) natty-proposed; urgency=low

  * src/packages.c: fix use of --force-depends so that it works again for
    foreign arch packages. Thanks to Raphaël Hertzog for the fix.
    LP: #767634.
  * regenerate lib/dpkg/trigdeferred.c from lib/dpkg/trigdeferred.l in
    the source, to ensure we don't end up with breakage from an out-of-date
    intermediate file as happened in oneiric.

  [ Guillem Jover ]
  * d84b36a81088721b340e52664aa2c3379fea2a9a: be less strict in the face of
    unknown Priority: fields in /var/lib/dpkg/status, so dpkg doesn't fail
    to run on systems whose contents were previously permitted.
    LP: #773022.
 -- Steve Langasek <email address hidden> Sat, 25 Jun 2011 13:49:46 -0500

Changed in dpkg (Ubuntu Natty):
status: Fix Committed → Fix Released
tags: added: testcase
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.