Lubuntu Noble Apha - Calamares installer crash (exception in Networkcfg/Main.py)

Bug #2054697 reported by Richard Pratt
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
kubuntu-meta (Ubuntu)
Confirmed
Undecided
Unassigned
lubuntu-meta (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When attempting to install Lubuntu 24.04 Alpha (Noble Numbat) on a Dell Wyse 3040 from a Live USB Session, the Calamares installer crashes near the end of the installer sequence with a "Bad main script file" error.

Occurs just after Configuring locales
Unfortunately the installer log disappears from screen at the time of exception and there is no installer log to be found after the install failure.

The error details are:-

Main Script file/usr/lib/x86_64-linux-gnu/calamares/modules/networkcfg/main.py for python job networkcfg raised an exception

Unfortunately, no line number is given for the exception and I cant find any related errors in other logs in /var/log. The var/log/installer directory is empty.

Have tried install in 3 use cases
1. Ethernet connection enabled with onboard Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
2. Wireless connection enabled with external Realtek RTL8188EUS 802.11n USB
3. No internet connection
All 3 result is same crash.

Please advise any workarounds

Possibly related - the Dell Wyse 3040 is notoriously difficult to install linux distros due to limited space but mostly due to distros using the Ubiquity installer that has an unresolved error in the installer scripts causing multiple crashes during installation when the installer attempts to handle the specific model name of the H8G4a eMMC onboard storage on the 3040
that contains non-UTF-8 characters in its name. Distros that use Calamares or the new Subiquity installer do not usually appear to suffer this problem.

Ubuntu Release:
Description: Ubuntu Noble Numbat (development branch)
Release: 24.04

Calamares version:
calamares:
  Installed: 3.3.2-0ubuntu1
  Candidate: 3.3.2-0ubuntu1
  Version table:
 *** 3.3.2-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages
        100 /var/lib/dpkg/status

Richard Pratt (rattyp)
summary: - Lubintu Noble Apha - Calamares installer crash (exception in
- Netwrokcfg/Main.py)
+ Lubuntu Noble Apha - Calamares installer crash (exception in
+ Networkcfg/Main.py)
Revision history for this message
Richard Pratt (rattyp) wrote :

Running Ubuntu-bug calamares reveals thh following relevant error in the apport log (see attached):-

 2024-02-26 - 13:16:51 [1]: ERROR: Error while running: TypeError: chmod: path should be string, bytes, os.PathLike or integer, not TextIOWrapper

 At:
   /usr/lib/x86_64-linux-gnu/calamares/modules/networkcfg/main.py(158): run

Revision history for this message
Richard Pratt (rattyp) wrote :

Looks like a bug is the script /usr/lib/x86_64-linux-gnu/calamares/networkcfg/main.py (attached) for a string literal 0o600 in the os.chmod function at line 158.

Currently it is : os.chmod(f, 0o600)
Should it be : os.chmod(f, "0o600") ?

I tried editing the script and re-running but this has no effect - I guess it takes the script off the USB Live iso each time. Any ideas how to patch this temporarily??field.comment=Looks like a bug is the script /usr/lib/x86_64-linux-gnu/calamares/networkcfg/main.py (attached) for a string literal 0o600 in the os.chmod function at line 158.

Currently it is : os.chmod(f, 0o600)
Should it be : os.chmod(f, "0o600") ?

I tried editing the script and re-running but this has no effect - I guess it takes the script off the USB Live iso each time. Any ideas how to patch this temporarily?

Richard Pratt (rattyp)
tags: added: calamares lubuntu networkcfg noble numbat
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lubuntu-meta (Ubuntu):
status: New → Confirmed
Revision history for this message
vmc (vmclark) wrote :

I'm using completely different hardware and have the same issue as reported in first post.
Using ISO dated March 9th, 2024

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kubuntu-meta (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.