package drupal6 6.16-1ubuntu0.1 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 1

Bug #790968 reported by Nick Seth-Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
drupal6 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Drupal6 failed to install since dbconfig was unable to confirm that the appropriate grants had been made in the mysql database.

The bug exists in /usr/share/dbconfig-common/internal/mysql line 146 in the specific version I have installed. The script is checking for the wrong type of quote marks so fails to match the assigned grants. I corrected to '"' and the script performs correctly. I suspect this to be specific to certain versions of mysql and may, further, vary by specific locale / configuration etc.

Here is the corrected line for my system:
     if ! _dbc_nodb="yes" dbc_mysql_exec_command "SHOW GRANTS FOR '$dbc_dbuser'@'$l_dballow'" | grep -qi "GRANT .* ON \"$dbc_dbname\""; then
147 return 1

Note the double quotes around $dbc_dbname

Thanks

Nick SS

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: drupal6 6.16-1ubuntu0.1
ProcVersionSignature: Ubuntu 2.6.32-31.61-generic 2.6.32.32+drm33.14
Uname: Linux 2.6.32-31-generic x86_64
NonfreeKernelModules: fglrx
AptOrdering: drupal6: Purge
Architecture: amd64
Date: Tue May 24 12:26:03 2011
ErrorMessage: subprocess installed pre-removal script returned error exit status 1
PackageArchitecture: all
SourcePackage: drupal6
Title: package drupal6 6.16-1ubuntu0.1 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 1

Revision history for this message
Nick Seth-Smith (ubuntu-nss) wrote :
affects: ubuntu → drupal6 (Ubuntu)
Revision history for this message
dino99 (9d9) wrote :

Closing that outdated report as EOL has been reached long time ago

Changed in drupal6 (Ubuntu):
status: New → Invalid
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.