dnet-common - post inst script update-rc.d has error

Bug #1805702 reported by Avi
44
This bug affects 10 people
Affects Status Importance Assigned to Milestone
dnprogs (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Manfred Hampl (m-hampl) said It seems that the line
update-rc.d decnet start\ 39\ S\ .\ \ stop\ 11\ 1\ . >/dev/null
in the postinst script requires a change.

# Reproduced by
strykar@i-5:~$ sudo apt list dnet-common
Listing... Done
dnet-common/cosmic,cosmic,now 2.65build1 all [installed]

strykar@i-5:~$ sudo apt remove dnet-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  dnet-common
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 106 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 225939 files and directories currently installed.)
Removing dnet-common (2.65build1) ...
Processing triggers for man-db (2.8.4-2) ...

strykar@i-5:~$ sudo apt install dnet-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  dnet-common
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/35.0 kB of archives.
After this operation, 106 kB of additional disk space will be used.
Preconfiguring packages ...
dnet-common: Skipping configure of DECnet
Selecting previously unselected package dnet-common.
(Reading database ... 225926 files and directories currently installed.)
Preparing to unpack .../dnet-common_2.65build1_all.deb ...
Unpacking dnet-common (2.65build1) ...
Processing triggers for systemd (239-7ubuntu10.4) ...
Processing triggers for man-db (2.8.4-2) ...
Setting up dnet-common (2.65build1) ...
dnet-common: Skipping configure of DECnet
usage: update-rc.d [-f] <basename> remove
       update-rc.d [-f] <basename> defaults
       update-rc.d [-f] <basename> defaults-disabled
       update-rc.d <basename> disable|enable [S|2|3|4|5]
  -f: force

The disable|enable API is not stable and might change in the future.
dpkg: error processing package dnet-common (--configure):
 installed dnet-common package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 dnet-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

$ uname -a
Linux i-5 4.18.0-11-generic #12-Ubuntu SMP Tue Oct 23 19:22:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

I've tried using aptitude and it doesn't give me any more info on the issue.

Tags: patch
Revision history for this message
Manfred Hampl (m-hampl) wrote :
Download full text (4.5 KiB)

VirtualBox:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic

VirtualBox:~$ sudo apt install dnet-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  dnet-common
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.0 kB of archives.
After this operation, 106 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu cosmic/universe amd64 dnet-common all 2.65build1 [35.0 kB]
Fetched 35.0 kB in 0s (95.1 kB/s)
Preconfiguring packages ...
dnet-common: Skipping configure of DECnet
Selecting previously unselected package dnet-common.
(Reading database ... 173328 files and directories currently installed.)
Preparing to unpack .../dnet-common_2.65build1_all.deb ...
Unpacking dnet-common (2.65build1) ...
Processing triggers for systemd (239-7ubuntu10.4) ...
Processing triggers for man-db (2.8.4-2) ...
Setting up dnet-common (2.65build1) ...
dnet-common: Skipping configure of DECnet
usage: update-rc.d [-f] <basename> remove
       update-rc.d [-f] <basename> defaults
       update-rc.d [-f] <basename> defaults-disabled
       update-rc.d <basename> disable|enable [S|2|3|4|5]
  -f: force

The disable|enable API is not stable and might change in the future.
dpkg: error processing package dnet-common (--configure):
 installed dnet-common package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (239-7ubuntu10.4) ...
Errors were encountered while processing:
 dnet-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

VirtualBox:~$ dpkg -l dnet-common
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
iF dnet-common 2.65build1 all Base package for Linux DECnet

The same on disco:

VirtualBox:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu Disco Dingo (development branch)
Release: 19.04
Codename: disco

VirtualBox:~$ sudo apt install dnet-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  dnet-common
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/35.0 kB of archives.
After this operation, 106 kB of additional disk space will be used.
Preconfiguring packages ...
dnet-common: Skipping configure of DECnet
Selecting previously unselected package dnet-common.
(Reading database ... 138040 files and directories currently installed.)
Preparing to unpack .../dnet-common_2.65build1_all.deb ...
Unpacking dnet-common (2.65build1) ...
Processing triggers for systemd (239-7ubuntu10.4) ...
Processing triggers for man-db (2.8.4-3) ...
Setting up dnet-common (2.65build1) ...
dnet-common: Skipping configure of DECnet
usage: update-rc.d [-f] <basename> remove
       update-rc.d [-f] <basename> defaults
   ...

Read more...

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dnprogs (Ubuntu):
status: New → Confirmed
Revision history for this message
Keith Z-G (keithzg) wrote :

My officemate just ran into this while upgrading to 18.10, and changing

update-rc.d decnet start\ 39\ S\ .\ \ stop\ 11\ 1\ . >/dev/null

to (as I saw on my 18.04 system, where installing dnet-common *did* work)

update-rc.d decnet start 39 S . stop 11 1 . >/dev/null

seems to have resolved it; installation then completes as follows:

Preconfiguring packages ...
dnet-common: Skipping configure of DECnet
Selecting previously unselected package dnet-common.
(Reading database ... 1140653 files and directories currently installed.)
Preparing to unpack .../dnet-common_2.65_all.deb ...
Unpacking dnet-common (2.65) ...
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for systemd (237-3ubuntu10.9) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up dnet-common (2.65) ...
dnet-common: Skipping configure of DECnet
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start runlevel arguments (S) do not match decnet Default-Start values (2 3 4 5)
update-rc.d: warning: stop runlevel arguments (1) do not match decnet Default-Stop values (0 1 6)
Processing triggers for systemd (237-3ubuntu10.9) ...
Processing triggers for ureadahead (0.100.0-20) ...

Revision history for this message
Avi (strykar-p) wrote :

Yup, that fixes it, just installed from source.. attaching patch.
Unsure if this is a real solution because of the warning messages.

strykar@i-5:~/deb_src/dnprogs-2.65build1/debian$ diff rules ~/rules.p0
52c52
< dh_installinit -pdnet-common --init-script=decnet --update-rcd-params="start\ 39\ S\ .\ \ stop\ 11\ 1\ ."
---
> dh_installinit -pdnet-common --init-script=decnet --update-rcd-params="start 39 S . stop 11 1 . >/dev/null"

Revision history for this message
Avi (strykar-p) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "rules.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.