package mysql-server-5.1 (not installed) failed to install/upgrade: subprocess new pre-installation script returned error exit status 1
Bug #690924 reported by
Joe Prema
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-dfsg-5.1 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Failed during installation of Myth Backend
Front aend was installed first
ProblemType: Package
Architecture: i386
Date: Wed Dec 15 22:03:17 2010
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess new pre-installation script returned error exit status 1
NonfreeKernelMo
Package: mysql-server-5.1 (not installed)
ProcVersionSign
SourcePackage: mysql-dfsg-5.1
Title: package mysql-server-5.1 (not installed) failed to install/upgrade: subprocess new pre-installation script returned error exit status 1
Uname: Linux 2.6.31-22-generic i686
To post a comment you must log in.
Hi Joe, thanks for taking the time to file this bug report and help us make Ubuntu better.
Unpacking mysql-server-5.1 (from .../mysql- server- 5.1_5.1. 37-1ubuntu5. 5_i386. deb) ... apt/archives/ mysql-server- 5.1_5.1. 37-1ubuntu5. 5_i386. deb (--unpack):
Your account has expired; please contact your system administrator
chfn: PAM authentication failed
adduser: `/usr/bin/chfn -f MySQL Server mysql' returned error code 1. Exiting.
dpkg: error processing /var/cache/
subprocess new pre-installation script returned error exit status 1
This message suggests that there is a problem with the 'mysql' user. Is it possible you already have a user called 'mysql' and that it has been disabled in some way?
Try running
sudo passwd -S mysql
The fields are described as such in the man page of passwd:
-S, --status
Display account status information. The status information consists of 7 fields. The first field is the users login name. The second field indicates if the user
account has a locked password (L), has no password (NP), or has a usable password (P). The third field gives the date of the last password change. The next four
fields are the minimum age, maximum age, warning period, and inactivity period for the password. These ages are expressed in days.
If the user's password hasn't been updated in a long time, you can try manually updating it as root then re-running the configuration. If you are sure the user owns no files on disk, you can also try deleting it and letting the configuration re-create the user.
If any of this fails horribly, please paste the results here and let us know.
Marking Incomplete pending response from Joe.