<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Greetings
<br>
<br>
Since r151018 is more recent let's consider this a report for that
version, though I encountered it first on r151014
<br>
<br>
Upon issuing the recommended command to switch:
<br>
<a class="moz-txt-link-freetext"
href="https://omnios.omniti.com/wiki.php/ReleaseNotes/r151018">https://omnios.omniti.com/wiki.php/ReleaseNotes/r151018</a>
<br>
/usr/bin/pkg install --no-backup-be --reject pkg:/network/ssh
--reject pkg:/network/ssh/ssh-key --reject
pkg:/service/network/ssh --reject pkg:/service/network/ssh-common
pkg:/network/openssh pkg:/network/openssh-server
<br>
<br>
I got the error:
<br>
The Boot Environment OmniOS-r151018 failed to be updated. A
snapshot was taken before the failed attempt and is mounted here
/tmp/tmpSE7Agh. Use 'beadm unmount OmniOS-r151018-2' and then
'beadm activate OmniOS-r151018-2' if you wish to boot to this BE.
<br>
<br>
pkg: Requested operation failed for package <a
class="moz-txt-link-abbreviated"
href="mailto:pkg://omnios/network/openssh-server@7.2.2,5.11-0.151018:20160412T154009Z"><a class="moz-txt-link-abbreviated" href="mailto:pkg://omnios/network/openssh-server@7.2.2,5.11-0.151018:20160412T154009Z">pkg://omnios/network/openssh-server@7.2.2,5.11-0.151018:20160412T154009Z</a></a>:
<br>
User cannot be installed without user database files present.
<br>
<br>
...and then beadm is left in the slightly weird state
<br>
<br>
Google wasn't much help here.
<br>
Ultimately, after some sleuthing, I determined the problem to be
<br>
somewhere deep within a call to the "user" module of pkg, from
<br>
the package requirement:
<br>
user ftpuser=false gcos-field="OpenSSH privsep user"
group=sshd home-dir=/var/empty login-shell=/bin/false password=NP
uid=92 username=sshd
<br>
<br>
This in turn was attempting to add an entry to
<br>
/etc/ftpd/ftpusers
<br>
<br>
Because of the move away from ftpd [i've switched to proftpd] w/
<br>
OmniOS, I was left with no /etc/ftpd directory. Apparently this
is
<br>
met with great hostility by user.py...
<br>
<br>
Manually creating an empty ftpusers in /etc/ftpd allowed the
install
<br>
to succeed.
<br>
<br>
"leaving this here" so that others may find and benefit, and
perhaps
<br>
the pkg rule will be cleaned up for OmniOS, now that ftpd isn't
<br>
there...
<br>
<br>
Cheers
<br>
--Rick
</p>
</body>
</html>