Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm not an advanced user of Linux and I tried to install work with database so I installed Mysql-server, I think I did same thing wrong so I get in trouble and now I cant install any thing and this what I get when I use apt-get -f install :

root@me:~# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  mysql-server mysql-server-5.5
Suggested packages:
  tinyca mailx
The following packages will be upgraded:
  mysql-server mysql-server-5.5
2 upgraded, 0 newly installed, 0 to remove and 194 not upgraded.
2 not fully installed or removed.
Need to get 0 B/8,737 kB of archives.
After this operation, 15.4 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of mysql-server-5.5:
 mysql-server-5.5 depends on mysql-server-core-5.5 (= 5.5.24-0ubuntu0.12.04.1); however:
  Version of mysql-server-core-5.5 on system is 5.5.28-0ubuntu0.12.04.3.
dpkg: error processing mysql-server-5.5 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.5; however:
  Package mysql-server-5.5 is not configured yet.
dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried to remove mysql-server but nothing happened.

share|improve this question
1  
Try removing mysql-server-core-5.5. Have you installed MySQL from anywhere other than the Ubuntu repositories? –  Flimm Dec 11 '12 at 17:59
    
I tried but it gives me this: root@me:~# apt-get -f remove mysql-server-core-5.5 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-server-5.5 : Depends: mysql-server-core-5.5 (= 5.5.24-0ubuntu0.12.04.1) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). –  mohammed ezzi Dec 12 '12 at 12:48
    
Try sudo apt-get -f remove mysql-server-core-5.5 mysql-server-5.5 –  Flimm Dec 12 '12 at 15:20
    
Hi I tried it but the problem is still there root@ezzimo0s:~# sudo apt-get -f remove mysql-server-core-5.5 mysql-server-5.5 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-server : Depends: mysql-server-5.5 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). –  mohammed ezzi Dec 12 '12 at 16:55
    
Then try sudo apt-get -f remove mysql-server-core-5.5 mysql-server-5.5 mysql-server-5.5 mysql-server. –  Flimm Dec 12 '12 at 18:00

1 Answer 1

up vote 0 down vote accepted

It seems likely that you have added third party repositories or PPAs to your system improperly. If I were you, I would only install packages from the official Ubuntu repositories using the Software Centre, Synaptic or apt-get.

To remove third party repositories and PPAs, follow these instructions or look at this question

  1. Open Ubuntu Software Centre.
  2. Click Edit, Software Sources...
  3. Click "Other Software" tab.
  4. Untick all the software sources in the list.

Once you are sure this has fixed the problem, you can re-enable each repository one by one until you narrow down the problematic repository. On the command-line, you'll need to run sudo apt-get update after modifying the software sources list.

You probably want to take a look at ppa-purge. It has the added benefit that it will uninstall packages originating from the PPA as well.

In your case, you need to uninstall at least these packages:

 sudo apt-get -f remove mysql-server-core-5.5 mysql-server-5.5 mysql-server-5.5 mysql-server

If you find all this confusing, I recommend you go to the Ubuntu IRC channel or UbuntuForums Absolute Beginner section. AskUbuntu is designed around asking one specific question for one specific answer at a time, and may not be exactly what you're looking for in this case.

share|improve this answer
    
Thank you Flimm, the problem is solved. –  mohammed ezzi Dec 13 '12 at 13:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.