I'm currently working in Ubuntu 11.04

I tried installing

sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin

But its throwing me an error

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php5-mysql : Depends: php5-common (= 5.3.5-1ubuntu7.2) but 5.3.6-13ubuntu3.1 is to be installed
E: Broken packages

I tried installing or updating php5-common but it tells me im already on the newest version. I dont know what else to do. I'm a begginer in Ubuntu.

link|improve this question
php 5.3.6-13ubuntu3.1 looks more like Uuntu 11.10. You haven't been mixing packages/repositories? – andol Oct 15 '11 at 6:58
well... i dont know, dont tihnk so. Although i did get the option to install 11.10, i started it but i stopped it right in the beggining. Do you think that could be it? should i finish the installation? – Julio Oct 15 '11 at 7:06
What does your /etc/apt/sources.list say? Does it contain references to natty or to oneiric? – andol Oct 15 '11 at 7:39
it has natty references – Julio Oct 15 '11 at 7:43
1  
Have you done an "apt-get update" since you aborted the upgrade? If not, do so and then try installing those php packages again. – andol Oct 15 '11 at 11:02
feedback

1 Answer

The reason you have this problem, is because you've started an upgrade to 11.10, and interrupted it. You may have other problems as well, because of this.

It will probably be fixed by completing the upgrade (and thus also dealing with any other conflicts you may have left due to partial upgrade) - or you can try to revert entirely to the natty packages like this;

sudo apt-get remove libapache2-mod-auth-mysql php5-mysql phpmyadmin apache2 libapache2-mod-php5
sudo apt-get update
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin apache2 libapache2-mod-php5
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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