post-install script fails if any users exist with word 'ftp' in their name (was: package vsftpd (not installed) failed to install/upgrade: subprocess installed post-installation script returned error exit status 1)

Bug #641647 reported by shankar vignesh
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
vsftpd (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: vsftpd

Just installed picked from the synaptic package manager and failed to install

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: vsftpd (not installed)
ProcVersionSignature: Ubuntu 2.6.32-24.43-generic-pae 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic-pae i686
NonfreeKernelModules: nvidia
AptOrdering:
 vsftpd: Install
 vsftpd: Configure
Architecture: i386
Date: Sat Sep 18 01:20:52 2010
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
SourcePackage: vsftpd
Title: package vsftpd (not installed) failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Revision history for this message
shankar vignesh (emacine) wrote :
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hello shankar, thanks very much for taking the time to report this bug and help us make Ubuntu better!

It would appear that this happened because there was already a user named ftp, but with a group name different than 'ftp'.

This is a bug in vsftpd.postinst. It automatically assumes that the group ftp exists.

The user should be given the option to run vsftpd as a user/group other than ftp/ftp.

Marking as Triaged as it is ready to be worked on. Setting Importance to Low, as most users won't already have an ftp user.

Changed in vsftpd (Ubuntu):
status: New → Triaged
importance: Undecided → Low
tags: added: maverick
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Also added tag maverick, as it exists in maverick as well as lucid.

Revision history for this message
Kirill (kirushik) wrote :

This bug is reproducible with any existing username which contains letters "ftp", not only for the ftp user himself:

$ getent passwd | grep ftp
ftpsecure:x:1001:1001:,,,:/var/ftp:/bin/false
ftpuser:x:1002:1002:,,,:/home/ftpuser:/bin/bash

$ sudo dpkg --configure -a
Настраивается пакет vsftpd (2.2.2-3ubuntu7.1) ...
vsftpd group (ftp) already exists, doing nothing.
vsftpd user (ftp) already exists, doing nothing.
gpasswd: user 'ftp' does not exist

Revision history for this message
shankar vignesh (emacine) wrote : Re: [Bug 641647] Re: package vsftpd (not installed) failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Hey Guys,

Thanks a lot deleting the ftp* user resolved this issue. The users are added
as a part of pureadmin gui installation, I guess.

I am not sure whether this thread will help in address another issue I have
related to DVD burn on Lucid. Is there a common tool that can grab all the
relevant info for you. Besides strace/message did not give much info about
this issue as the linux freezes completely and hard reboot is the only
solution.

Shankar

On Wed, Sep 22, 2010 at 12:26 PM, Kirill <email address hidden> wrote:

> This bug is reproducible with any existing username which contains
> letters "ftp", not only for the ftp user himself:
>
>
> $ getent passwd | grep ftp
> ftpsecure:x:1001:1001:,,,:/var/ftp:/bin/false
> ftpuser:x:1002:1002:,,,:/home/ftpuser:/bin/bash
>
> $ sudo dpkg --configure -a
> Настраивается пакет vsftpd (2.2.2-3ubuntu7.1) ...
> vsftpd group (ftp) already exists, doing nothing.
> vsftpd user (ftp) already exists, doing nothing.
> gpasswd: user 'ftp' does not exist
>
> --
> package vsftpd (not installed) failed to install/upgrade: subprocess
> installed post-installation script returned error exit status 1
> https://bugs.launchpad.net/bugs/641647
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in "vsftpd" package in Ubuntu: Triaged
>
> Bug description:
> Binary package hint: vsftpd
>
> Just installed picked from the synaptic package manager and failed to
> install
>
> ProblemType: Package
> DistroRelease: Ubuntu 10.04
> Package: vsftpd (not installed)
> ProcVersionSignature: Ubuntu 2.6.32-24.43-generic-pae 2.6.32.15+drm33.5
> Uname: Linux 2.6.32-24-generic-pae i686
> NonfreeKernelModules: nvidia
> AptOrdering:
> vsftpd: Install
> vsftpd: Configure
> Architecture: i386
> Date: Sat Sep 18 01:20:52 2010
> ErrorMessage: subprocess installed post-installation script returned error
> exit status 1
> InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
> SourcePackage: vsftpd
> Title: package vsftpd (not installed) failed to install/upgrade: subprocess
> installed post-installation script returned error exit status 1
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/vsftpd/+bug/641647/+subscribe
>

Revision history for this message
Clint Byrum (clint-fewbar) wrote : Re: package vsftpd (not installed) failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Shankar, I'm glad there is an easy workaround for you.

This isn't the best place to seek guidance for an unrelated question. I'd suggest IRC, the Ubuntu Forums, or a relevant mailing list:

IRC:
#ubuntu - irc.freenode.net

Forums:
http://ubuntuforums.org/

Mailing Lists:
https://lists.ubuntu.com/

summary: - package vsftpd (not installed) failed to install/upgrade: subprocess
- installed post-installation script returned error exit status 1
+ post-install script fails if any users exist with word 'ftp' in their
+ name (was: package vsftpd (not installed) failed to install/upgrade:
+ subprocess installed post-installation script returned error exit status
+ 1)
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 629234, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

Changed in vsftpd (Ubuntu):
status: Triaged → Confirmed
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.