package nmap-common 7.91+dfsg1+really7.80+dfsg1-2build1 failed to install/upgrade: installed nmap-common package post-installation script subprocess returned error exit status 126

Bug #1982437 reported by Andrew Walton
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
nmap (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

upgrading ubuntu distro in wsl

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: nmap-common 7.91+dfsg1+really7.80+dfsg1-2build1
ProcVersionSignature: Microsoft 4.4.0-22000.653-Microsoft 4.4.35
Uname: Linux 4.4.0-22000-Microsoft x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Wed Jul 20 06:05:21 2022
Dmesg: [ 0.066890] Microsoft 4.4.0-22000.653-Microsoft 4.4.35
ErrorMessage: installed nmap-common package post-installation script subprocess returned error exit status 126
PackageArchitecture: all
Python3Details: /usr/bin/python3.10, Python 3.10.4, python3-minimal, 3.10.4-0ubuntu2
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.1
 apt 2.4.5
SourcePackage: nmap
Title: package nmap-common 7.91+dfsg1+really7.80+dfsg1-2build1 failed to install/upgrade: installed nmap-common package post-installation script subprocess returned error exit status 126
UpgradeStatus: Upgraded to jammy on 2022-07-20 (0 days ago)

Revision history for this message
Andrew Walton (dwalton64) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Andrew Walton (dwalton64) wrote :

I was upgrading my WSL distro and found that the gzip executable was broken. I solved this problem by downloading the source code and rebuilding gzip.

/usr/bin/gzip would not run: could not execute binary file: Exec format error.

Revision history for this message
Lena Voytek (lvoytek) wrote :

Hello,

Thank you for writing this bug report. I attempted to reproduce this issue on both WSL2 and lxc but didn't encounter the error. I upgraded from 20.04 to 22.04 on both using do-release-upgrade -d.

Do you know which distro version you upgraded from? Also did you attempt to install nmap after the upgrade?

Thanks

Changed in nmap (Ubuntu):
status: New → Incomplete
Revision history for this message
Andrew Walton (dwalton64) wrote :

I was updating from focal.

Once I fixed gzip, I was able to install nmap and nmap-common.

I preserved the broken version of gzip as gzip.old. Here is the output of the file command:

file gzip.old
gzip.old: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=09387e1f48c88dcc27c89d83dec42856690b93b0, for GNU/Linux 3.2.0, stripped

Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

This looks like local corruption or misconfiguration, rather than a bug in Ubuntu.

Without steps to reproduce the problem, there is little that can be done on this bug. I'll mark this bug as Incomplete for now, pending someone else confirming that it is a bug or unless someone can provide steps to reproduce.

Please do report any other bugs you may find.

Revision history for this message
Casey Diers (n-casey) wrote :

It appears that I have had the same issue affect me this morning. I'm not able to help technically, but I wanted to make sure my bug report got logged.

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Thanks for the feedback Casey. We still need the reproduction steps to act on this, so let's see if someone can provide them.

Revision history for this message
DW (hydrodan) wrote :

I also got this bug today after doing a long overdue WSL update from "20.10" groovy to "Ubuntu 22.04.1 LTS". Same "126" error code on nmap-common.

Any details I can provide to assist with the bug tracing? I'm not very savvy with Linux so would need some pointers on how to dig up whatever's needed.

Revision history for this message
DW (hydrodan) wrote :

It actually appears to be related to this issue with gzip on WSL1.
https://bugs.launchpad.net/ubuntu/+source/gzip/+bug/1966849

After updating from WSL1 to WSL2, the gzip error went away, and nmap & nmap-common installed just fine.

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Thanks for the information @hydrodan. It seems that while the gzip bug is not fixed a proper workaround is to move to WSL2. I hope this can help others facing this issue.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

If I understand correct what's been discussed so far, it seems to me that this is not an issue with nmap, but rather with gzip on WSL environments. I am tempted to close this bug as Invalid. Let's wait a few days to see if someone else has a different opinion.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for nmap (Ubuntu) because there has been no activity for 60 days.]

Changed in nmap (Ubuntu):
status: Incomplete → Expired
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.