Start a new topic

bluecherry removal: "Access denied for user 'bluecherry'@'localhost'

Running Ubuntu 14.04.5 LTS on an Acer C720 laptop. Had a mysql database problem due to a system clock error (!). I have tried to remove bluecherry so that I can reinstall, but neither process will complete without errors. Here's the removal attempt. What am I doing wrong? Do I have to reinstall ubuntu completely?

$ uname -a

Linux C720 3.13.0-106-generic #153-Ubuntu SMP Tue Dec 6 15:44:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


  1. user@C720:~/test$ sudo apt-get remove --purge bluecherry

  2. Reading package lists... Done

  3. Building dependency tree

  4. Reading state information... Done

  5. The following packages were automatically installed and are no longer required:

  6. libdbd-mysql-perl libmysqlclient18 mysql-client-5.5 mysql-client-core-5.5

  7. mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5

  8. php-auth-sasl php-mail php-mail-mime php-net-smtp php-net-socket php5-curl

  9. php5-mysqlnd php5-sqlite sqlite3 v4l-utils

  10. Use 'apt-get autoremove' to remove them.

  11. The following packages will be REMOVED:

  12. bluecherry*

  13. 0 upgraded, 0 newly installed, 1 to remove and 233 not upgraded.

  14. 1 not fully installed or removed.

  15. After this operation, 15.0 MB disk space will be freed.

  16. Do you want to continue? [Y/n] Y

  17. (Reading database ... 355793 files and directories currently installed.)

  18. Removing bluecherry (2:2.8.0) ...

  19. + '[' -f /usr/share/debconf/confmodule ']'

  20. + . /usr/share/debconf/confmodule

  21. ++ '[' '!' '' ']'

  22. ++ PERL_DL_NONLAZY=1

  23. ++ export PERL_DL_NONLAZY

  24. ++ '[' '' ']'

  25. ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/bluecherry.postrm remove

  26. + '[' -f /usr/share/debconf/confmodule ']'

  27. + . /usr/share/debconf/confmodule

  28. ++ '[' '!' 1 ']'

  29. ++ '[' -z '' ']'

  30. ++ exec

  31. ++ '[' '' ']'

  32. ++ exec

  33. ++ DEBCONF_REDIR=1

  34. ++ export DEBCONF_REDIR

  35. + case "$1" in

  36. + a2dissite bluecherry.conf

  37. removing dangling symlink /etc/apache2/sites-enabled/bluecherry.conf

  38. + invoke-rc.d apache2 restart

  39. * Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message

  40. [ OK ]

  41. + invoke-rc.d rsyslog restart

  42. rsyslog stop/waiting

  43. rsyslog start/running, process 4302

  44. + '[' remove = remove ']'

  45. + ldconfig

  46. + '[' remove = purge ']'

  47. + db_stop

  48. + echo STOP

  49. Purging configuration files for bluecherry (2:2.8.0) ...

  50. + '[' -f /usr/share/debconf/confmodule ']'

  51. + . /usr/share/debconf/confmodule

  52. ++ '[' '!' '' ']'

  53. ++ PERL_DL_NONLAZY=1

  54. ++ export PERL_DL_NONLAZY

  55. ++ '[' '' ']'

  56. ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/bluecherry.postrm purge

  57. + '[' -f /usr/share/debconf/confmodule ']'

  58. + . /usr/share/debconf/confmodule

  59. ++ '[' '!' 1 ']'

  60. ++ '[' -z '' ']'

  61. ++ exec

  62. ++ '[' '' ']'

  63. ++ exec

  64. ++ DEBCONF_REDIR=1

  65. ++ export DEBCONF_REDIR

  66. + case "$1" in

  67. + CONFIGFILE=/etc/bluecherry.conf

  68. + for ext in ''\''~'\''' ''\''%'\''' .bak .ucf-new .ucf-old .ucf-dist

  69. + rm -f /etc/bluecherry.conf~

  70. + for ext in ''\''~'\''' ''\''%'\''' .bak .ucf-new .ucf-old .ucf-dist

  71. + rm -f /etc/bluecherry.conf%

  72. + for ext in ''\''~'\''' ''\''%'\''' .bak .ucf-new .ucf-old .ucf-dist

  73. + rm -f /etc/bluecherry.conf.bak

  74. + for ext in ''\''~'\''' ''\''%'\''' .bak .ucf-new .ucf-old .ucf-dist

  75. + rm -f /etc/bluecherry.conf.ucf-new

  76. + for ext in ''\''~'\''' ''\''%'\''' .bak .ucf-new .ucf-old .ucf-dist

  77. + rm -f /etc/bluecherry.conf.ucf-old

  78. + for ext in ''\''~'\''' ''\''%'\''' .bak .ucf-new .ucf-old .ucf-dist

  79. + rm -f /etc/bluecherry.conf.ucf-dist

  80. + load_db_creds

  81. ++ sed '/\(dbname\|user\|password\)/!d;s/ *= */=/;s/"/'\''/g' /etc/bluecherry.conf

  82. + eval 'dbname='\''bluecherry'\'';' 'user='\''bluecherry'\'';' 'password='\''bluecherry'\'';'

  83. ++ dbname=bluecherry

  84. ++ user=bluecherry

  85. ++ password=bluecherry

  86. + purge_files

  87. + echo 'Removing recording files'

  88. Removing recording files

  89. + echo 'SELECT filepath FROM Media'

  90. + mysql -Dbluecherry -ubluecherry -pbluecherry

  91. + IFS=

  92. + read -r MEDIAFILE

  93. + tail -n +2

  94. ERROR 1045 (28000): Access denied for user 'bluecherry'@'localhost' (using password: YES)

  95. + drop_db

  96. + echo 'Dropping database bluecherry'

  97. Dropping database bluecherry

  98. + echo 'DROP DATABASE bluecherry'

  99. + mysql -Dbluecherry -ubluecherry -pbluecherry

  100. ERROR 1045 (28000): Access denied for user 'bluecherry'@'localhost' (using password: YES)

  101. dpkg: error processing package bluecherry (--purge):

  102. subprocess installed post-removal script returned error exit status 1

  103. Processing triggers for ureadahead (0.100.0-16) ...

  104. Processing triggers for libc-bin (2.19-0ubuntu6.9) ...

  105. Errors were encountered while processing:

  106. bluecherry

  107. E: Sub-process /usr/bin/dpkg returned an error code (1)

Login or Signup to post a comment