volumeid: Syntax Error in post-installation script

Bug #146903 reported by gelbehexe
6
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: volumeid

While upgrading package volumeid I got the following message (It's an German installation):
Richte volumeid ein (113-0ubuntu13) ...
/var/lib/dpkg/info/volumeid.postinst: 56: Syntax error: ")" unexpected (expecting ";;")
dpkg: Fehler beim Bearbeiten von volumeid (--configure):
 Unterprozess post-installation script gab den Fehlerwert 2 zurück
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von udev:
 udev hängt ab von volumeid (= 113-0ubuntu13); aber:
  Paket volumeid ist noch nicht konfiguriert.

Inserting the missing ";;" by hand in line 56 and apt-get upgrade fixed it for me.

Revision history for this message
ceb (cebin) wrote :

I encountered the same issue running the update manager (It took a little digging to find). It resulted in the following message on subsequent runs of the update manager:

Could not calculate the upgrade

A unresolvable problem occurred while calculating the upgrade.

Please report this bug against the 'update-manager' package and include the following error message:
'E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'
--

Could someone please provide a detailed description of the workaround described above?

Thank you.

Revision history for this message
Albert Damen (albrt) wrote :

This was fixed earlier today. You should soon be able to download the correct package.

Revision history for this message
ceb (cebin) wrote :

I see the workaround, it is relatively trivial. For anyone else who encounters this bug, edit the file /var/lib/dpkg/info/volumeid.postinst and insert a newline at 56, adding only

;;

The file should now read:

     50 echo "$LINE"
     51 continue
     52 ;;
     53 /dev/mapper/*_crypt)# DM-Crypt devices
     54 echo "$LINE"
     55 continue
     56 ;; # ADD THIS LINE
     57 /dev/disk/*) # Already mounting by particulars
     58 echo "$LINE"
     59 continue
     60 ;;
     61 /dev/fd[0-9]*)

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.