fatal: Only one or two names allowed

Bug #2083278 reported by eris23
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
flatpak (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Updating to flatpak 1.14.6-1ubuntu0.1 noble.

Setting up flatpak (1.14.6-1ubuntu0.1) ...
fatal: Only one or two names allowed.
dpkg: error processing package flatpak (--configure):
 installed flatpak package post-installation script subprocess returned error exit status 51

I tried dpkg --configure -a. Same problem. I uninstalled all flatpak related, and tried reinstalling flatpak. Same problem.

Tags: patch
eris23 (jdkatz23)
description: updated
Revision history for this message
explainlight (explainlight) wrote :

installed flatpak package post-installation script subprocess returned error exit status 51

I am getting this message too!

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in flatpak (Ubuntu):
status: New → Confirmed
Revision history for this message
Frank Hempel (red-socks) wrote (last edit ):

The bug affected me too under an up2date Ubuntu 24.04.

During installation the packet fails at the postinst step with the error message: `fatal: Only one or two names allowed.`

This error is yielded by the `adduser` execution inside of the postinst script. It has it's cause in the `--gecos "Flatpak system-wide installation helper"` option given to the command. As it seems this gecos option (which by the way is deprecated and could be replaced with --comment, however this does not influence the here described behavior) accepts one word only. As soon as one gives text with white spaces adduser results with the mentioned error. So the fix is to change this text to be one word (or omit the entire option).

Revision history for this message
Frank Hempel (red-socks) wrote :

The attached deb file (amd64) has the corrected gecos option in the postinst script. To overcome the half-installed flatpak run `dpkg -i flatpak_1.14.6-1ubuntu0.1_amd64.deb`.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "flatpak_1.14.6-1ubuntu0.1_amd64.deb" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
eris23 (jdkatz23) wrote :

Patched flatpak in #4 works for me.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.