do-release-upgrade fails on large LTS (Hardy->Lucid) upgrades

Bug #573598 reported by GerhardGaußling
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Software Updater
Fix Released
Unknown
update-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: update-manager-core

Please work around or fix a bug in libdpkg-ruby/hardy http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=552125 which lets do-release-upgrade fails on Hardy->Lucid upgrades when the package regular expression list is too big (>3000 Packages separated with a '|').

I got something very similar to this (or the same):
/usr/lib/ruby/1.8/debian.rb:905:in `initialize': regular expression too big:
(a long list of packages, separated with "|", then)

(RegexpError)
        from /usr/lib/ruby/1.8/debian.rb:905:in `new'
        from /usr/lib/ruby/1.8/debian.rb:905:in `initialize'
        from /usr/sbin/apt-listbugs:995:in `new'
        from /usr/sbin/apt-listbugs:995:in `create'
        from /usr/sbin/apt-listbugs:1375
E: Sub-process /usr/sbin/apt-listbugs apt || exit 10 returned an error code
(10)
E: Failure running script /usr/sbin/apt-listbugs apt || exit 10
A package failed to install. Trying to recover:

I disabled temporarily apt-list-bugs:
sudo sed -i -e 's/DPkg\:/\/\/DPkg\:/g' /etc/apt/apt.conf.d/10apt-listbugs
and repeated do-release-upgrade -d -m desktop

~$ apt-cache policy update-manager-core
update-manager-core:
  Installed: 1:0.87.31
  Candidate: 1:0.134.7
  Version table:
     1:0.134.7 0
        500 http://de.archive.ubuntu.com lucid/main Packages
        500 http://archive.ubuntu.com lucid/main Packages
 *** 1:0.87.31 0
        100 /var/lib/dpkg/status

~$ apt-cache policy libdpkg-ruby1.8
libdpkg-ruby1.8:
  Installed: 0.3.2
  Candidate: 0.3.6
  Version table:
     0.3.6 0
        500 http://de.archive.ubuntu.com lucid/universe Packages
 *** 0.3.2 0
        100 /var/lib/dpkg/status

~$ apt-cache policy apt-listbugs
apt-listbugs:
  Installed: 0.0.84
  Candidate: 0.0.84
  Version table:
 *** 0.0.84 0
        100 /var/lib/dpkg/status

Revision history for this message
GerhardGaußling (ggrubbish-web) wrote :

As an alternative report this at least in the release-notes or an appropriate place.

affects: update-manager-core (Ubuntu) → update-manager (Ubuntu)
Changed in update-manager:
status: Unknown → Fix Released
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.