Tim, Thanks for your reply. BTW, I fixed the locale problem - no more errors!
I am a little confused about mysql. I created the chroot, and then from within the chroot I issued apt-get install mysql-server. I expected it to just install like any other package in lenny. However, I get this (note I purged mysql-server and mysql-server-5.0, fixed the locale problem, and then did a fresh install of mysql-server, all from within the chroot): [orca:/]# apt-get install mysql-server Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: mysql-server-5.0 Suggested packages: tinyca The following NEW packages will be installed: mysql-server mysql-server-5.0 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 26.7MB of archives. After this operation, 84.2MB of additional disk space will be used. Do you want to continue [Y/n]? Y WARNING: The following packages cannot be authenticated! mysql-server-5.0 mysql-server Install these packages without verification [y/N]? y Get:1 http://ftp.us.debian.org lenny/main mysql-server-5.0 5.0.51a-24+lenny2+spu1 [26.7MB] Get:2 http://ftp.us.debian.org lenny/main mysql-server 5.0.51a-24+lenny2+spu1 [55.3kB] Fetched 26.7MB in 1min16s (349kB/s) Preconfiguring packages ... Selecting previously deselected package mysql-server-5.0. (Reading database ... 12541 files and directories currently installed.) Unpacking mysql-server-5.0 (from .../mysql-server-5.0_5.0.51a-24+lenny2+spu1_i386.deb) ... Selecting previously deselected package mysql-server. Unpacking mysql-server (from .../mysql-server_5.0.51a-24+lenny2+spu1_all.deb) ... Processing triggers for man-db ... Setting up mysql-server-5.0 (5.0.51a-24+lenny2+spu1) ... Stopping MySQL database server: mysqld. Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed! invoke-rc.d: initscript mysql, action "start" failed. 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) What do you mean by "mapping /var/lib/mysql"? I can't mount my 64 bit mysql into this 32 bit chroot. I just want a clean install of 32 bit mysql in my 32 bit chroot jail. At this point, I am ready to put myself in a chroot jail! ;-) Mark On Wed, Jun 2, 2010 at 6:56 AM, Tim Bruce - PLUG <[email protected]> wrote: > Mark, > > For mysql, did you look at /var/lib/mysql as well. All the data gets > written there. > > There are also log files in /var/log/mysql* and/or /var/log/mysql/* that > you'll need to map into your chroot environment. Either one could be > stopping mysql from starting. > > > On Wed, June 2, 2010 06:46, Mark Phillips wrote: > > I have created a 32 bit chroot (Debian Lenny) on my 64 bit Debian Squeeze > > machine. I am having a problem installing mysql into this chroot, as well > > as > > a problem with locales. > > > > 1. I have run dpk-reconfigure locales, answered all the questions but I > > still get locale warnings: > > > > ..... > > > > 2. MySQL fails the configuration, but there are no error messages to say > > what is failing: > > Starting MySQL database server: mysqld . . . . . . . . . . . . . . > failed! > > invoke-rc.d: initscript mysql, action "start" failed. > > 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 > > > > I have mounted /proc and /dev/pts to the chroot. Am I missing anything > > else? > > I can't seem to find a good mysql chroot example on the web - many of > them > > work by installing mysql and then moving it to the chroot (won't for for > > me > > as I have a 64 bit system) or compiling from source. i could do that, but > > I > > was hoping not to have to. > > > > Thanks! > > > > Mark > > _______________________________________________ > > PLUG mailing list > > [email protected] > > http://lists.pdxlinux.org/mailman/listinfo/plug > > > > Tim > -- > Timothy J. Bruce > > visit my Website at: http://www.tbruce.com > Registered Linux User #325725 > > > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug > _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
