Public bug reported:
While using Debian::DpkgDeb module, sometimes "E: required field Package
not found in (Debian::FieldError)" exception is thrown.
The package involved here is
"libegl1-mesa_10.3.0-0ubuntu2intel1_i386.deb" which is from Intel
driver.
Here is the error log
/usr/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)
/home/learner/Programming/older-debs-cleaner/test.rb
/var/lib/gems/1.9.1/gems/ruby-debian-0.3.8/lib/debian.rb:201:in `block in
parseFields': E: required field Package not found in (Debian::FieldError)
from /var/lib/gems/1.9.1/gems/ruby-debian-0.3.8/lib/debian.rb:199:in
`each'
from /var/lib/gems/1.9.1/gems/ruby-debian-0.3.8/lib/debian.rb:199:in
`parseFields'
from /var/lib/gems/1.9.1/gems/ruby-debian-0.3.8/lib/debian.rb:442:in
`initialize'
from /var/lib/gems/1.9.1/gems/ruby-debian-0.3.8/lib/debian.rb:153:in
`new'
from /var/lib/gems/1.9.1/gems/ruby-debian-0.3.8/lib/debian.rb:153:in
`load'
from /home/learner/Programming/older-debs-cleaner/test.rb:59:in `block
in read_package_info2'
from /home/learner/Programming/older-debs-cleaner/test.rb:56:in
`collect'
from /home/learner/Programming/older-debs-cleaner/test.rb:56:in
`read_package_info2'
from /home/learner/Programming/older-debs-cleaner/test.rb:84:in `<top
(required)>'
from -e:1:in `load'
from -e:1:in `<main>'
After inspecting several hours, I found the cause. It it the method
`load` in DpkgDeb module. in Line 143 of debian.rb source file. The
comparison made won't match with that package's string, which is
"control.tar.gz/". I have patched the file and it worked.
** Affects: ruby-debian (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1462764
Title:
Error "E: required field Package not found in (Debian::FieldError) "
on some rare packages
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ruby-debian/+bug/1462764/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs