Bug#529393: More info

2009-06-01 Thread Erik de Castro Lopo

With my particular issue:

 Preconfiguring packages ...
 dpkg: warning: obsolete option '--print-installation-architecture', please
 use '--print-architecture' instead.
 E: Sub-process /usr/bin/dpkg returned an error code (2)

was due to dpkg being run without the PATH environment variable
being set (I was running in a chroot).

This bug could be fixed if dpkg checked the environment for the  PATH
variable and it if is empty, setting it to some sensible default.

Erik
-- 
--
Erik de Castro Lopo
http://www.mega-nerd.com/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#529393: More info

2009-06-01 Thread Raphael Hertzog
reassign 529393 popularity-contest 1.47
thanks

Please don't hijack bugs and don't falsely reassign it once
you have identified that your bug is about something else...

I reported the bug and I am a dpkg maintainer. If you have another problem
that differs from the one that I reported (undesired usage of dpkg
--print-installation-architecture by popcon) please file a new bug (and on
the right package if possible).

On Mon, 01 Jun 2009, Erik de Castro Lopo wrote:
 With my particular issue:
  Preconfiguring packages ...
  dpkg: warning: obsolete option '--print-installation-architecture', please
  use '--print-architecture' instead.
  E: Sub-process /usr/bin/dpkg returned an error code (2)
 
 was due to dpkg being run without the PATH environment variable
 being set (I was running in a chroot).
 
 This bug could be fixed if dpkg checked the environment for the  PATH
 variable and it if is empty, setting it to some sensible default.

1/ The part Preconfiguring packages is not run by dpkg but by debconf
with dpkg-preconfigure. 

2/ Dpkg does verify/ensure the PATH is sane when running installation
scripts. You should be more precise on how the problem can be reproduced.

3/ The warning displayed above is the consequence of some config script
that calls dpkg --print-installation-architecture and nothing more. It's
probably unrelated to your problem.

4/ The apt-get error message might be misleading... are you sure that
dpkg is failing and not dpkg-preconfigure ? dpkg is usually verbose when
it fails and we should see an error message displayed.

Don't discuss this in this bugreport however, copy the relevant info in a
new one against debconf/dpkg/apt-get or whatever is most likely
responsible of the problem according to your tests.

Cheers,
-- 
Raphaël Hertzog

Contribuez à Debian et gagnez un cahier de l'admin Debian Lenny :
http://www.ouaza.com/wp/2009/03/02/contribuer-a-debian-gagner-un-livre/



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#529393: More info

2009-06-01 Thread Guillem Jover
reassign 529393 popularity-contest
found 529393 1.47
thanks

Hi,

On Mon, 2009-06-01 at 20:07:53 +1000, Erik de Castro Lopo wrote:
 With my particular issue:
 
  Preconfiguring packages ...
  dpkg: warning: obsolete option '--print-installation-architecture', please
  use '--print-architecture' instead.
  E: Sub-process /usr/bin/dpkg returned an error code (2)
 
 was due to dpkg being run without the PATH environment variable
 being set (I was running in a chroot).
 
 This bug could be fixed if dpkg checked the environment for the  PATH
 variable and it if is empty, setting it to some sensible default.

What you are seeing is unrelated to the filed bug report, as
“dpkg --print-installation-architecture” exits with 0, please don't
mix issues. dpkg already checks for a usable PATH in some operations,
and should have given a proper error message in that case anyway.

If you can reproduce this other issue, please file a bug report against
dpkg including apt and dpkg log files, so that we can track it down.
My guess is that the problem is somewhere else though.

regards,
guillem



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org