Bug#230419: apache: will not install unless /etc/init.d/apache pre-exists
* David Morse | Tollef Fog Heen wrote: | * David Morse | abu:/var/cache/apt/archives# dpkg -i | apache_1.3.26-0woody3_i386.deb | | (Reading database ... 92942 files and directories currently installed.) | | Preparing to replace apache 1.3.26-0woody3 (using apache_1.3.26-0woody3_i386.deb) ... | You are upgrading or reinstalling, it seems? | | I had it installed a long time ago, but as far as I was able to judge, | it uninstalled as cleanly as it was coded to do. You probably ran dpkg --remove and rm -r /etc/apache /etc/init.d/apache. At least that's my guess. | | Unpacking replacement apache ... | | Setting up apache (1.3.26-0woody3) ... | | update-rc.d: /etc/init.d/apache: file does not exist | | dpkg: error processing apache (--install): | |subprocess post-installation script returned error exit status 1 ^ | | Errors were encountered while processing: | |apache | Of course not, if you have removed it. It's a conffile. Try | installing using dpkg -i --force-confmiss | apache_1.3.26-0woody3_i386.deb . | | Of course it should not overwrite the /etc/init.d/apache. That's not | at all what I was considering a bug. Removing a conffile is also a modification which needs to be preserved. | What I'm complaining about is that, unless /etc/init.d/apache | exists, BEFORE INSTALLING THE DEB, dpkg will error out of the | install. It's the postinst; that's run after the deb is unpacked. I agree that it can be confusing, but it's a feature of dpkg and not something apache can do about it. -- Tollef Fog Heen,''`. UNIX is user friendly, it's just picky about who its friends are : :' : `. `' `-
Bug#230419: apache: will not install unless /etc/init.d/apache pre-exists
On Sat, 31 Jan 2004, David Morse wrote: Maybe I apt-get remove'd apache, but forgot apache-common. I'm pretty sure I didn't use a non-apt-get technique to remove. apache-common doesn't contain the init script or the cronjobs so i don't think this is relevant in our case. Hey, can you mail me the default /etc/init.d/apache ? It is inside the .deb. Just unpack it with dpkg. But i would suggest you to use apt-get to remove/install packages other than dpkg. Since you are installing try this: apt-get --purge remove apache-common apt-get install apache and let me know if this will solve the problem No, it didn't, but on the other hand, extracting /etc/init.d/apache helped, so at least I'm rolling. hmmm.. i am afraid there is something seriously inconsistent in your system at this poing. Another potentially wierd thing in this setup, is that roxen2 is already running, and sitting on port 80. (I intend to run apache on 8080, eventually). this is not an issue... just change the Port/Listen entries in httpd.conf other apache will refuse to start since port 80 is already in use. If you would like, you can get ssh access to the machine and poke around. That would require me to have root access and to be able to perform tests installing/removing apache and i doubt you can provide that (of course you can than i will be glad to look at this problem [0]). But at this point in time i don't think it is an apache bug at all but something related to your system. Fabio [0] in case we can discuss this issue on private emails since there are ways that can ensure you some safety while performig this operations. -- Our mission: make IPv6 the default IP protocol We are on a mission from God - Elwood Blues http://www.itojun.org/paper/itojun-nanog-200210-ipv6isp/mgp4.html
Bug#230419: apache: will not install unless /etc/init.d/apache pre-exists
tags 230419 woody tags 230419 unreproducible tags 230419 moreinfo stop quit Hi David, i cannot reproduce this bug at all. Perhaps if you can provide a description of your environment would be more helpful. bin/bash-2.05a# dpkg -i apache-common_1.3.26-0woody3_i386.deb Selecting previously deselected package apache-common. (Reading database ... 14490 files and directories currently installed.) Unpacking apache-common (from apache-common_1.3.26-0woody3_i386.deb) ... Setting up apache-common (1.3.26-0woody3) ... bin/bash-2.05a# dpkg -i apache_1.3.26-0woody3_i386.deb (Reading database ... 14896 files and directories currently installed.) Preparing to replace apache 1.3.26-0woody3 (using apache_1.3.26-0woody3_i386.deb) ... Unpacking replacement apache ... Setting up apache (1.3.26-0woody3) ... Initializing apache config for immediate operation. [SNIP] Fabio -- Our mission: make IPv6 the default IP protocol We are on a mission from God - Elwood Blues http://www.itojun.org/paper/itojun-nanog-200210-ipv6isp/mgp4.html
Processed: Re: Bug#230419: apache: will not install unless /etc/init.d/apache pre-exists
Processing commands for [EMAIL PROTECTED]: tags 230419 woody Bug#230419: apache: will not install unless /etc/init.d/apache pre-exists There were no tags set. Tags added: woody tags 230419 unreproducible Bug#230419: apache: will not install unless /etc/init.d/apache pre-exists Tags were: woody Tags added: unreproducible tags 230419 moreinfo Bug#230419: apache: will not install unless /etc/init.d/apache pre-exists Tags were: unreproducible woody Tags added: moreinfo stop Stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)
Bug#230419: apache: will not install unless /etc/init.d/apache pre-exists
Linux abu 2.4.22 #1 Sun Sep 21 16:07:44 EDT 2003 i686 unknown. Woody with gnome 2 backport. A few months ago I had apt-got apache before...maybe the uninstall then wasn't clean, because ever since I've been getting mail from Cron: /etc/cron.daily/logrotate: error: error accessing /var/log/apache: No such file or directory error: apache:1 glob failed for /var/log/apache/*.log run-parts: /etc/cron.daily/logrotate exited with return code 1 Does this help? Hey, can you mail me the default /etc/init.d/apache ? Fabio Massimo Di Nitto wrote: tags 230419 woody tags 230419 unreproducible tags 230419 moreinfo stop quit Hi David, i cannot reproduce this bug at all. Perhaps if you can provide a description of your environment would be more helpful. bin/bash-2.05a# dpkg -i apache-common_1.3.26-0woody3_i386.deb Selecting previously deselected package apache-common. (Reading database ... 14490 files and directories currently installed.) Unpacking apache-common (from apache-common_1.3.26-0woody3_i386.deb) ... Setting up apache-common (1.3.26-0woody3) ... bin/bash-2.05a# dpkg -i apache_1.3.26-0woody3_i386.deb (Reading database ... 14896 files and directories currently installed.) Preparing to replace apache 1.3.26-0woody3 (using apache_1.3.26-0woody3_i386.deb) ... Unpacking replacement apache ... Setting up apache (1.3.26-0woody3) ... Initializing apache config for immediate operation. [SNIP] Fabio
Bug#230419: apache: will not install unless /etc/init.d/apache pre-exists
Fabio Massimo Di Nitto wrote: Hi David, On Sat, 31 Jan 2004, David Morse wrote: Linux abu 2.4.22 #1 Sun Sep 21 16:07:44 EDT 2003 i686 unknown. Woody with gnome 2 backport. A few months ago I had apt-got apache before...maybe the uninstall then wasn't clean, because ever since I've been getting mail from Cron: /etc/cron.daily/logrotate: error: error accessing /var/log/apache: No such file or directory error: apache:1 glob failed for /var/log/apache/*.log run-parts: /etc/cron.daily/logrotate exited with return code 1 Does this help? It clearly shows that there was a previous installation of apache that has not been purged correctly and I am not sure if that can create the problem you are facing. Maybe I apt-get remove'd apache, but forgot apache-common. I'm pretty sure I didn't use a non-apt-get technique to remove. Hey, can you mail me the default /etc/init.d/apache ? It is inside the .deb. Just unpack it with dpkg. But i would suggest you to use apt-get to remove/install packages other than dpkg. Since you are installing try this: apt-get --purge remove apache-common apt-get install apache and let me know if this will solve the problem No, it didn't, but on the other hand, extracting /etc/init.d/apache helped, so at least I'm rolling. Another potentially wierd thing in this setup, is that roxen2 is already running, and sitting on port 80. (I intend to run apache on 8080, eventually). If you would like, you can get ssh access to the machine and poke around.
Bug#230419: apache: will not install unless /etc/init.d/apache pre-exists
Package: apache Version: 1.3.26-0woody3 Severity: important Lets install apache abu:/var/cache/apt/archives# dpkg -i apache_1.3.26-0woody3_i386.deb (Reading database ... 92942 files and directories currently installed.) Preparing to replace apache 1.3.26-0woody3 (using apache_1.3.26-0woody3_i386.deb) ... Unpacking replacement apache ... Setting up apache (1.3.26-0woody3) ... update-rc.d: /etc/init.d/apache: file does not exist dpkg: error processing apache (--install): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: apache Can't do it. Hm. Well lets touch this initscript: abu:/var/cache/apt/archives# touch /etc/init.d/apache ; chmod 777 /etc/init.d/apache Now it goes through!: abu:/var/cache/apt/archives# dpkg -i apache_1.3.26-0woody3_i386.deb (Reading database ... 92942 files and directories currently installed.) Preparing to replace apache 1.3.26-0woody3 (using apache_1.3.26-0woody3_i386.deb) ... Unpacking replacement apache ... Setting up apache (1.3.26-0woody3) ... But unfortunately (for me) doesn't clobber the initscript. abu:/var/cache/apt/archives# cat /etc/init.d/apache abu:/var/cache/apt/archives# -- System Information Debian Release: 3.0 Architecture: i386 Kernel: Linux abu 2.4.22 #1 Sun Sep 21 16:07:44 EDT 2003 i686 Locale: LANG=C, LC_CTYPE=C Versions of packages apache depends on: ii apache-common 1.3.26-0woody3 Support files for all Apache webse ii dpkg 1.9.21 Package maintenance system for Deb ii libc6 2.2.5-11.5 GNU C Library: Shared libraries an ii libdb22:2.7.7.0-7The Berkeley database routines (ru ii libexpat1 1.95.2-6 XML parsing C library - runtime li ii logrotate 3.5.9-8Log rotation utility ii mime-support 3.18-1.3 MIME files 'mime.types' 'mailcap ii perl 5.6.1-8.3 Larry Wall's Practical Extraction ii perl [perl5] 5.6.1-8.3 Larry Wall's Practical Extraction