[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-24 Thread Colin Watson
Thanks! Matthias, regarding your comment on the upstream list (I have delivery disabled on the packagekit list, so didn't get a copy of your message, so this is the easiest way to reply ... sorry): > I'll apply them to the Debian packaging, as well as 0002, but I don't know > why the current LC_A

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-24 Thread Matthias Klumpp
Fix committed for PackageKit in Debian. Waiting for response from Daniel to apply the patches upstream. -- You received this bug notification because you are a member of Kubuntu Bugs, which is subscribed to qapt in ubuntu. https://bugs.launchpad.net/bugs/680328 Title: Many postinst scripts fai

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-24 Thread Jonathan Thomas
I've committed the patches upstream for QApt. Thanks for being so patient, and for fixing the code in both locations. :) ** Changed in: qapt (Ubuntu Natty) Status: Confirmed => Fix Committed -- You received this bug notification because you are a member of Kubuntu Bugs, which is subscribe

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-24 Thread Colin Watson
I sent my patches upstream for review. We should probably discuss them there rather than here if any discussion is needed. Here are archive links (the archive is a bit odd - the last three "messages" were actually attachments to the first one): http://lists.freedesktop.org/archives/packagekit/

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-24 Thread Matthias Klumpp
Cool! Could you please shout if there are patches ready for PK? I'll ad them to the Debian packaging too then. I moved the close(1) line around to "fix" this bug in APTcc, but I guess there's a better solution ;-) Doesn't "setlocale(LC_ALL, "C")" set the locale back to English? -- You received

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-24 Thread Colin Watson
That's more or less what I have, although I also have a certain amount of other cleanup: it's good not to leak the pipe ends that we're not using. term.log won't work until we set up a pty. I'll see if that's feasible. -- You received this bug notification because you are a member of Kubuntu Bu

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-24 Thread Jonathan Thomas
Removing these lines seem to fix things: // close Forked stdout and the read end of the pipe close(1); I wonder what it was trying to accomplish in the first place... -- You received this bug notification because you are a member of Kubuntu Bugs, which is subscribed to qapt in ubuntu. https://b

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-24 Thread Colin Watson
Incidentally, I'm working on this - I have it installing packages successfully again, although I'm still investigating why /var/log/apt/term.log isn't being written properly. I'll send the changes to PackageKit upstream when I'm finished, and you can pick them up from there in cases where you've c

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-24 Thread Colin Watson
If it worked before natty, it was probably by luck. Running pretty much anything in Unix with a closed fd 1 will only work by luck at best. -- You received this bug notification because you are a member of Kubuntu Bugs, which is subscribed to qapt in ubuntu. https://bugs.launchpad.net/bugs/68032

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-24 Thread Colin Watson
There's another failure at least in PackageKit: it sets the locale to the result of setlocale(LC_ALL, ""), which with current libc is something like this: LC_CTYPE=en_GB.UTF-8;LC_NUMERIC=en_GB.UTF-8;LC_TIME=en_GB.UTF-8;LC_COLLATE=C;LC_MONETARY=en_GB.UTF-8;LC_MESSAGES=en_AG.utf8;LC_PAPER=en_GB.UTF-

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-24 Thread Jonathan Thomas
I copied the code from Synaptic, actually, (PK probably did too) and I barely have a clue how it works or how to fix this. It all worked fine before natty. :( -- You received this bug notification because you are a member of Kubuntu Bugs, which is subscribed to qapt in ubuntu. https://bugs.launch

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-24 Thread Colin Watson
As shown by strace, the failure is along the lines of this: write(1, "Rebuilding /usr/share/applications/bamf.index...\n", 49) = -1 EBADF (Bad file descriptor) Not having a controlling terminal is one thing. Not even having a standard output file descriptor is quite another! Looking earlier i

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-24 Thread Colin Watson
Right, I can reproduce this with pkcon now. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/680328 Title: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt -- ubuntu-bugs mailin

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-23 Thread Sebastian Heinlein
Actually aptdaemon provides a controlling terminal for every dpkg call. If a terminal is provided by the user aptdaemon will act as a proxy. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/680328 Title:

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-23 Thread Jonathan Thomas
** Changed in: apt (Ubuntu Natty) Status: Incomplete => Confirmed ** Changed in: dpkg (Ubuntu Natty) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/680328

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-21 Thread Jonathan Thomas
Hmm, and actually I can't personally get Software Center to reproduce this bug, but PackageKit and QApt-based package managers are definitely affected for me and several others. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://b

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-21 Thread Jonathan Thomas
The actual problem is that the libc-bin postinst script always fails when it is triggered. The python-gmenu script does this too. Most post- installation triggers seem to fail when run via PackageKit, AptDaemon or QApt. Package: python-gmenu Error: subprocess installed post-installation script ret

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-21 Thread Colin Watson
I have been unable to reproduce this in my tests. I've been using software-center, since that uses aptdaemon. I tried installing kword; you said "the libc-bin postinst script caused an apparently abrupt end in the logging", but that's simply the last thing that runs in that installation (libc-bin

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-19 Thread Jonathan Thomas
** Also affects: apt (Ubuntu Natty) Importance: Critical Assignee: Canonical Foundations Team (canonical-foundations) Status: Confirmed ** Also affects: dpkg (Ubuntu Natty) Importance: Critical Status: Confirmed -- You received this bug notification because you are a mem

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2011-01-06 Thread Kate Stewart
** Changed in: apt (Ubuntu) Assignee: (unassigned) => Canonical Foundations Team (canonical-foundations) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/680328 Title: Many postinst scripts fail

[Bug 680328] Re: Many postinst scripts fail using either AptDaemon, PackageKit, or QApt

2010-12-05 Thread Jonathan Thomas
** Summary changed: - Many postinst scripts fail using either PackageKit or QApt + Many postinst scripts fail using either AptDaemon, PackageKit, or QApt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/