This one was sent somewhat too early... Continued below.
--------------------------------------------------
From: "Davor Vusir" <[email protected]>
Sent: Wednesday, July 03, 2013 12:31 PM
To: <[email protected]>
Subject: Re: [SOGo] dpkg error while processing sogo-package (2.0.6b)
--------------------------------------------------
From: "Jean Raby" <[email protected]>
Sent: Tuesday, July 02, 2013 11:50 PM
To: <[email protected]>
Subject: Re: [SOGo] dpkg error while processing sogo-package (2.0.6b)
On 13-07-02 11:06 AM, Davor Vusir wrote:
New install. No go. No ideas.
Regards
Davor
---
root@mail:~# apt-get install sogo sope4.9-gdl1-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
sope4.9-gdl1-mysql is already the newest version.
new install, yet sope4.9-gdl1-mysql is already installed?
Suggested packages:
nginx
The following NEW packages will be installed:
sogo
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3,954 kB of archives.
After this operation, 12.9 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 69845 files and directories currently installed.)
Unpacking sogo (from .../sogo_2.0.6b-1_amd64.deb) ...
install: invalid group `sogo'
somehow the sogo group wasn't created. The code is pretty simple:
if [ "$1" == "install" ] || [ "$1" == "upgrade" ]; then
if ! id sogo 1> /dev/null 2>&1; then
groupadd -f -r sogo
useradd -d /var/lib/sogo -g sogo -c "SOGo daemon" -s
/usr/sbin/nologin -r sogo
fi
...
The sogo user exists and the sogo group doesn't. create it and it should
just work. On new installs, it should work since the sogo user won't
exist.
It turns out that compiling Samba4 and activating Winbind (using
instructions from https://wiki.samba.org/index.php/Samba4/Winbind and
http://iabsis.com/EN/article/35-2/Samba4-installation) before installing
SOGo triggers the above error.
and a user 'sogo' exists in the Samba4 AD.
root@mail:/# getent passwd
EXAMPLE\sogo:*:3000018:100::/home/EXAMPLE/sogo:/bin/bash
Turning off Samba4
root@mail:/# /etc/init.d/samba4 stop
* Stopping Samba 4 daemon samba [
OK ]
and run the installation again
root@mail:/# apt-get install sogo mysql-server sope4.9-gdl1-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version.
sope4.9-gdl1-mysql is already the newest version.
Suggested packages:
nginx
The following NEW packages will be installed:
sogo
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
21 not fully installed or removed.
.
.
.
Setting up sogo (2.0.6b-1) ...
* Starting SOGo sogo [
OK ]
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
root@mail:/#
fixes it. With a running Samba4 and no user 'sogo' in Samba4 AD does it too.
Cool, huh!
/Davor
--
[email protected]
https://inverse.ca/sogo/lists
--
[email protected]
https://inverse.ca/sogo/lists
--
[email protected]
https://inverse.ca/sogo/lists