cannot fix broken mysql install

Asked by chris

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_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"
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/apt/lists/lock
flavia@buttercup:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
flavia@buttercup:~$
flavia@buttercup:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
flavia@buttercup:~$
flavia@buttercup:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
flavia@buttercup:~$ sudo rm -rf /var/lib/dpkg/updates/*
flavia@buttercup:~$
flavia@buttercup:~$ sudo rm -rf /var/lib/apt/lists
flavia@buttercup:~$
flavia@buttercup:~$ sudo mkdir /var/lib/apt/lists/partial
mkdir: cannot create directory `/var/lib/apt/lists/partial': No such file or directory
flavia@buttercup:~$
flavia@buttercup:~$ sudo mkdir /var/lib/apt/lists
flavia@buttercup:~$
flavia@buttercup:~$ sudo mkdir /var/lib/apt/lists/partial
flavia@buttercup:~$
flavia@buttercup:~$ sudo rm /var/cache/apt/*.bin
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-cluster-client: Depends: mysql-cluster-client-5.1 but it is not installable
  mysql-cluster-server: Depends: mysql-cluster-server-5.1 but it is not installable
  mysql-testsuite: Depends: mysql-server but it is not installable
                   Depends: mysql-client but it is not installable
E: Unmet dependencies. Try using -f.
flavia@buttercup:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Get:1 http://dl.google.com stable Release.gpg [189B]
Get:2 http://dl.google.com stable Release [2544B]
Get:3 http://dl.google.com stable/main Packages [1082B]
Get:4 http://archive.ubuntu.com lucid Release.gpg [189B]
Get:5 http://archive.ubuntu.com lucid-updates Release.gpg [198B]
Get:6 http://archive.ubuntu.com lucid-security Release.gpg [198B]
Get:7 http://archive.ubuntu.com lucid Release [57.2kB]
Get:8 http://archive.canonical.com lucid Release.gpg [198B]
Get:9 http://archive.canonical.com lucid Release [8215B]
Get:10 http://archive.ubuntu.com lucid-updates Release [44.7kB]
Get:11 http://archive.canonical.com lucid/partner Packages [11.8kB]
Get:12 http://archive.ubuntu.com lucid-security Release [38.5kB]
Get:13 http://archive.ubuntu.com lucid/main Packages [1386kB]
Get:14 http://archive.ubuntu.com lucid/restricted Packages [6208B]
Get:15 http://archive.ubuntu.com lucid/main Sources [659kB]
Get:16 http://archive.ubuntu.com lucid/restricted Sources [3775B]
Get:17 http://archive.ubuntu.com lucid/universe Packages [5448kB]
Get:18 http://archive.ubuntu.com lucid/universe Sources [3165kB]
Get:19 http://archive.ubuntu.com lucid/multiverse Packages [180kB]
Get:20 http://archive.ubuntu.com lucid/multiverse Sources [119kB]
Get:21 http://archive.ubuntu.com lucid-updates/main Packages [339kB]
Get:22 http://archive.ubuntu.com lucid-updates/restricted Packages [3240B]
Get:23 http://archive.ubuntu.com lucid-updates/main Sources [133kB]
Get:24 http://archive.ubuntu.com lucid-updates/restricted Sources [1443B]
Get:25 http://archive.ubuntu.com lucid-updates/universe Packages [146kB]
Get:26 http://archive.ubuntu.com lucid-updates/universe Sources [56.7kB]
Get:27 http://archive.ubuntu.com lucid-updates/multiverse Packages [7373B]
Get:28 http://archive.ubuntu.com lucid-updates/multiverse Sources [3669B]
Get:29 http://archive.ubuntu.com lucid-security/main Packages [97.3kB]
Get:30 http://archive.ubuntu.com lucid-security/restricted Packages [14B]
Get:31 http://archive.ubuntu.com lucid-security/main Sources [34.9kB]
Get:32 http://archive.ubuntu.com lucid-security/restricted Sources [14B]
Get:33 http://archive.ubuntu.com lucid-security/universe Packages [47.5kB]
Get:34 http://archive.ubuntu.com lucid-security/universe Sources [12.9kB]
Get:35 http://archive.ubuntu.com lucid-security/multiverse Packages [2013B]
Get:36 http://archive.ubuntu.com lucid-security/multiverse Sources [655B]
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-server:
 mysql-cluster-server depends on mysql-cluster-server-5.1; however:
  Package mysql-cluster-server-5.1 is not installed.
dpkg: error processing mysql-cluster-server (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mysql-cluster-client:
 mysql-cluster-client depends on mysql-cluster-client-5.1; however:
  Package mysql-cluster-client-5.1 is not installed.
dpkg: error processing mysql-cluster-client (--configure):
 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-cluster-server
 mysql-cluster-client
 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-dataengines-workspace kdepim-runtime libprocessui4 libtaskmanager4
  libkscreensaver5 libsolidcontrolifaces4 linux-headers-2.6.32-21
  plasma-widgets-workspace libplasma-geolocation-interface4 libksgrd4
  linux-headers-2.6.32-21-generic kdebase-workspace-bin libkworkspace4
  libplasmagenericshell4 libkfontinst4 libkephal4 kdebase-workspace-data
  ksysguardd libplasmaclock4 libweather-ion4 kdebase-workspace-kgreet-plugins
  libsolidcontrol4 akonadi-server libplasma-applet-system-monitor4
  libprocesscore4
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  mysql-cluster-client-5.1 mysql-cluster-server-5.1
Suggested packages:
  libdbd-mysql-perl tinyca
The following NEW packages will be installed:
  mysql-cluster-client-5.1 mysql-cluster-server-5.1
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://archive.ubuntu.com/ubuntu/ lucid/universe mysql-cluster-client-5.1 7.0.9-1ubuntu7 [4261kB]
Get:2 http://archive.ubuntu.com/ubuntu/ lucid/universe mysql-cluster-server-5.1 7.0.9-1ubuntu7 [29.3MB]
Fetched 33.5MB in 20s (1617kB/s)
Preconfiguring packages ...
(Reading database ... 302623 files and directories currently installed.)
Unpacking mysql-cluster-client-5.1 (from .../mysql-cluster-client-5.1_7.0.9-1ubuntu7_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/mysql-cluster-client-5.1_7.0.9-1ubuntu7_i386.deb (--unpack):
 trying to overwrite '/usr/bin/mysql', which is also in package mysql-client-core-5.1 0:5.1.41-3ubuntu12.6
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Unpacking mysql-cluster-server-5.1 (from .../mysql-cluster-server-5.1_7.0.9-1ubuntu7_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/mysql-cluster-server-5.1_7.0.9-1ubuntu7_i386.deb (--unpack):
 trying to overwrite '/usr/bin/my_print_defaults', which is also in package mysql-server-core-5.1 0:5.1.41-3ubuntu12.6
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Processing triggers for ureadahead ...
Errors were encountered while processing:
 /var/cache/apt/archives/mysql-cluster-client-5.1_7.0.9-1ubuntu7_i386.deb
 /var/cache/apt/archives/mysql-cluster-server-5.1_7.0.9-1ubuntu7_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
flavia@buttercup:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Hit http://archive.canonical.com lucid Release.gpg
Get:1 http://dl.google.com stable Release.gpg [189B]
Hit http://archive.canonical.com lucid Release
Get:2 http://dl.google.com stable Release [2544B]
Get:3 http://dl.google.com stable/main Packages [1082B]
Hit http://archive.canonical.com lucid/partner Packages
Hit http://archive.ubuntu.com lucid Release.gpg
Hit http://archive.ubuntu.com lucid-updates Release.gpg
Hit http://archive.ubuntu.com lucid-security Release.gpg
Hit http://archive.ubuntu.com lucid Release
Hit http://archive.ubuntu.com lucid-updates Release
Hit http://archive.ubuntu.com lucid-security Release
Hit http://archive.ubuntu.com lucid/main Packages
Hit http://archive.ubuntu.com lucid/restricted Packages
Hit http://archive.ubuntu.com lucid/main Sources
Hit http://archive.ubuntu.com lucid/restricted Sources
Hit http://archive.ubuntu.com lucid/universe Packages
Hit http://archive.ubuntu.com lucid/universe Sources
Hit http://archive.ubuntu.com lucid/multiverse Packages
Hit http://archive.ubuntu.com lucid/multiverse Sources
Hit http://archive.ubuntu.com lucid-updates/main Packages
Hit http://archive.ubuntu.com lucid-updates/restricted Packages
Hit http://archive.ubuntu.com lucid-updates/main Sources
Hit http://archive.ubuntu.com lucid-updates/restricted Sources
Hit http://archive.ubuntu.com lucid-updates/universe Packages
Hit http://archive.ubuntu.com lucid-updates/universe Sources
Hit http://archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://archive.ubuntu.com lucid-updates/multiverse Sources
Hit http://archive.ubuntu.com lucid-security/main Packages
Hit http://archive.ubuntu.com lucid-security/restricted Packages
Hit http://archive.ubuntu.com lucid-security/main Sources
Hit http://archive.ubuntu.com lucid-security/restricted Sources
Hit http://archive.ubuntu.com lucid-security/universe Packages
Hit http://archive.ubuntu.com lucid-security/universe Sources
Hit http://archive.ubuntu.com lucid-security/multiverse Packages
Hit http://archive.ubuntu.com lucid-security/multiverse Sources
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-cluster-client: Depends: mysql-cluster-client-5.1 but it is not installed
  mysql-cluster-server: Depends: mysql-cluster-server-5.1 but it is not installed
  mysql-testsuite: Depends: mysql-server
                   Depends: mysql-client
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:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.