[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#802553: apt: Fails to apt install .deb with trailing control blank lines



Package: apt
Version: 1.1~exp13
Severity: normal

Hi!

It seems that apt has problems installing local .deb packages, when
their control file contains a trailing blank line, with the following
message:

,--
# apt install pkg-fail.deb
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /tmp/apt-inst/pkg-fail.deb
E: The package lists or status file could not be parsed or opened.
`---

Compare it with the passing one:

,---
# apt install pkg-pass.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'pkg-pass' instead of 'pkg-pass.deb'
The following NEW packages will be installed:
  pkg-pass
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/630 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1  [630 B]
Selecting previously unselected package pkg-pass.
(Reading database ... 240714 files and directories currently installed.)
Preparing to unpack /tmp/apt-inst/pkg-pass.deb ...
Unpacking pkg-pass (0.0-1) ...
Setting up pkg-pass (0.0-1) ...
`---

Attached the control files that can be used with «dpkg-deb -b» on them.

Thanks,
Guillem

Attachment: pkg-test.tar.gz
Description: application/gzip


Reply to: