[SOLVED] apt has an issue I cannot solve :(

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

[SOLVED] apt has an issue I cannot solve :(

Post by Chris Corbyn »

Code: Select all

w3style.co.uk:~# apt-get -s install php5
Reading Package Lists... Done
Building Dependency Tree... 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.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  php5: Depends: libapache2-mod-php5 (>= 5.2.1-0.dotdeb.2) but it is not going to be installed or
                 libapache-mod-php5 (>= 5.2.1-0.dotdeb.2) but it is not going to be installed or
                 php5-cgi (>= 5.2.1-0.dotdeb.2) but it is not going to be installed
E: Broken packages
w3style.co.uk:~# /etc/init.d/apache2 stop
Stopping web server: Apache2.
w3style.co.uk:~# apt-get update
Hit http://the.earth.li sarge/main Packages
Hit http://the.earth.li sarge/main Release                                      
Hit http://packages.dotdeb.org stable/all Packages                              
Hit http://packages.dotdeb.org stable/all Release                             
Hit http://packages.dotdeb.org stable/all Sources                             
Hit http://packages.dotdeb.org stable/all Release                             
Hit http://security.debian.org sarge/updates/main Packages                    
Hit http://security.debian.org sarge/updates/main Release
Reading Package Lists... Done
w3style.co.uk:~# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages have been kept back:
  libmysqlclient15off mysql-client-5.0 mysql-server-5.0
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
w3style.co.uk:~# apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
The following packages have been kept back:
  libmysqlclient15off mysql-client-5.0 mysql-server-5.0
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
w3style.co.uk:~#
This is the server I run SwiftMailer from and SwiftMailer.org is currently down. This arose after apt kept telling me there were upgrades available but it was keeping them back. On the debian website it says that this is just because I need to dist-upgrade, so I did! That's what's broken it. dist-upgrade uninstalled php5, then apache, then re-installed apache again.

I'm lost :( I've rebooted the whole machine and everything.
Last edited by Chris Corbyn on Mon May 07, 2007 5:58 am, edited 1 time in total.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

I'm getting stressed. I'll pay someone whatever I have available in PayPal (not much, £80 GBP or something) if they can log on and fix this. Following the unmet dependencies just leads me to more and more and more and more unmet deps. I could cry :cry:
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

I know this sounds stupid but I will take the plunge anyway. Hey even experts sometimes don't think of the simple things... I take it you have no apache installed or can you remove it totally and install a version you know works from scratch rather than use update.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

CoderGoblin wrote:I know this sounds stupid but I will take the plunge anyway. Hey even experts sometimes don't think of the simple things... I take it you have no apache installed or can you remove it totally and install a version you know works from scratch rather than use update.
Apache is running, it's just sending PHP files as plain text because PHP is not installed (due to conflicts). I tried removing apache, then installing it again which does work, but I meet the same conflicts upon trying to install php5. I'm building PHP5 from source into /usr/local/php5 for now :( Nightmare.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

I think some of my deb sources point to etch and some point to sarge which is where this conflict is occurring. I've updated all to etch but I have this horrible feeling that because it's not a real server (it runs inside a virtual machine) it my not work when restarted.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

*sigh* Fixed. I don't wanna have to do that too often! It was to do with conflicts between etch and sarge sources because the dotdeb lists had moved to etch but I explicitly specified sarge everywhere else. I have one or two issues (after already fixiing a load) but they are basic problems (such as my IMAP server not allowing logins) I caused myself in the process of trying to solve this.
Post Reply