Problem installing binary on debian
Hello,
I am trying to install the membase binary on a ubuntu machine (64 bit) by typing:
sudo dpkg -i membase-server_1.6.0beta4_x86_64.deb.deb
Error messages:
Unpacking membase-server (from membase-server_1.6.0beta4_x86_64.deb.deb) ...
groupadd: invalid option -- r
dpkg: error processing membase-server_1.6.0beta4_x86_64.deb.deb (--install):
subprocess pre-installation script returned error exit status 1
Please help if you can. Thank you.
Hello Elektron,
The NorthScale server has been started.
Thanks very much!
Martian, glad you got it worked out. Can you give me the specifics of the Ubuntu version you trying to install on?
Perry
Sure, Perry:
I am using Alestic's 64-bit Ubuntu 8.04 (Hardy Heron) image on AWS (ami-005db969)
Thanks Martian, that's perfect. You might want to upgrade your image to the 9.x series or 10.x. We've done much more testing on those OS'es than the 8.x series but things should still work as expected.
Perry
Cannot install from binary on Ubuntu 8.04 (32 bit).
root@4495:~# groupadd northscale
root@4495:~# useradd -g northscale -d /opt/NorthScale -s /bin/bash -c "NorthScale system user" northscale
root@4495:~#
root@4495:~# dpkg -i membase-server-community_x86_1.6.5.deb
(Reading database ... 47237 files and directories currently installed.)
Unpacking membase-server (from membase-server-community_x86_1.6.5.deb) ...
groupadd: invalid option -- 'r'
Usage: groupadd [options] GROUP
Options:
-f, --force force exit with success status if the specified
group already exists
-g, --gid GID use GID for the new group
-h, --help display this help message and exit
-K, --key KEY=VALUE overrides /etc/login.defs defaults
-o, --non-unique allow create group with duplicate
(non-unique) GID
dpkg: error processing membase-server-community_x86_1.6.5.deb (--install):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
membase-server-community_x86_1.6.5.deb
I'm getting this error as well. It's a problem with the preinstall script in the debian package.
17 case "$1" in 18 install|upgrade) 19 getent group membase >/dev/null || groupadd -r membase || exit 1 20 getent passwd membase >/dev/null || \ 21 useradd -r -g membase -d /opt/membase -s /bin/bash \ 22 -c "Membase system user" membase || exit 1 23 exit 0 24 ;; 25
Ok! It work!
thank you very much!
Hi,
You should create manually group and user befrore install binary:
groupadd northscale
useradd -g northscale -d /opt/NorthScale -s /bin/bash -c "NorthScale system user" northscale
A.