Skip to content

Error messages lack details from external utilities #1

@RiderALT

Description

@RiderALT

When alien fails to unpack a package, the error message doesn't include
output from dpkg-deb/rpm2cpio/cpio. User sees only:

Unpacking of 'file.deb' failed

Instead of helpful message like:

Unpacking of 'file.deb' failed: dpkg-deb: error: no space left on device

This happens because do() in Alien/Package.pm redirects stdout to /dev/null,
and commands use "2>&1", so stderr is also lost.

Affected scenarios:

  • Disk full
  • Corrupted packages
  • Unsupported compression

$ alien -r test-corrupted.deb
Warning: alien is not running as root!
Warning: Ownerships of files in the generated packages will probably be wrong.
Control file couldn't be read! at /usr/share/perl5/Alien/Package/Deb.pm line 234.

Metadata

Metadata

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions