[Bug 1611010] Re: yakkety desktop - non-english installation crashes with /plugininstall.py: ValueError: invalid literal for int() with base 10: ''

Mathieu Trudel-Lapierre mathieu.tl at gmail.com
Mon Aug 22 21:08:14 UTC 2016


Things aren't simple for this issue.

Looks like when apt prints out its StatusFd messages; it does so (quite
rightly) following LC_NUMERIC when doing a straight sprintf(...,
"...%.4f...", ...). Many other calls are wrapping decimal values in a
call to to_string() to get around this.

The problem with this is that some other tools (debconf's debconf-apt-
progress, python-apt) rely on the output being in C.UTF-8 (or some other
similar format) to parse the output, and won't be able to parse output
where the decimal separator is anything other than '.'. This happens in
fr_FR.UTF-8 and es_ES.UTF-8 at least.

I can work around this in ubiquity by setting LC_NUMERIC; but it won't
fix the underlying cause being that apt prints out the values that may
or may not be parseable by other tools. Apt should be fixed (this
appears to be a regression from xenial) or we'll need to modify debconf-
apt-progress and python-apt to account for the changes.

** Changed in: ubiquity (Ubuntu)
       Status: Confirmed => In Progress

** Changed in: ubiquity (Ubuntu)
     Assignee: Ubuntu Installer Team (ubuntu-installer) => Mathieu Trudel-Lapierre (cyphermox)

** Also affects: apt (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: apt (Ubuntu)
       Status: New => Confirmed

** Changed in: apt (Ubuntu)
   Importance: Undecided => Critical

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1611010

Title:
  yakkety desktop - non-english installation crashes with
  /plugininstall.py: ValueError: invalid literal for int() with base 10:
  ''

Status in apt package in Ubuntu:
  Confirmed
Status in ubiquity package in Ubuntu:
  Fix Committed

Bug description:
  Enviroment: Ubuntu 16.10.5 Yakkety Yak http://cdimage.ubuntu.com
  /daily-live/current/

  HW: Toshiba portege Z30-A12T | Intel i5+intel graphics | SSD hd

  Preconditions: W10+Xenial xerus installed, internet connection, 3rd
  party sw and updates selected

  Steps to reproduce:

  1º Click something else on Installation type screen>select /dev/sdaX where Xenial is installed, use it to mount / and leave some space to create the /home partition(ext4)
  2º Then click back and select erase ubuntu 16.04.1 and install Yakkety
  3º Installation starts

  Current result: After a little time installing it crashes and a window
  shows up to let the user know that some info is being gathered to send
  it to developers, and finally firefox opens on the bug report web on
  ubiquity package

  Expected result: No crashes during installation

  ProblemType: Bug
  DistroRelease: Ubuntu 16.10
  Package: ubiquity 16.10.5
  ProcVersionSignature: Ubuntu 4.4.0-33.52-generic 4.4.15
  Uname: Linux 4.4.0-33-generic x86_64
  ApportVersion: 2.20.3-0ubuntu5
  Architecture: amd64
  CasperVersion: 1.376
  Date: Mon Aug  8 15:50:56 2016
  InstallCmdLine: file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash --- maybe-ubiquity
  LiveMediaBuild: Ubuntu 16.10 "Yakkety Yak" - Alpha amd64 (20160808)
  ProcEnviron:
   LANGUAGE=es_ES.UTF-8
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=es_ES.UTF-8
  SourcePackage: ubiquity
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1611010/+subscriptions



More information about the foundations-bugs mailing list