View Issue Details

IDProjectCategoryView StatusLast Update
0005666SOGoPackaging (Debian)public2023-03-05 13:16
Reporterjceb Assigned Tosebastien  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSUbuntuOS Version20.04
Product Version5.8.0 
Fixed in Version5.8.1 
Summary0005666: Installation on Ubuntu focal/20.04 fails
Description

When I set up the repository and install the sogo package the installation fails with the following message:

Setting up sogo (5.8.0.20221228-1) ...
chmod: cannot access '/usr/share/doc/sogo/*.sh': No such file or directory
dpkg: error processing package sogo (--configure):
 installed sogo package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of sogo-activesync:
 sogo-activesync depends on sogo (= 5.8.0.20221228-1); however:
  Package sogo is not configured yet.
Steps To Reproduce
docker run -it --rm ubuntu:20.04

apt-get update && apt-get install -y curl gpg
curl -L https://keys.openpgp.org/vks/v1/by-fingerprint/74FFC6D72B925A34B5D356BDF8A27B36A6E2EAE9 | gpg --dearmor > /usr/share/keyrings/sogo-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/sogo-archive-keyring.gpg] http://packages.inverse.ca/SOGo/nightly/5/ubuntu focal focal" > /etc/apt/sources.list.d/sogo.list
apt-get update && apt-get install -y sogo
Additional Information

Appartently the upgrade and sql migration scripts aren't part of the package despite them being listed in the docs folder are missing. Here's a full list of the missing files:

dpkg -L sogo | xargs -I {} bash -c "if [ ! -e '{}' ]; then echo '{}'; fi"
/usr/share/doc/sogo/CHANGELOG.md.gz
/usr/share/doc/sogo/SOGo-apple-ab.conf
/usr/share/doc/sogo/changelog.gz
/usr/share/doc/sogo/sogo-backup.sh
/usr/share/doc/sogo/sql-update-1.2.2_to_1.3.0-mysql.sh
/usr/share/doc/sogo/sql-update-1.2.2_to_1.3.0.sh
/usr/share/doc/sogo/sql-update-1.3.11_to_1.3.12-mysql.sh
/usr/share/doc/sogo/sql-update-1.3.11_to_1.3.12.sh
/usr/share/doc/sogo/sql-update-1.3.16_to_1.3.17-mysql.sh
/usr/share/doc/sogo/sql-update-1.3.16_to_1.3.17.sh
/usr/share/doc/sogo/sql-update-1.3.3_to_1.3.4-mysql.sh
/usr/share/doc/sogo/sql-update-1.3.3_to_1.3.4.sh
/usr/share/doc/sogo/sql-update-101_to_102.sh
/usr/share/doc/sogo/sql-update-2.0.4b_to_2.0.5-mysql.sh
/usr/share/doc/sogo/sql-update-2.2.17_to_2.3.0-mysql.sh
/usr/share/doc/sogo/sql-update-2.2.17_to_2.3.0.sh
/usr/share/doc/sogo/sql-update-20070724.sh
/usr/share/doc/sogo/sql-update-20070822.sh
/usr/share/doc/sogo/sql-update-20080303.sh
/usr/share/doc/sogo/sql-update-3.0.0-to-combined-mysql.sh
/usr/share/doc/sogo/sql-update-3.0.0-to-combined.sh
/usr/share/doc/sogo/sql-update-3.2.10_to_4.0.0-mysql.sh
/usr/share/doc/sogo/sql-update-3.2.10_to_4.0.0.sh
/usr/share/doc/sogo/sql-update-5.5.1_to_5.6.0.sh
/usr/share/doc/sogo/updates.php
TagsNo tags attached.

Activities

SlavekB

SlavekB

2022-12-30 08:18

reporter   ~0016511

I assume you are using a minimized version of Ubuntu - see https://wiki.ubuntu.com/Minimal. There is a script included in the packaging, which performs an immediate reduction of the content of the installed packages. Therefore the files contained in /usr/share/doc/sogo are deleted immediately after installation and the SOGo post-inst script fails.

If you want, you can install packages from my repository, in which regularly updated packages of stable versions are provided for the community, where the SOGo packaging is slightly different and this problem is solved.

deb https://www.axis.cz/linux/debian focal sogo-v5

jceb

jceb

2022-12-30 09:22

reporter   ~0016512

Ah, yes, that's probably the case. Thank you for the hint!

jceb

jceb

2022-12-30 10:19

reporter   ~0016513

I can confirm that this was the issue. I was able to work around it by executing the following command before the installation:

echo -e '\n# include migration scripts, see bug https://bugs.sogo.nu/view.php?id=5666\npath-include=/usr/share/doc/sogo*' >> /etc/dpkg/dpkg.cfg.d/excludes

I'd say the sogo postinst script could check for the existence of *.sh files before attempting to chmod them.

sebastien

sebastien

2023-03-05 13:16

administrator   ~0016716

This issue is fixed.

Issue History

Date Modified Username Field Change
2022-12-29 08:09 jceb New Issue
2022-12-30 08:18 SlavekB Note Added: 0016511
2022-12-30 09:22 jceb Note Added: 0016512
2022-12-30 10:19 jceb Note Added: 0016513
2023-02-22 17:58 sebastien Assigned To => sebastien
2023-02-22 17:58 sebastien Status new => assigned
2023-03-05 13:16 sebastien Note Added: 0016716
2023-03-05 13:16 sebastien Status assigned => resolved
2023-03-05 13:16 sebastien Resolution open => fixed
2023-03-05 13:16 sebastien Fixed in Version => 5.8.1