old_passwords.cnf: No such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-dfsg-5.0 (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Binary package hint: mysql-server
2.6.24-19-server #1 SMP Wed Aug 20 18:43:06 UTC 2008 x86_64 GNU/Linux
Ubuntu 8.04.2
I was unable to connect to a fresh install of mysql-server as the root user didn't work without a password. I was not asked for the password in the installation phase. So I tried sudo apt-get autoremove --purge mysql-server and then sudo apt-get install mysql-server and this happened:
$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libdbd-mysql-perl libdbi-perl libnet-daemon-perl libplrpc-perl mysql-client-5.0 mysql-server-5.0
Suggested packages:
dbishell libcompress-
Recommended packages:
libhtml-
The following NEW packages will be installed:
libdbd-mysql-perl libdbi-perl libnet-daemon-perl libplrpc-perl mysql-client-5.0 mysql-server mysql-server-5.0
0 upgraded, 7 newly installed, 0 to remove and 8 not upgraded.
Need to get 0B/37.3MB of archives.
After this operation, 112MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
Selecting previously deselected package libnet-daemon-perl.
(Reading database ... 26211 files and directories currently installed.)
Unpacking libnet-daemon-perl (from .../libnet-
Selecting previously deselected package libplrpc-perl.
Unpacking libplrpc-perl (from .../libplrpc-
Selecting previously deselected package libdbi-perl.
Unpacking libdbi-perl (from .../libdbi-
Selecting previously deselected package libdbd-mysql-perl.
Unpacking libdbd-mysql-perl (from .../libdbd-
Selecting previously deselected package mysql-client-5.0.
Unpacking mysql-client-5.0 (from .../mysql-
Selecting previously deselected package mysql-server-5.0.
Unpacking mysql-server-5.0 (from .../mysql-
Selecting previously deselected package mysql-server.
Unpacking mysql-server (from .../mysql-
Setting up libnet-daemon-perl (0.38-1.1) ...
Setting up libplrpc-perl (0.2017-1.1) ...
Setting up libdbi-perl (1.601-1) ...
Setting up libdbd-mysql-perl (4.005-1) ...
Setting up mysql-client-5.0 (5.0.51a-
Setting up mysql-server-5.0 (5.0.51a-
* Stopping MySQL database server mysqld [ OK ]
/var/lib/
dpkg: error processing mysql-server-5.0 (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.0; however:
Package mysql-server-5.0 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.0
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Changed in mysql-dfsg-5.0 (Ubuntu): | |
status: | Incomplete → Confirmed |
importance: | Undecided → Low |
Okay, fix proposed by http:// ohioloco. ubuntuforums. org/showthread. php?t=626443 worked. It was necessary to purge mysql-common (if you have a package which depends on mysql-common then just sudo dpkg --purge --force-depends mysql-common; sudo apt-get install -f . In my case, it was proftpd).
How to simulate the bug (probably): install proftpd, then install mysql-server (it shouldn't prompt for a password), then purge mysql-server and try to install it again.