I am unsure whether it is grub or something corrupt in the locale ( Note also that apt-get keeps failing to connect so something remains in apt-get, and kile...).
But, well, regarding the suggested script: Yes, it fails. and, bingo!, /etc/grub.d/10_linux has at least two lines calling "sed". version=`echo $basename | sed -e "s,^[^0-9]*-,,g"` alt_version=`echo $version | sed -e "s,\.old$,,g"` which hit, I guess, the sed-locale bug in the links above. But, surprisingly, the LANG=C does nothing new to sed... anto...@antonio-desktop:/etc/grub.d$ echo hello123 | sed -e "s,^[^0-9]*-,,g" sed: -e expresión #1, carácter 14: Final de rango inválido anto...@antonio-desktop:/etc/grub.d$ LANG=C echo hello123 | sed -e "s,^[^0-9]*-, g" sed: -e expresión #1, carácter 14: Final de rango inválido __________________________________________ Output copied below: anto...@antonio-desktop:~$ sudo sh -x /usr/sbin/grub-mkconfig -o /tmp/grub.cfg + set -e + transform=s,x,x, + prefix=/usr + exec_prefix=/usr + sbindir=/usr/sbin + libdir=/usr/lib + sysconfdir=/etc + PACKAGE_NAME=GRUB + PACKAGE_VERSION=1.98+20100804-5ubuntu3 + host_os=linux-gnu + datarootdir=/usr/share + datadir=/usr/share + echo grub + sed s,x,x, + pkgdatadir=/usr/share/grub + grub_cfg= + grub_mkconfig_dir=/etc/grub.d + basename /usr/sbin/grub-mkconfig + self=grub-mkconfig + echo grub-probe + sed s,x,x, + grub_probe=/usr/sbin/grub-probe + test 2 -gt 0 + option=-o + shift + argument -o /tmp/grub.cfg + opt=-o + shift + test 1 -eq 0 + echo /tmp/grub.cfg + grub_cfg=/tmp/grub.cfg + shift + test 0 -gt 0 + . /usr/lib/grub/grub-mkconfig_libcommand + transform=s,x,x, + prefix=/usr + exec_prefix=/usr + datarootdir=/usr/share + datadir=/usr/share + bindir=/usr/bin + sbindir=/usr/sbin + echo grub + sed s,x,x, + pkgdatadir=/usr/share/grub + test x/usr/sbin/grub-probe = x + test x = x + echo grub-mkrelpath + sed s,x,x, + grub_mkrelpath=/usr/bin/grub-mkrelpath + which gettext + + gettext=gettext + echo /boot/grub + sed s,x,x, + GRUB_PREFIX=/boot/grub + [ x = x ] + id -u + EUID=0 + [ 0 != 0 ] + set /usr/sbin/grub-probe dummy + test -f /usr/sbin/grub-probe + : + mkdir -p /boot/grub + /usr/sbin/grub-probe --target=device / + GRUB_DEVICE=/dev/sda1 + /usr/sbin/grub-probe --device /dev/sda1 --target=fs_uuid + GRUB_DEVICE_UUID=ca0cec72-6210-4ea5-9c0a-a1d518bbb72b + /usr/sbin/grub-probe --target=device /boot + GRUB_DEVICE_BOOT=/dev/sda1 + /usr/sbin/grub-probe --device /dev/sda1 --target=fs_uuid + GRUB_DEVICE_BOOT_UUID=ca0cec72-6210-4ea5-9c0a-a1d518bbb72b + /usr/sbin/grub-probe --target=fs / + GRUB_FS=ext2 + test -f /etc/default/grub + . /etc/default/grub + GRUB_DEFAULT=0 + GRUB_HIDDEN_TIMEOUT=0 + GRUB_HIDDEN_TIMEOUT_QUIET=true + GRUB_TIMEOUT=10 + lsb_release -i -s + GRUB_DISTRIBUTOR=Ubuntu + GRUB_CMDLINE_LINUX_DEFAULT=quiet splash + GRUB_CMDLINE_LINUX= + [ x != x ] + termoutdefault=0 + [ x = x ] + GRUB_TERMINAL_OUTPUT=gfxterm + termoutdefault=1 + [ xgfxterm = xgfxterm ] + test -e /boot/grub/gfxterm.mod + [ ! -s /boot/grub/video.lst ] + [ -n ] + path=/usr/share/grub/unicode.pf2 + is_path_readable_by_grub /usr/share/grub/unicode.pf2 + path=/usr/share/grub/unicode.pf2 + test -e /usr/share/grub/unicode.pf2 + : + /usr/sbin/grub-probe -t fs /usr/share/grub/unicode.pf2 + : + return 0 + GRUB_FONT_PATH=/usr/share/grub/unicode.pf2 + [ unicode = ascii ] + break 2 + [ -z /usr/share/grub/unicode.pf2 ] + export GRUB_DEVICE GRUB_DEVICE_UUID GRUB_DEVICE_BOOT GRUB_DEVICE_BOOT_UUID GRUB_FS GRUB_FONT_PATH GRUB_PRELOAD_MODULES GRUB_PREFIX + export GRUB_DEFAULT GRUB_HIDDEN_TIMEOUT GRUB_HIDDEN_TIMEOUT_QUIET GRUB_TIMEOUT GRUB_DEFAULT_BUTTON GRUB_HIDDEN_TIMEOUT_BUTTON GRUB_TIMEOUT_BUTTON GRUB_BUTTON_CMOS_ADDRESS GRUB_DISTRIBUTOR GRUB_CMDLINE_LINUX GRUB_CMDLINE_LINUX_DEFAULT GRUB_CMDLINE_XEN GRUB_CMDLINE_XEN_DEFAULT GRUB_CMDLINE_NETBSD GRUB_CMDLINE_NETBSD_DEFAULT GRUB_TERMINAL_INPUT GRUB_TERMINAL_OUTPUT GRUB_SERIAL_COMMAND GRUB_DISABLE_LINUX_UUID GRUB_DISABLE_LINUX_RECOVERY GRUB_DISABLE_NETBSD_RECOVERY GRUB_VIDEO_BACKEND GRUB_GFXMODE GRUB_BACKGROUND GRUB_THEME GRUB_GFXPAYLOAD_LINUX GRUB_DISABLE_OS_PROBER GRUB_INIT_TUNE GRUB_SAVEDEFAULT GRUB_BADRAM + test x/tmp/grub.cfg != x + rm -f /tmp/grub.cfg.new + exec + chmod 400 /tmp/grub.cfg.new + echo Generating grub.cfg ... Generating grub.cfg ... + cat + grub_file_is_not_garbage /etc/grub.d/00_header + test -f /etc/grub.d/00_header + return 0 + test -x /etc/grub.d/00_header + echo + echo ### BEGIN /etc/grub.d/00_header ### + /etc/grub.d/00_header + echo ### END /etc/grub.d/00_header ### + grub_file_is_not_garbage /etc/grub.d/05_debian_themecommand + test -f /etc/grub.d/05_debian_theme + return 0 + test -x /etc/grub.d/05_debian_theme + echo + echo ### BEGIN /etc/grub.d/05_debian_theme ### + /etc/grub.d/05_debian_theme + echo ### END /etc/grub.d/05_debian_theme ### + grub_file_is_not_garbage /etc/grub.d/10_linux + test -f /etc/grub.d/10_linux + return 0 + test -x /etc/grub.d/10_linux + echo + echo ### BEGIN /etc/grub.d/10_linux ### + /etc/grub.d/10_linux Found linux image: /boot/vmlinuz-2.6.35-22-generic sed: -e expresión #1, carácter 14: Final de rango inválido -- apt-get fails with LANG=es_ES.utf8, succeeds with LANG=C https://bugs.launchpad.net/bugs/663694 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs