[Bug 1660633] Re: /usr/bin/ucfr: line ... : [: : integer expression expected
Manfred Hampl
1660633 at bugs.launchpad.net
Tue Feb 7 16:32:19 UTC 2017
/var/lib/ucf/registry is present on the system with the problem (see
https://answers.launchpad.net/ubuntu/+source/ucf/+question/448737 )
As far as we already found out one of the causes of this error is that the command
egrep --count "[[:space:]]/etc/default/grub$" "/var/lib/ucf/registry"
returns
"Illegal variable name."
when executed in a csh or tcsh shell.
According to http://www.grymoire.com/unix/CshTop10.txt any use of the string $" in a csh or tcsh fails that way.
According to suggestions in the grymoire document, a potential workaround could be changing line 321 of ucfr from
count=$(egrep --count "[[:space:]]${real_conf_file_re}$" "$statedir/registry") || true
into
count=$(egrep --count "[[:space:]]${real_conf_file_re}"'$' "$statedir/registry") || true
(instead of 'dollar doublequote' make it 'doublequote quote dollar quote')
(Note, I was not in a position that I could test myself whether this works.)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ucf in Ubuntu.
https://bugs.launchpad.net/bugs/1660633
Title:
/usr/bin/ucfr: line ... : [: : integer expression expected
Status in ucf package in Ubuntu:
Incomplete
Bug description:
I've had a reoccurring issue: https://ubuntuforums.org/showthread.php?t=2350682
Running: ucf_3.0036_all.deb
http://askubuntu.com/questions/875415/usr-bin-ucfr-errors-integer-expression-expected
http://serverfault.com/questions/827873/grub-pc-update-fail-dev-sda-ext2-doesnt-support-embedding
I don't know why ucfr is erroring out but the accumulated errors are
now enough to stall priority packages which I feel hamstrung about.
I've reinstalled the ucf package and danced around the issue enough.
Any maintainers have a shot in the dark for why this would be
happening?
Discussion:
https://answers.launchpad.net/ubuntu/+source/ucf/+question/448737
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ucf/+bug/1660633/+subscriptions
More information about the foundations-bugs
mailing list