Weblog entry #120 for Steve
Today I released my first two security advisories as a full member of the security team, with help from Joey + Moritz. They would have been released on Friday only the timing was bad to get everything organised.
These were DSA 1131 - apache and DSA 1132 - apache2 for the mod_rewrite bug.
Now I have to remember not to become evil and root all your boxes ;)
Comments on this Entry
but they break here :(
root@tux:~# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded:
apache
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0B/387kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n]
Preconfiguring packages ...
(Reading database ...
43698 files and directories currently installed.)
Preparing to replace apache 1.3.33-6sarge1 (using .../apache_1.3.33-6sarge2_i386.deb) ...
Stopping web server: apacheNo process in pidfile `/var/run/apache.pid' found running; none killed.
.
Unpacking replacement apache ...
dpkg: error processing /var/cache/apt/archives/apache_1.3.33-6sarge2_i386.deb (--unpack):
unable to install (supposed) new info file `/var/lib/dpkg/tmp.ci/postinst': Is a directory
Errors were encountered while processing:
/var/cache/apt/archives/apache_1.3.33-6sarge2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any idea as to what is going on and how to solve it?
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
It seems you have two errors:
Preparing to replace apache 1.3.33-6sarge1 (using .../apache_1.3.33-6sarge2_i386.deb) ... Stopping web server: apacheNo process in pidfile `/var/run/apache.pid' found running; none killed. .
That means that there is a PID file for Apache 1.3.x present, but there is no matching process. Harmleess.
dpkg: error processing /var/cache/apt/archives/apache_1.3.33-6sarge2_i386.deb (--unpack): unable to install (supposed) new info file `/var/lib/dpkg/tmp.ci/postinst': Is a directory Errors were encountered while processing: /var/cache/apt/archives/apache_1.3.33-6sarge2_i386.deb
The way I read that is either that you have a corrupt file and that it is trying to unpack the postinst file as a directory or that there is an issue with an info file being treated as a directory?
Hard to say what is going wrong.
To be honest I'd probably run:
apt-get remove apache apt-get install --reinstall apache
I've not had any other reports of breakage, so assuming it is a corrupt download seems sensible enough so far...
[ Parent | Reply to this comment ]
Removing apache ...
dpkg: error processing apache (--remove):
unable to delete control info file `/var/lib/dpkg/info/apache.postinst': Is a directory
Errors were encountered while processing:
apache
E: Sub-process /usr/bin/dpkg returned an error code (1)
mmmm
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
That is broken!
The file /var/lib/dpkg/info/apache.postinst is a file in the official package and not a directory.
Run:
rm -rf /var/lib/dpkg/info/apache.postinst echo "#!/bin/sh" > /var/lib/dpkg/info/apache.postinst chmod 755 /var/lib/dpkg/info/apache.postinst
Then try again.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
Great!
[ Parent | Reply to this comment ]
Do you have such a file? Could you post it somewhere so that i can get it and test with it?
[ Parent | Reply to this comment ]
apt-get -f install
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
If a preinst or postinst file is corrupt then this will not help - since adding, removing, or upgrading the package will execute those scripts .. and if they fail then nothing will help.
Still it seems like Oxtan got it sorted now :)
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up apache (1.3.34-2ubuntu0.1) ...
* Starting apache 1.3 web server... [fail]
invoke-rc.d: initscript apache, action "start" failed.
dpkg: error processing apache (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
apache
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@samkon:/home/samkon#
it gives the same error every time :)
I can not remove,install or reinstall it :(
[ Parent | Reply to this comment ]
[code] apt-get remove --purge apache[/code]
and it was removed. So I installed apache2 packet. But when I try to run my php files on my browser, it does'nt works, it shows me "save to disk" window.
Someone said that php can not see the extensions. How can I solve this problem?
PS: I installed php+apache+mysql by this codes;
sudo apt-get update
sudo apt-get install apache2
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install libapache2-mod-php5
sudo apt-get install mysql-client-5.0
sudo apt-get install mysql-server-5.0
sudo apt-get install php5
sudo apt-get install php5-mysql
sudo apt-get install phpmyadmin
PS-2: after tihs codes mysql did not work. it showed me an error about root access. And I solved this problem too by this codes; (you should be root)
1-)$mysql -u root
2-)mysql>UPDATE mysql.user SET Password=PASSWORD('sizinşifreniz') WHERE User='root';
3-mysql>FLUSH PRIVILEGES;
4-)mysql>quit;
[ Parent | Reply to this comment ]
[code]
# This is here for backwards compatability reasons and to support
# installing 3rd party modules directly via apxs2, rather than
# through the /etc/apache2/mods-{available,enabled} mechanism.
#
#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so
[/code]
what should I do now? Thanks..
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]