netopeer2 fails to install

Bug #1994152 reported by Nigel Hathaway
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netopeer2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Setting up netopeer2 (2.0.35-1ubuntu1) ...
/usr/share/netopeer2/merge_hostkey.sh: line 29: /dev/null: restricted: cannot redirect output
dpkg: error processing package netopeer2 (--configure):
 installed netopeer2 package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Errors were encountered while processing:
 netopeer2
E: Sub-process /usr/bin/dpkg returned an error code (1)

Line 29 of that script is this:

PRIVPEM=`$OPENSSL genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -outform PEM 2>/dev/null`

Line 34 has a similar thing.

The script aborts because of 'set -e' on line 3.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: netopeer2 (not installed)
ProcVersionSignature: Ubuntu 5.15.0-48.54-generic 5.15.53
Uname: Linux 5.15.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Tue Oct 25 15:50:23 2022
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: netopeer2
UpgradeStatus: Upgraded to jammy on 2022-09-26 (28 days ago)

Revision history for this message
Nigel Hathaway (nhathaway) wrote :
Revision history for this message
Nigel Hathaway (nhathaway) wrote :

Workaround until fixed:

apt install -y netopeer2 sysrepo-plugind libyang2-tools || true
/usr/share/netopeer2/merge_hostkey.sh
/usr/share/netopeer2/merge_config.sh
apt install -f

Revision history for this message
Nigel Hathaway (nhathaway) wrote :

Another problem: if you try and uninstall netopeer2, you get this:

Removing netopeer2 (2.0.35-1ubuntu1) ...
bash: /usr/share/netopeer2/remove.sh: No such file or directory
dpkg: error processing package netopeer2 (--remove):
 installed netopeer2 package post-removal script subprocess returned error exit status 127
dpkg: too many errors, stopping
Errors were encountered while processing:
 netopeer2
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is because it is trying to execute a script that has already been removed.

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.