Mint 21.1 Vera: mintinstall crash if flatpak is not installed
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Reproduce the crash by launching mintinstall on a system without Flatpak support. Start with mintinstall.py at do_activate, then follow installer.py and installer/_flatpak.py through init_sync(), _fp_remotes_have_changed(), and get_fp_sys(). Done means Mintinstall opens and disables or skips Flatpak support when /var/lib/flatpak/repo is absent.
Written by the indexing model from the issue text.
Description
In Linux Mint 21.1 Vera the Mintinstall Software Manager no longer works if flatpak is not installed.
That's too bad, not everyone wants to have flatpak support packages installed on their system. Please add some check to disable flatpak support in mintinstall if flatpak is not installed on the system.
$ mintinstall
MintInstall: Detected system architecture: 'x86_64'
Traceback (most recent call last):
File "/usr/lib/linuxmint/mintinstall/mintinstall.py", line 958, in do_activate
if self.installer.init_sync():
File "/usr/lib/python3/dist-packages/mintcommon/installer/installer.py", line 246, in init_sync
if self._fp_remotes_have_changed():
File "/usr/lib/python3/dist-packages/mintcommon/installer/installer.py", line 326, in _fp_remotes_have_changed
fp_remotes = self.list_flatpak_remotes()
File "/usr/lib/python3/dist-packages/mintcommon/installer/installer.py", line 492, in list_flatpak_remotes
return _flatpak.list_remotes()
File "/usr/lib/python3/dist-packages/mintcommon/installer/_flatpak.py", line 897, in list_remotes
fp_sys = get_fp_sys()
File "/usr/lib/python3/dist-packages/mintcommon/installer/_flatpak.py", line 72, in get_fp_sys
_fp_sys = Flatpak.Installation.new_system(None)
gi.repository.GLib.GError: g-io-error-quark: While opening repository /var/lib/flatpak/repo: opening repo: opendir(/var/lib/flatpak/repo): No such file or directory (1)
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_lib_linuxmint_mintinstall_mintinstall.py.1000.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/lib/linuxmint/mintinstall/mintinstall.py", line 958, in do_activate
if self.installer.init_sync():
File "/usr/lib/python3/dist-packages/mintcommon/installer/installer.py", line 246, in init_sync
if self._fp_remotes_have_changed():
File "/usr/lib/python3/dist-packages/mintcommon/installer/installer.py", line 326, in _fp_remotes_have_changed
fp_remotes = self.list_flatpak_remotes()
File "/usr/lib/python3/dist-packages/mintcommon/installer/installer.py", line 492, in list_flatpak_remotes
return _flatpak.list_remotes()
File "/usr/lib/python3/dist-packages/mintcommon/installer/_flatpak.py", line 897, in list_remotes
fp_sys = get_fp_sys()
File "/usr/lib/python3/dist-packages/mintcommon/installer/_flatpak.py", line 72, in get_fp_sys
_fp_sys = Flatpak.Installation.new_system(None)
gi.repository.GLib.GError: g-io-error-quark: While opening repository /var/lib/flatpak/repo: opening repo: opendir(/var/lib/flatpak/repo): No such file or directory (1)
- Dominant language
- Python
- Stars
- 181
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from linuxmint/mintinstall
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
linuxmint/mintinstall#486 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
linuxmint/mintinstall#513 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
linuxmint/mintinstall#512 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
linuxmint/mintinstall#511 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
linuxmint/mintinstall#510 ·
All issues in linuxmint/mintinstall
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
use-agent-os/agent-os#3314 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
AiursoftWeb/AnduinOS-2#19 ·