Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade vom 20.3 to 21.3 fails #80

Open
MartinPabela opened this issue Mar 20, 2024 · 2 comments
Open

Upgrade vom 20.3 to 21.3 fails #80

MartinPabela opened this issue Mar 20, 2024 · 2 comments

Comments

@MartinPabela
Copy link

After passing all steps before ...
Running check 'Phase 3: Aktualisierung'

APT Repositories:

Repos: No active apt repos in: /etc/apt/sources.list
No active apt repos in: /etc/apt/sources.list.d/home:alex_sh:gsmartcontrol:stable_latest.list
No active apt repos in: /etc/apt/sources.list.d/jtaylor-keepass-focal.list
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb http://linux-mint.froonix.org vanessa main upstream import backport
2: deb http://mirror.23media.com/ubuntu jammy main restricted universe multiverse
3: deb http://mirror.23media.com/ubuntu jammy-updates main restricted universe multiverse
4: deb http://mirror.23media.com/ubuntu jammy-backports main restricted universe multiverse
5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
No active apt repos in: /etc/apt/sources.list.d/syncthing.list

... the upgrade dies in ...

Running check 'Sitzungssperrung'

in the GUI I see:
Traceback (most recent call last):
File "/usr/lib/linuxmint/mintupgrade/checks.py", line 94, in run
self.do_run()
File "/usr/lib/linuxmint/mintupgrade/checks.py", line 832, in do_run
subprocess.Popen(cmd)
File "/usr/lib/python3.8/subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1639, in _execute_child
self.pid = _posixsubprocess.fork_exec(
TypeError: expected str, bytes or os.PathLike object, not NoneType

My terminal is a terminal of root, the X runs as a user, which has allowed root to start some X session using xhost command

@MartinPabela
Copy link
Author

Additional info: mintupgrade is version 2024.01.12

@terr72
Copy link

terr72 commented Jul 27, 2024

My terminal is a terminal of root, the X runs as a user, which has allowed root to start some X session using xhost command

That's the culprit. You should run a sudo mintupgrade as user, not root.
This should IMHO however be caught earlier in the process by mintupgrade - or at least be shown in a way that's easier to understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants