On Sat, Jul 16, 2005 at 02:14:26PM -0400, sean finney wrote:
> hi christophe,
Hi Sean,
> 
> On Fri, Jul 15, 2005 at 04:48:12PM +0200, Christophe Nowicki wrote:
> > Stopping MySQL database server: mysqld.
> > chgrp: changing group of `/var/lib/mysql/.journal': Operation not
> > permitted
> > dpkg: error processing
> > /var/cache/apt/archives/mysql-server_4.0.24-10_i386.deb (--unpack):
> >  subprocess pre-installation script returned error exit status 123
> > Stopping MySQL database server: mysqld.
> > Errors were encountered while processing:
> >  /var/cache/apt/archives/mysql-server_4.0.24-10_i386.deb
> > E: Sub-process /usr/bin/dpkg returned an error code (1)
> > 
> > I suggest to ignore chgrp retrurn value and continue the
> > installation/upgrade process.
> 
> looks like this is being done in the preinst script:
> 
> find $DATADIR -follow -not -group mysql -print0 \
>   | xargs -0 --no-run-if-empty chgrp mysql
> 
> which could easily be fixed with a "set -e" or an "|| true".  problem
> is, you won't see this fix coming into sarge for a long time, if ever.
> so, looks like we have another bug to leave open for posterity.
You can leave this bug open, the title is clear and people with the same
problem will find the solution quickly.
> 
> however, i think you should be able to work around this with something
> similar to the following:
> 
> # umount /var/lib/mysql
> # mount -t ext2 /var/lib/mysql
> # apt-get install mysql-server
> # /etc/init.d/mysql-server stop
> # umount /var/lib/mysql
> # mount /var/lib/mysql
> 
> might want to back up your data "just in case" anyway, but i'm pretty
> sure it should work.
> 
I confirm, it's working and you dont need to mount la partition as ext2.
Just umount the data directory and run dpkg again :

# umount /var/lib/mysql
# dpkg -a --reconfigure
# mount /var/lib/mysql
# /etc/init.d/mysql-server restart

Thanks for your help.

Best Regards,


-- 
Nowicki Christophe / Easter-eggs
44-46 rue de l'Ouest  -  75014 Paris  -  France -  Metro Gaite
Phone: +33 (0) 1 43 35 00 37    -   Fax: +33 (0) 1 43 35 00 76
mailto:[EMAIL PROTECTED]  -  http://www.easter-eggs.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to