昨日の続き。
Ubuntu MIEにapt-getでMySQLをインストールをしようとしたらエラーが出た。
Reading package lists... Done
Building dependency tree Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
mysql-client-5.0
Suggested packages:
mysql-doc-5.0
Recommended packages:
libterm-readkey-perl
The following NEW packages will be installed:
mysql-client-5.0
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B/7835kB of archives.
After this operation, 18.0MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously deselected package mysql-client-5.0.
(Reading database ... 88448 files and directories currently installed.)
Unpacking mysql-client-5.0 (from .../mysql-client-5.0_5.0.51a-3ubuntu5.1_lpia.deb) ...
Setting up mysql-client-5.0 (5.0.51a-3ubuntu5.1) ...
Setting up mysql-server-5.0 (5.0.51a-3ubuntu5.1) ...
/etc/lsb-base-logging.sh: line 84: INITOUTPUT: unbound variable
invoke-rc.d: initscript mysql, action "stop" failed.
/etc/lsb-base-logging.sh: line 84: INITOUTPUT: unbound variable
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
Errors were encountered while processing:
mysql-server-5.0
E: Sub-process /usr/bin/dpkg returned an error code (1)
調べてみるとbugらしいという情報があった。
こちらのサイトを参考に /etc/lsb-base-logging.sh を修正。
root@ashika-umpc:/home/ashika# diff -C3 /etc/lsb-base-logging.sh.20090705 /etc/lsb-base-logging.sh
*** /etc/lsb-base-logging.sh.20090705 2008-09-17 05:06:56.000000000 +0900
--- /etc/lsb-base-logging.sh 2009-07-05 12:44:43.000000000 +0900
***************
*** 81,87 ****
log_to_console log_daemon_msg "$@"
! if [ "$INITOUTPUT" = "yes" ]; then
if log_use_fancy_output && $TPUT xenl >/dev/null 2>&1; then
COLS=`$TPUT cols`
if [ "$COLS" ] && [ "$COLS" -gt 6 ]; then
--- 81,87 ----
log_to_console log_daemon_msg "$@"
! #if [ "$INITOUTPUT" = "yes" ]; then
if log_use_fancy_output && $TPUT xenl >/dev/null 2>&1; then
COLS=`$TPUT cols`
if [ "$COLS" ] && [ "$COLS" -gt 6 ]; then
***************
*** 111,117 ****
echo " * $@"
COL=
fi
! fi
}
log_progress_msg () {
--- 111,117 ----
echo " * $@"
COL=
fi
! #fi
}
log_progress_msg () {
***************
*** 133,139 ****
log_to_console log_end_msg "$@"
! if [ "$INITOUTPUT" = "yes" ]; then
if [ "$COL" ] && [ -x "$TPUT" ]; then
printf " "
$TPUT hpa $COL
--- 133,139 ----
log_to_console log_end_msg "$@"
! #if [ "$INITOUTPUT" = "yes" ]; then
if [ "$COL" ] && [ -x "$TPUT" ]; then
printf " "
$TPUT hpa $COL
***************
*** 153,159 ****
echo " ...fail!"
fi
fi
! fi
return $1
}
--- 153,159 ----
echo " ...fail!"
fi
fi
! #fi
return $1 }
修正後 apt-get 叩いたらうまくいきました。
root@ashika-umpc:/home/ashika# apt-get install
Reading package lists... Done
Building dependency tree Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up mysql-server-5.0 (5.0.51a-3ubuntu5.1) ...
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [ OK ]
* Checking for corrupt, not cleanly closed and upgrade needing tables.
root@ashika-umpc:/home/ashika# ps auxww | grep mysql
root 7612 0.0 0.0 1756 536 ? S 12:46 0:00 /bin/sh /usr/bin/mysqld_safe
mysql 7746 1.1 1.5 126484 15388 ? Sl 12:46 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
root 7747 0.0 0.0 2904 736 ? S 12:46 0:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
root 7769 0.0 0.0 2988 760 pts/0 S+ 12:46 0:00 grep mysql
MIEってrootターミナルでしか操作できないのかな?@@