Bug #17576

tails-installer fails to operate in Turkish

Added by CyrilBrulebois 2020-03-31 21:00:42 . Updated 2020-04-28 12:38:55 .

Status:
Confirmed
Priority:
Normal
Assignee:
Category:
Installation
Target version:
Start date:
Due date:
% Done:

0%

Feature Branch:
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Installer
Deliverable for:

Description

Reported through #tails-dev: with Tails 4.4.1 configured in Turkish, it’s not possible to copy successfully.

Reproduced locally in a VM: a Unicode decoding error in gui.py:266. Removing the try/@catch@ around the relevant code block to pinpoint the exact location, here’s what I get:

amnesia@amnesia:~$ tails-installer
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/dist-packages/tails_installer/gui.py", line 238, in run
    self.live.install_bootloader()
  File "/usr/lib/python2.7/dist-packages/tails_installer/creator.py", line 1092, in install_bootloader
    'syslinux', self.drive['device']))
  File "/usr/lib/python2.7/dist-packages/tails_installer/creator.py", line 297, in popen
    % {'command': cmd, 'filename': self._error_log_filename})
TailsInstallerError: Şu komut yürütülürken bir sorun çıktı: `/tmp/tmpD4dp3J/syslinux  -d syslinux /dev/sda1`.
Ayrıntılı bir hata raporu '/tmp/tails-installer-2ViLtr' dosyasına yazıldı.

Out the blue, I’d assume this isn’t related to Bug #17568


Subtasks


Related issues

Blocks Tails - Feature #16209: Core work: Foundations Team Confirmed

History

#1 Updated by intrigeri 2020-04-01 07:19:29

#2 Updated by intrigeri 2020-04-01 07:23:00

  • Category set to Installation
  • Affected tool set to Installer

#3 Updated by intrigeri 2020-04-01 07:25:36

We haven’t updated tails-installer since 4.0~rc1, so I understand this has been broken for 5 months ⇒ I’m not raising priority (which I would do if it were a recent regression).

@kurono, would you like to take a look?

> Out the blue, I’d assume this isn’t related to Bug #17568

Agreed.

#4 Updated by kurono 2020-04-01 07:36:56

  • Assignee set to kurono

#5 Updated by kurono 2020-04-02 08:32:29

It seems like the error is not related to the Tails Installer but to the mtools command. The error is the following:

<code class="text">
/tmp/tmplyfKx3/syslinux  -d syslinux /dev/sdb1
Syntax error at line 5 for drive A: column 9 in file /etc/mtools.conf: unrecognized keyword
/tmp/tmplyfKx3/syslinux: failed to create ldlinux.sys
</code>

There is already a similar Ubuntu bug report:
https://bugs.launchpad.net/ubuntu/+source/mtools/+bug/1479152

When I execute the mtools command without using the Tails Installer I get the same message:

<code class="text">
amnesia@amnesia:~$ mtools
Syntax error at line 5 for drive A: column 9 in file /etc/mtools.conf: unrecognized keyword
</code>

The bug report says its fixed, but at least its not in the version used in Tails.
Maybe @lamby can confirm this.

#6 Updated by lamby 2020-04-02 08:37:01

I won’t be able to spin up a Tails instance quickly but what exact version of mtools is being used here and the contents of /etc/mtools.conf? I cannot reproduce in any Debian suite right now.

#7 Updated by kurono 2020-04-02 08:59:06

lamby wrote:
> I won’t be able to spin up a Tails instance quickly but what exact version of mtools is being used here and the contents of /etc/mtools.conf? I cannot reproduce in any Debian suite right now.

version:

<code class="text">
amnesia@amnesia:~$ mtools --version
mtools (GNU mtools) 4.0.23
configured with the following options: enable-xdf disable-vold disable-new-vold disable-debug enable-raw-term
</code>

content of /etc/mtools.conf:

<code class="text">
amnesia@amnesia:~$ cat /etc/mtools.conf 
# Debian default mtools.conf file.
# "info mtools" or "man mtools.conf" for more detail.

# # Linux floppy drives
drive a: file="/dev/fd0" exclusive
drive b: file="/dev/fd1" exclusive

# # First SCSI hard disk partition
# drive c: file="/dev/sda1"

# # First IDE hard disk partition
# drive c: file="/dev/hda1"

# # dosemu hdimage.
drive m: file="/var/lib/dosemu/hdimage.first" partition=1 offset=128

# # dosemu floppy image
drive n: file="/var/lib/dosemu/fdimage"

# # SCSI zip disk
# drive z: file="/dev/sda4"

# # uncomment the following line to display all file names in lower
# # case by default
# mtools_lower_case=1
</code>

#8 Updated by kurono 2020-04-28 12:38:55

  • Assignee deleted (kurono)