[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache, PHP and Mysql on NSLU2



Ok to catch up.  Below is the output I get when I try to reinstall
debconf and perl.

SLUG:/home/aaron# apt-get install --reinstall debconf perl
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 2 not upgraded.
Need to get 3558kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.egr.msu.edu etch/main debconf 1.5.11 [146kB]
Get:2 http://ftp.egr.msu.edu etch/main perl 5.8.8-7 [3413kB]
Fetched 3558kB in 34s (103kB/s)
Use of uninitialized value in pattern match (m//) at
/usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm line 33, <> line 2.
Use of uninitialized value in pattern match (m//) at
/usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm line 48, <> line 2.
Can't fork at /usr/sbin/dpkg-preconfigure line 67, <> line 2.
(Reading database ... 21927 files and directories currently installed.)
Preparing to replace debconf 1.5.11 (using .../debconf_1.5.11_all.deb) ...
Unpacking replacement debconf ...
Preparing to replace perl 5.8.8-7 (using .../archives/perl_5.8.8-7_arm.deb) ...
Unpacking replacement perl ...
Setting up debconf (1.5.11) ...
Use of uninitialized value in pattern match (m//) at
/usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm line 33.
Use of uninitialized value in pattern match (m//) at
/usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm line 48.
open2: fork failed: Cannot allocate memory at
/usr/share/perl5/Debconf/ConfModule.pm line 58
dpkg: error processing debconf (--configure):
subprocess post-installation script returned error exit status 9
Setting up perl (5.8.8-7) ...

Errors were encountered while processing:
debconf
E: Sub-process /usr/bin/dpkg returned an error code (1)

The two lines in question of /usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm

Line 33                my ($rows)=`stty -a 2>/dev/null` =~ m/rows (\d+)/s;
Line 48		       my ($cols)=`stty -a 2>/dev/null` =~ m/columns (\d+)/s;

The entire files contents below...  Its everything between the **Start
and **End of file lines.  The file ends on line 54 with a 1

** Start of File**
#!/usr/bin/perl -w
# This file was preprocessed, do not edit!


package Debconf::FrontEnd::ScreenSize;
use strict;
use Debconf::Gettext;
use base qw(Debconf::FrontEnd);


sub init {
	my $this=shift;

	$this->SUPER::init(@_);

	$this->resize; # Get current screen size.
	$SIG{WINCH}=sub {
		if (defined $this) {
			$this->resize;
		}
	};
}


sub resize {
	my $this=shift;

	if (exists $ENV{LINES}) {
		$this->screenheight($ENV{'LINES'});
		$this->screenheight_guessed(0);
	}
	else {
		my ($rows)=`stty -a 2>/dev/null` =~ m/rows (\d+)/s;
		if ($rows) {
			$this->screenheight($rows);
			$this->screenheight_guessed(0);
		}
		else {
			$this->screenheight(25);
			$this->screenheight_guessed(1);
		}
	}

	if (exists $ENV{COLUMNS}) {
		$this->screenwidth($ENV{'COLUMNS'});
	}
	else {
		my ($cols)=`stty -a 2>/dev/null` =~ m/columns (\d+)/s;
		$this->screenwidth($cols || 80);
	}
}


1
**END OF FILE**

On 6/23/07, David Fokkema <dfokkema@ileos.nl> wrote:
On Sat, 2007-06-23 at 10:07 -0400, Aaron Klein wrote:
> 1) I first tired to install apache, php and mysql all in one command
> and it bombed out so I started doing it one at a time.

...And it was only mysql which bailed out. Strange!

> 2) dont know I have seen others with simular error messages post on
> the web for slugs and non slugs but the answer has always been to run
> apt-get -f install and it fixes it.

Yes, but I don't think those are the same errors. For them, dpkg -l
probably told them a package was half-installed or something like that.

> 3) Oddly enough I dont appear to have a file named ScreenSize.pm in
> that folder.  Here is the contents of that folder.  I have it two
> different formats because I know some folks see it better as a list
> than in columns.
>
> SLUG:/usr/share/perl5/Debconf# ls
> AutoSelect.pm  Config.pm    Element      Format.pm    Iterator.pm  Template
> Base.pm        Db.pm        Element.pm   FrontEnd     Log.pm       Template.pm
> Client         DbDriver     Encoding.pm  FrontEnd.pm  Priority.pm  TmpFile.pm
> ConfModule.pm  DbDriver.pm  Format       Gettext.pm   Question.pm

<snip>

<sigh>
me again! It should be in /usr/share/perl5/Debconf/FrontEnd/ ...
</sigh>

David


> On 6/23/07, David Fokkema <dfokkema@ileos.nl> wrote:
> > On Sat, 2007-06-23 at 08:59 -0400, Aaron Klein wrote:
> > > I used the Debian/NSLU2 Stable 4.0r0 firmware.
> >
> > Ok, then it _should_ work. So you've hit a very strange bug or file
> > corruption resulting in strange behaviour or something like that.
> >
> > It would be very helpful to know a few things:
> >
> > 1) When and how did your problem start and do you see it when you
> > install other packages as well?
> > 2) Are there other people who hit the same bug when they install
> > mysql-server-5.0?
> > 3) What are the contents of your /usr/share/perl5/Debconf/ScreenSize.pm
> > at lines 33 and 48? Do they match mine? (probably...)
> >
> > I installed etch before release and upgraded mysql-server alone several
> > times. That's not the same as installing it cleanly. I have never
> > encountered that bug, but that might say nothing at all...
> >
> > Luck,
> >
> > David
> >
> >
> >
> >



Reply to: