[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mysql Database installation problem



On 14/10/2007, anand@drtc.isibang.ac.in <anand@drtc.isibang.ac.in> wrote:
>
> I tried to install mysql-server-5.0 using apt-get and I got the following
> error-

Comments inline.

> The following NEW packages will be installed:
>   mysql-server-5.0

Your installing one package here.

> 0 upgraded, 1 newly installed, 0 to remove and 150 not upgraded.
> 1 not fully installed or removed.
> Need to get 0B/25.8MB of archives.
> After unpacking 71.1MB of additional disk space will be used.
> Preconfiguring packages ...
> Selecting previously deselected package mysql-server-5.0.
> (Reading database ... 202487 files and directories currently installed.)
> Unpacking mysql-server-5.0 (from
> .../mysql-server-5.0_5.0.32-7etch1_amd64.deb) ...
> Setting up php-sqlite3 (0.4-4) ...

But here dpkg has detected packages on your system in an unconfigured
state. possibly you previously tried to install something that
required this package but it was left unconfigured.

> Forcing reload of web server (apache2)...apache2: Could not reliably
> determine the server's fully qualified domain name, using 127.0.0.1 for
> ServerName
> httpd (no pid file) not running
> apache2: Could not reliably determine the server's fully qualified domain
> name, using 127.0.0.1 for ServerName
> (98)Address already in use: make_sock: could not bind to address [::]:80
> (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
> no listening sockets available, shutting down

This looks to me like you are running 2 instances of apache, perhaps
apache and apache2?

> Unable to open logs
>  failed!
> invoke-rc.d: initscript apache2, action "restart" failed.
> dpkg: error processing php-sqlite3 (--configure):
>  subprocess post-installation script returned error exit status 1
> Setting up mysql-server-5.0 (5.0.32-7etch1) ...
> Stopping MySQL database server: mysqld.
>
> Errors were encountered while processing:
>  php-sqlite3
> E: Sub-process /usr/bin/dpkg returned an error code (1)

dpkg is unable to configure the packages so it's dying - this AFAIK
has nothing to do with mysql not installing properly it looks to be
due to previous packages in an unconfigured state.

> What to do???Whats the problem??

try running
sudo dpkg --configure -a
to configure packages first before installing mysql.

If you don't need it you could try removing php-sqlite3 then doing a
configure then moving on to your installation of mysql.

Adrian

--
24x7x365 != 24x7x52 Stupid or bad maths?
<erno> hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.



Reply to: