cannot fix broken mysql install
Hey Folks.
Trying to install mysql using Synaptic, no luck - now I'm stuck and can't update my machine either.
I've run a series of commands that were recommended when Synaptic fails to fix a broken install. Here is what I have. Please advise
flavia@buttercup:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
flavia@buttercup:~$ uname -a
Linux buttercup 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:48:22 UTC 2010 i686 GNU/Linux
flavia@buttercup:~$ sudo rm /var/lib/
flavia@buttercup:~$ sudo cp -arf /var/lib/dpkg /var/lib/
flavia@buttercup:~$
flavia@buttercup:~$ sudo cp /var/lib/
flavia@buttercup:~$
flavia@buttercup:~$ sudo cp /var/lib/
flavia@buttercup:~$ sudo rm -rf /var/lib/
flavia@buttercup:~$
flavia@buttercup:~$ sudo rm -rf /var/lib/apt/lists
flavia@buttercup:~$
flavia@buttercup:~$ sudo mkdir /var/lib/
mkdir: cannot create directory `/var/lib/
flavia@buttercup:~$
flavia@buttercup:~$ sudo mkdir /var/lib/apt/lists
flavia@buttercup:~$
flavia@buttercup:~$ sudo mkdir /var/lib/
flavia@buttercup:~$
flavia@buttercup:~$ sudo rm /var/cache/
flavia@buttercup:~$
flavia@buttercup:~$ LANG=C;sudo apt-get clean
flavia@buttercup:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
flavia@buttercup:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
mysql-
mysql-
mysql-testsuite: Depends: mysql-server but it is not installable
E: Unmet dependencies. Try using -f.
flavia@buttercup:~$ LANG=C;sudo apt-get update -o APT::Cache-
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Fetched 12.0MB in 10s (1183kB/s)
Reading package lists... Done
flavia@buttercup:~$ sudo dpkg --clear-avail
flavia@buttercup:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of mysql-cluster-
mysql-
Package mysql-cluster-
dpkg: error processing mysql-cluster-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mysql-cluster-
mysql-
Package mysql-cluster-
dpkg: error processing mysql-cluster-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mysql-testsuite:
mysql-testsuite depends on mysql-server; however:
Package mysql-server is not installed.
mysql-testsuite depends on mysql-client; however:
Package mysql-client is not installed.
dpkg: error processing mysql-testsuite (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-
mysql-
mysql-testsuite
flavia@buttercup:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
plasma-
libkscreensaver5 libsolidcontrol
plasma-
linux-
libplasmagene
ksysguardd libplasmaclock4 libweather-ion4 kdebase-
libsolidcontrol4 akonadi-server libplasma-
libprocesscore4
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
mysql-
Suggested packages:
libdbd-mysql-perl tinyca
The following NEW packages will be installed:
mysql-
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 33.5MB of archives.
After this operation, 73.8MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://
Get:2 http://
Fetched 33.5MB in 20s (1617kB/s)
Preconfiguring packages ...
(Reading database ... 302623 files and directories currently installed.)
Unpacking mysql-cluster-
dpkg: error processing /var/cache/
trying to overwrite '/usr/bin/mysql', which is also in package mysql-client-
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Unpacking mysql-cluster-
dpkg: error processing /var/cache/
trying to overwrite '/usr/bin/
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Processing triggers for ureadahead ...
Errors were encountered while processing:
/var/cache/
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
flavia@buttercup:~$ LANG=C;sudo apt-get update -o APT::Cache-
Hit http://
Get:1 http://
Hit http://
Get:2 http://
Get:3 http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Fetched 3815B in 1s (2360B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
mysql-
mysql-
mysql-testsuite: Depends: mysql-server
E: Unmet dependencies. Try using -f.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: