Skip to content

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

@Galen007

Description

@Galen007

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions