Public bug reported:

With `/bin/sh` being dash and not Bash, the postinst script fails.

```
$ sudo apt reinstall nis
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 14.2 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://de.ports.ubuntu.com/ubuntu-ports hirsute/universe ppc64el nis all 
4.2 [14.2 kB]
Fetched 14.2 kB in 0s (110 kB/s)
(Reading database ... 420369 files and directories currently installed.)
Preparing to unpack .../apt/archives/nis_4.2_all.deb ...
update-rc.d: error: unable to read /etc/init.d/nis
Unpacking nis (4.2) over (4.2) ...
Setting up nis (4.2) ...
/var/lib/dpkg/info/nis.postinst: 76: [: -eq: unexpected operator
```

Using `/bin/bash` and doing `dpkg -a --configure` seems to fix this
issue. The bashism can probably  be rewritten.

** Affects: nis (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1927540

Title:
  /var/lib/dpkg/info/nis.postinst: 76: [: -eq: unexpected operator

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nis/+bug/1927540/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to