kanotix.com

General Support - Todays D-U apache problems

josk - 07.10.2006, 07:35 Uhr
Titel: Todays D-U apache problems
Hi,

I have problems with todays d-u. Im not sure how to solve this one. Any tips?


apt-get dist-upgrade
Code:
< export DEBIAN_FRONTEND; apt-get upgrade;echo RESULT=$?
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  apache2-mpm-prefork: Depends: apache2.2-common (= 2.2.3-1) but it is not installed
E: Unmet dependencies. Try using -f.
RESULT=100


apt-get -f install
Code:
< export DEBIAN_FRONTEND; apt-get -f install;echo RESULT=$?
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  apache2.2-common
The following NEW packages will be installed:
  apache2.2-common
0 upgraded, 1 newly installed, 0 to remove and 218 not upgraded.
20 not fully installed or removed.
Need to get 0B/917kB of archives.
After unpacking 3314kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 124264 files and directories currently installed.)
Unpacking apache2.2-common (from .../apache2.2-common_2.2.3-1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/apache2.2-common_2.2.3-1_i386.deb (--unpack):
 trying to overwrite `/usr/share/man/man8/suexec.8.gz', which is also in package apache-common
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/apache2.2-common_2.2.3-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
RESULT=100

stryder - 07.10.2006, 07:57 Uhr
Titel: RE: Todays D-U apache problems
There was a warning here:

http://kanotix.com/PNphpBB2-viewtopic-t-21411.html

but no solution.
titan - 07.10.2006, 09:17 Uhr
Titel: RE: Todays D-U apache problems
I had the same problem yesterday but I don't use Apache so just removed the conflicting packages and the DU completed. They can always be re installed later, when the bug is sorted if needed.
josk - 07.10.2006, 11:40 Uhr
Titel: RE: Todays D-U apache problems
Argh, I didnt notice that warning.
h2 - 07.10.2006, 19:56 Uhr
Titel: RE: Todays D-U apache problems
Just put the apache and php stuff on hold following what I posted here. I should have put a link to that posting in the general thread as well.

http://kanotix.com/PNphpBB2-viewtopic-t-21411.html

The solution is to just put all your apache2 and php packages on hold, that short bash thing will do that, but double check your install to see if you have extra modules and the apache2 package itself installed.

One key point however: the fix I made does not fix the issue after it's happened, it simply prevents it from happening in the first place, which means you have to run it before the dist-upgrade, not after. I'm just going to leave my apache2 and php stuff on hold for a few weeks, it's not like I need any of that updated anyway.
Swynndla - 07.10.2006, 20:56 Uhr
Titel: RE: Todays D-U apache problems
Those of you who only did an apt-get upgrade (instead of dist-upgrade) were yet again unaffected, as apache was held back automatically.
boomshalek - 29.10.2006, 16:07 Uhr
Titel:
and what can i do if i have already done a dist-upgrade. i am waiting since Oktober the 7th to get it fixed again. but it isn't yet. It blocks my whole apt-get-system ...
titan - 29.10.2006, 16:51 Uhr
Titel:
boomshalek hat folgendes geschrieben::
and what can i do if i have already done a dist-upgrade. i am waiting since Oktober the 7th to get it fixed again. but it isn't yet. It blocks my whole apt-get-system ...


Do you mean you have been running with an unfinished DU since 7th Oct. Do you run Apache, most users don,t. so you can remove the conflicting package, which for me allowed the DU to complete
apt-get --purge remove apache-common then your DU should complete.
boomshalek - 29.10.2006, 22:25 Uhr
Titel:
if it was that easy buddy ...
Zitat:
apt-get remove apache-common
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
Paket apache-common ist nicht installiert, wird also auch nicht entfernt
Sie möchten wahrscheinlich »apt-get -f install« aufrufen, um dies zu korrigieren:
Die folgenden Pakete haben nichterfüllte Abhängigkeiten:
libapache-mod-php4: Hängt ab: apache-common (>= 1.3.34) soll aber nicht installiert werden
E: Nichterfüllte Abhängigkeiten. Versuchen Sie »apt-get -f install« ohne jeglich Pakete (oder geben Sie eine Lösung an).
root@mybox:/home/schitt# apt-get -f install
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
Abhängigkeit werden korrigiert... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
apache-common
Vorgeschlagene Pakete:
apache apache-ssl apache-perl
Die folgenden NEUEN Pakete werden installiert:
apache-common
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 516 nicht aktualisiert.

piper - 30.10.2006, 01:25 Uhr
Titel:
Maybe try (I am no expert on this)

update-rc.d -f apache remove

rm -f /var/lib/dpkg/info/apache2-common.postrm.

apt-get remove --purge apache

apt-get remove --purge apache-ssl

If none of that works try

apt-get -s remove apache-common libapache-mod-php4 libzzip-0-12 php4 php4-common ucf

or php5

or wait for others advise Winken
mzilikazi - 30.10.2006, 04:31 Uhr
Titel:
Well one way to solve this (although some may recommend not doing this) is:
Code:
dpkg -i --force-overwrite /var/cache/apt/archives/apache2.2-common_2.2.3-1_i386.deb


But I also never do dist-upgrade only apt-get upgrade and thusly am not affected by this. You'd be amazed how often you miss out on broken things in Sid by not doing a dist-upgrade.
slh - 30.10.2006, 09:26 Uhr
Titel:
Never use force in combination with dpkg, there's a reason for those packages to conflict - either fix it (apache 1.x and php4 XOR apache 2.2 and php5) or let hell break loose.
dweebman - 30.10.2006, 19:13 Uhr
Titel:
I had this problem a couple of weeks ago. After fixing my system with help from the gang Winken , I fixed apache.

Goto http://xampp.org and download. This installs apache2, mysql, php,perl, and more into /opt/lampp directory. This is self contained and allows me to run apache2 and apps until fix comes out. Works quite well. However, you may not want to have two installs of apache.

I haven't had any problems since so it may work for you. My two cents.
slh - 30.10.2006, 21:46 Uhr
Titel:
xampp is even more stupid on debian systems, as it neither fits into a linux environment - especially not debian - nor is covered by security support or integration into other packages.
h2 - 30.10.2006, 22:00 Uhr
Titel:
I wince every time I see xampp mentioned as a solution, that's really much more a windows thing to me, for windows users. Mysql, php,perl, apache, these are designed to be core features of any linux distro, especially debian stuff.
h2 - 30.10.2006, 22:22 Uhr
Titel:
I have no idea of how to fix this after the fact by the way, when it happened to me, I gave up immediately and reinstalled my / from backup, as I mentioned above, then I put all the apache/php stuff on hold, where it still sits.

One of these days I'll see if I can figure out a reasonably pain free upgrade path for this apache stuff, which will I am almost certain involve numerous restores from backup, but currently I like not having to deal with this particular issue.
slh - 31.10.2006, 09:57 Uhr
Titel:
The only "pain free" (not really) way is to purge the existing setup and recreate the configs from scratch, because the whole configuration part differs quite a bit (it might technically work, but...), the same goes for apache2-common --> apache2.2-common which can't be done properly without purging/ reinstalling.
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007