[Bug 68267] Re: x11-common have an important debconf bug
I can confirm that this is happening on a fresh install of Kubuntu-Herd5 (downloaded via .torrent March 7). I had just booted up the first time and ran Adept Manager to get the latest updates (March 8 @ 18:41 GMT). After the downloads finished, it errored with the screen shot here(also attached): http://www.linder.org/~dan/Kubuntu-Herd5-Incorrect_Nice_Value-Adept_Manager.JPG Dan ** Attachment added: Screen shot showing error messages in Adept Manager. http://librarian.launchpad.net/6690009/Kubuntu-Herd5-Incorrect_Nice_Value-Adept_Manager.JPG -- x11-common have an important debconf bug https://launchpad.net/bugs/68267 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 68267] Re: x11-common have an important debconf bug
I don't believe this is related to the exact package being installed, rather the installer itself or a back-end process. And the various tests for nice values (i.e. Pauls comment #8 : https://launchpad.net/ubuntu/+source/xorg/+bug/68267/comments/8), is there other code to ensure that the value being tested is truly a number? I.e. if the validate_nice_value() subroutine gets sent text (i.e. x1 rather than 1), won't this also produce a similar error? How about this: --- validate_nice_value () { _retval=1 # first, try to subtract number from itself to validate numeric input # (expr is noisy, always throw away its output) set +e # Check for blank/null $1 variable. if [ ! -z $1 ]; then # Exit because we were given a blank line. fi # NOTE 1 expr $1 - $1 /dev/null 21 if [ $? -ne 2 ]; then # now check for valid range --- I can't think of a concise way to test for a string versus number to put in at the NOTE 1 location. Dan -- x11-common have an important debconf bug https://launchpad.net/bugs/68267 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 68267] Re: x11-common have an important debconf bug
Simple workaround I've been using when I hit this: DISPLAY= apt-get update -- x11-common have an important debconf bug https://launchpad.net/bugs/68267 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 68267] Re: x11-common have an important debconf bug
gah. upgrade, not update. -- x11-common have an important debconf bug https://launchpad.net/bugs/68267 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 68267] Re: x11-common have an important debconf bug
changing it to if [ $? -eq 1 ]; then broke it completely. -- x11-common have an important debconf bug https://launchpad.net/bugs/68267 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 68267] Re: x11-common have an important debconf bug
I can confirm this in feisty herd3, when updating from X11-common 1.7.2-0ubuntu3 to X11-common 1.7.2-0ubuntu4 -- x11-common have an important debconf bug https://launchpad.net/bugs/68267 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 68267] Re: x11-common have an important debconf bug
I can confirm this in feisty herd5 (note the difference from above), when updating from X11-common 1.7.2-0ubuntu3 to X11-common 1.7.2-0ubuntu4 -- x11-common have an important debconf bug https://launchpad.net/bugs/68267 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 68267] Re: x11-common have an important debconf bug
How about just using /usr/bin/test and get rid of the expr. AFAIK, it should whine if the input is not numeric, eg: [EMAIL PROTECTED]:~$ i=4; test $i -ge -20 -a $i -lt 10 2 /dev/null; echo $? 0 [EMAIL PROTECTED]:~$ i=abc; test $i -ge -20 -a $i -lt 10 2 /dev/null; echo $? 2 [EMAIL PROTECTED]:~$ i=42; test $i -ge -20 -a $i -lt 10 2 /dev/null; echo $? 1 Or am I missing something here? -- x11-common have an important debconf bug https://launchpad.net/bugs/68267 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 68267] Re: x11-common have an important debconf bug
Oh my.. I just replaced that validate_nice_value() function with a one- liner using /usr/bin/test. Works for me on Feisty (server install, but eg. java and gd requires x11-common). The attached patch can also be found at https://no.spoon.fi/~jvtm/patches/ubuntu/ubuntu-feisty-x11-common .config-validate_nice_value-fix.diff ** Attachment added: validate_nice_value() simplified http://librarian.launchpad.net/6652114/ubuntu-feisty-x11-common.config-validate_nice_value-fix.diff -- x11-common have an important debconf bug https://launchpad.net/bugs/68267 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 68267] Re: x11-common have an important debconf bug
How do I apply this? I'm not a developer. -- x11-common have an important debconf bug https://launchpad.net/bugs/68267 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 68267] Re: x11-common have an important debconf bug
Something like this (install at least build-essential and fakeroot packages first): apt-get source x11-common cd xorg-7.2 patch -p1 -i /path/to/thefix.diff (or edit the debian/x11-common.config.in by hand) dpkg-buildpackage -rfakeroot -uc -us -b - install the .deb with dpkg -i x11-common-XYZ.deb - test with dpkg-reconfigure x11-common (try inputing various strings, illegal numbers) -- x11-common have an important debconf bug https://launchpad.net/bugs/68267 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 68267] Re: x11-common have an important debconf bug
Same error here in a Kubuntu Feisty Herd 5. -- x11-common have an important debconf bug https://launchpad.net/bugs/68267 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 68267] Re: x11-common have an important debconf bug
I begin to think the problem WAS NOT with validate_nice_value, but rather with the priority of debconf. sudo dpkg-reconfigure --force -plow x11-common seems to work but sudo dpkg-reconfigure --force -pmedium x11-common seems to bug. -- x11-common have an important debconf bug https://launchpad.net/bugs/68267 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 68267] Re: x11-common have an important debconf bug
Time for me to sleep, but I think that if in: --- while :; do run db_input low x11-common/xwrapper/nice_value # is the question going to be asked? if [ $? -eq 30 ]; then break # no; bail out of validation loop fi run db_go --- you move the run db_go before the if, that should fix the bug still validate_nice_value() simplified is cool, and does correct a bug too. -- x11-common have an important debconf bug https://launchpad.net/bugs/68267 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 68267] Re: x11-common have an important debconf bug
** Summary changed: - x11-common is uninstallable when debconf method is kde + x11-common have an important debconf bug -- x11-common have an important debconf bug https://launchpad.net/bugs/68267 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 68267] Re: x11-common have an important debconf bug
** Changed in: xorg (Ubuntu) Importance: Undecided = Medium -- x11-common have an important debconf bug https://launchpad.net/bugs/68267 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs