Bug 497357

Summary: Neon installation fails
Product: [KDE Neon] neon Reporter: Waqar Ahmed <waqar.17a>
Component: generalAssignee: Neon Bugs <neon-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: carlosd.kde, clay, jr, neon-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: calamares session log

Description Waqar Ahmed 2024-12-12 10:28:56 UTC
SUMMARY

Recommended KDE neon to a user. They reported this error during installation!

Main script file /usr/share/calamares/modules/neon-fs-cleanup/main.py for python job neon-fs-cleanup raised an exception.

OBSERVED RESULT

Installation doesn't work

EXPECTED RESULT

Installation works
Comment 1 Clay Weber 2025-02-05 02:16:08 UTC
I am seeing this using the current ISO - neon-user-20250202-0745.
The installation does boot and run normally, however.
Comment 2 Clay Weber 2025-02-05 11:11:27 UTC
Created attachment 177984 [details]
calamares session log
Comment 3 Clay Weber 2025-02-05 11:15:03 UTC
I have attached the  calamares session log from an offline install which produced the error'

The relevant section:

```
[PYTHON JOB]: "Pretty name: Install packages., setting progress.."
19:12:28 [6]: virtual void Calamares::JobThread::run()
    Starting job "neon-fs-cleanup" ( 37 / 39 )
    .. Running QList("apt-get", "--purge", "-q", "-y", "remove", "jfsutils", "reiserfsprogs", "xfsprogs")
    .. Target cmd: QList("apt-get", "--purge", "-q", "-y", "remove", "jfsutils", "reiserfsprogs", "xfsprogs") Exit code: 100 output:
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package jfsutils
19:12:29 [1]: virtual Calamares::JobResult Calamares::Python::Job::exec()
    ERROR: Error while running: CalledProcessError: Command 'apt-get --purge -q -y remove jfsutils reiserfsprogs xfsprogs' returned non-zero exit status 100.

At:
  <string>(8): <module>
  /usr/share/calamares/modules/neon-fs-cleanup/main.py(31): run

19:12:29 [6]: virtual void Calamares::JobThread::run()
    Skipping non-emergency job "Running shell processes…"
    ..  Skipping non-emergency job "Unmounting file systems…"
19:12:29 [1]: void Calamares::ViewManager::onInstallationFailed(const QString&, const QString&)
    ERROR: Installation failed: "Bad main script file"
    .. - message: "Bad main script file"
    .. - details: Main script file /usr/share/calamares/modules/neon-fs-cleanup/main.py for python job neon-fs-cleanup raised an exception.

```
Comment 4 Carlos De Maine 2025-02-13 01:58:41 UTC
Git commit 004495653a5dc165f03c86afda574abb3e9d1b27 by Carlos De Maine.
Committed on 13/02/2025 at 01:58.
Pushed by carlosdem into branch 'Neon/release'.

it's btrfs-progs nowadays 

M  +1    -1    desktop/usr/share/calamares/modules/neon-fs-cleanup/main.py

https://invent.kde.org/neon/neon/calamares-settings/-/commit/004495653a5dc165f03c86afda574abb3e9d1b27
Comment 5 Carlos De Maine 2025-02-13 10:11:57 UTC
the non-existent package was tripping up apt-get when in offline mode, tested that is now not the case.  will filter out to the world in the next iso's published
Comment 6 Clay Weber 2025-04-07 12:02:48 UTC
This is happening again in the current image, neon-user-20250406-0747.iso.
Comment 7 Carlos De Maine 2025-04-11 02:19:28 UTC
can confirm. investigating....
Comment 8 Carlos De Maine 2025-04-11 05:13:10 UTC
jfsutils was being removed in a previous step as a dep of neon-live, so remove it from the filesystem cleanup script.

https://invent.kde.org/neon/neon/calamares-settings/-/commit/1b9c737781c9036e5cece6d7e159642f65e888bb