Linux Mint 22 to 22.1 update fails if you are using Wayland

Open
#928 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
linux, python

Research direction

Start by reading /usr/lib/linuxmint/mintUpdate/rel_upgrade.py and rel_upgrade_root.py, then reproduce the Mint 22 to 22.1 upgrade from a Wayland session. Trace how the command arguments are assembled and verify that the upgrade no longer exits with “Missing arguments!” when run under Wayland.

Written by the indexing model from the issue text.

Description

BUG

Describe the bug
Using mintupdate Update Manager to upgrade from 22 to 22.1 fails with no explaination if you're logged in to a Wayland session

Screenshots
Image

To Reproduce
Steps to reproduce the behavior:

  1. Login to Mint 22 desktop using Wayland
  2. Follow usual steps to upgrade to 22.1

Distribution: Linux Mint

Software version: 6.1.5

Logs:
Nothing in logs, however stdout has:

Missing arguments!
Command 'pkexec /usr/bin/mint-release-upgrade-root wilma' returned non-zero exit status 1.

Additional context

The script /usr/lib/linuxmint/mintUpdate/rel_upgrade_root.py expects two arguments, codename and window_id however the previous script /usr/lib/linuxmint/mintUpdate/rel_upgrade.py only adds the window_id if the current session is X11:

        if os.environ.get("XDG_SESSION_TYPE", "x11") == "x11":
            cmd += ["%s" % self.assistant.get_window().get_xid()]
Dominant language
Python
Stars
425
Forks
190
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/mintupdate

All issues in linuxmint/mintupdate

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.