[Bug]: Debian ugprade fails with exit 9 #3135

Closed
opened 2026-04-25 00:13:49 +02:00 by adam · 2 comments
Owner

Originally created by @Galen007 on GitHub (Dec 3, 2025).

What happened?

got an error while upgrading debian package in debian trixie amd64:

Vorbereitung zum Entpacken von .../03-audiobookshelf_2.31.0_amd64.deb ...
Removed '/etc/systemd/system/multi-user.target.wants/audiobookshelf.service'.
Creating system user: audiobookshelf in audiobookshelf with audiobookshelf user-daemon and shell /bin/false
useradd: Benutzer »audiobookshelf« existiert bereits
dpkg: Fehler beim Bearbeiten des Archivs /tmp/apt-dpkg-install-36NNH5/03-audiobookshelf_2.31.0_amd64.deb (--> unpack):
»neues pre-installation-Skript des Paketes audiobookshelf«-Unterprozess gab den Fehlerwert 9 zurück
Created symlink '/etc/systemd/system/multi-user.target.wants/audiobookshelf.service' → '/usr/lib/systemd/system/audiobookshelf.service'.

root@fileserver:/var/lib/dpkg/info# ./audiobookshelf.preinst
Creating system user: audiobookshelf in audiobookshelf with audiobookshelf user-daemon and shell /bin/false
useradd: Benutzer »audiobookshelf« existiert bereits
root@fileserver:/var/lib/dpkg/info# echo $?
9

problem is pipefail in combination with grep -q.
plz replace the line

if ! getent passwd | grep -q "^$user:"; then
with
if ! (getent passwd ; true ) | grep -q "^$user:"; then
to get rid of the error.

What did you expect to happen?

pls patch the preinstall script

Steps to reproduce the issue

  1. apt-get update
  2. apt-get upgrade

Audiobookshelf version

2.31.0

How are you running audiobookshelf?

Debian/PPA

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs


Additional Notes

No response

Originally created by @Galen007 on GitHub (Dec 3, 2025). ### What happened? got an error while upgrading debian package in debian trixie amd64: > Vorbereitung zum Entpacken von .../03-audiobookshelf_2.31.0_amd64.deb ... > Removed '/etc/systemd/system/multi-user.target.wants/audiobookshelf.service'. > Creating system user: audiobookshelf in audiobookshelf with audiobookshelf user-daemon and shell /bin/false > useradd: Benutzer »audiobookshelf« existiert bereits > dpkg: Fehler beim Bearbeiten des Archivs /tmp/apt-dpkg-install-36NNH5/03-audiobookshelf_2.31.0_amd64.deb (--> unpack): > »neues pre-installation-Skript des Paketes audiobookshelf«-Unterprozess gab den Fehlerwert 9 zurück > Created symlink '/etc/systemd/system/multi-user.target.wants/audiobookshelf.service' → '/usr/lib/systemd/system/audiobookshelf.service'. > root@fileserver:/var/lib/dpkg/info# ./audiobookshelf.preinst > Creating system user: audiobookshelf in audiobookshelf with audiobookshelf user-daemon and shell /bin/false > useradd: Benutzer »audiobookshelf« existiert bereits > root@fileserver:/var/lib/dpkg/info# echo $? > 9 problem is pipefail in combination with grep -q. plz replace the line > if ! getent passwd | grep -q "^$user:"; then with > if ! (getent passwd ; true ) | grep -q "^$user:"; then to get rid of the error. ### What did you expect to happen? pls patch the preinstall script ### Steps to reproduce the issue 1. apt-get update 2. apt-get upgrade ### Audiobookshelf version 2.31.0 ### How are you running audiobookshelf? Debian/PPA ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs ```shell ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:13:49 +02:00
adam closed this issue 2026-04-25 00:13:49 +02:00
Author
Owner

@Galen007 commented on GitHub (Dec 3, 2025):

same error could maybe occur in the group function...

@Galen007 commented on GitHub (Dec 3, 2025): same error could maybe occur in the group function...
Author
Owner

@Vito0912 commented on GitHub (Dec 3, 2025):

Duplicate of https://github.com/advplyr/audiobookshelf/issues/1617

@Vito0912 commented on GitHub (Dec 3, 2025): Duplicate of https://github.com/advplyr/audiobookshelf/issues/1617
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3135