Linux Mint Upgrade tool not working (TypeError: expected str)

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dannybackx
Level 1
Level 1
Posts: 5
Joined: Mon Aug 08, 2022 12:27 pm

Linux Mint Upgrade tool not working (TypeError: expected str)

Post by dannybackx »

Different error on my system :
Traceback (most recent call last):
File "/usr/lib/linuxmint/mintupgrade/checks.py", line 89, in run self.do_run()
File "/usr/lib/linuxmint/mintupgrade/checks.py", line 746, 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
Last edited by LockBot on Wed Feb 08, 2023 11:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
dannybackx
Level 1
Level 1
Posts: 5
Joined: Mon Aug 08, 2022 12:27 pm

Re: Linux Mint Upgrade tool not working (TypeError: expected str)

Post by dannybackx »

Addition to last post : it says this in the terminal window in which I started mintupgrade :

2214 upgraded, 295 newly installed, 19 to remove and 0 not upgraded.
179 standard security updates
Need to get 0 B/2,549 MB of archives.
After this operation, 1,210 MB of additional disk space will be used.
Download complete and in download only mode
Check succeeded: Package download

Running check 'Phase 3: Upgrade'

Running check 'Session inhibition'
mintupgrade-inhibit-power: no process found
Root @ hp: {7}
User avatar
kato181
Level 9
Level 9
Posts: 2577
Joined: Fri Mar 24, 2017 12:33 am
Location: Frederickton NSW

Re: Linux Mint Upgrade tool not working (TypeError: expected str)

Post by kato181 »

What version of LM are you upgrading from?
Did you do the following..

Code: Select all

sudo apt install mintupgrade

Code: Select all

sudo mintupgrade
dannybackx
Level 1
Level 1
Posts: 5
Joined: Mon Aug 08, 2022 12:27 pm

Re: Linux Mint Upgrade tool not working (TypeError: expected str)

Post by dannybackx »

I upgraded from 20.2 to 20.3 prior to trying the 20.3 to 21.0 upgrade.
After that, I followed the instructions on https://linuxmint-user-guide.readthedoc ... nt-21.html
so :

Code: Select all

apt update
apt install mintupgrade
mintupgrade
all from a tcsh root prompt.
I also appear to have three versions of a mintupgrade-<timestamp>.log file.
All of them end with :

Code: Select all

Check succeeded:  Package download

Running check 'Phase 3: Upgrade'

Running check 'Session inhibition'
mintupgrade-inhibit-power: no process found
Obviously the first did a bunch of downloads, the subsequent runs didn't.
devenrai
Level 1
Level 1
Posts: 11
Joined: Tue Feb 14, 2012 5:35 am

Re: Linux Mint Upgrade tool not working (TypeError: expected str)

Post by devenrai »

I have the same problem. Here is the screenshot of the `mintupgrade` when it fails.
Image

The log file says:
Running check 'Phase 3: Upgrade'

Running check 'Session inhibition'
mintupgrade-inhibit-power: no process found
Attachments
2022-08-12_23-38.png
dannybackx
Level 1
Level 1
Posts: 5
Joined: Mon Aug 08, 2022 12:27 pm

Re: Linux Mint Upgrade tool not working (TypeError: expected str)

Post by dannybackx »

Actually slightly different (line numbers).
I got an upgrade to "mintupgrade but still the same problem :
Screenshot_2022-08-15_09-02-58.png
Note this is with mintupgrade 2022.08.13, previously 2022.08.05.
User avatar
Gruppo Sportivo
Level 4
Level 4
Posts: 276
Joined: Sun May 28, 2017 4:14 am
Location: 🇳🇱

Re: Linux Mint Upgrade tool not working (TypeError: expected str)

Post by Gruppo Sportivo »

dannybackx wrote: Fri Aug 12, 2022 11:06 am I upgraded from 20.2 to 20.3 prior to trying the 20.3 to 21.0 upgrade.
After that, I followed the instructions on https://linuxmint-user-guide.readthedoc ... nt-21.html
so :

Code: Select all

apt update
apt install mintupgrade
mintupgrade
The correct command to launch the Upgrade Tool is:

Code: Select all

sudo mintupgrade
dannybackx
Level 1
Level 1
Posts: 5
Joined: Mon Aug 08, 2022 12:27 pm

Re: Linux Mint Upgrade tool not working (TypeError: expected str)

Post by dannybackx »

Gruppo Sportivo wrote: Mon Aug 15, 2022 3:17 am
The correct command to launch the Upgrade Tool is:

Code: Select all

sudo mintupgrade
I grinned a bit at your reply but said to myself "always check before you reply".
This does workaround the bug, so thanks.
devenrai
Level 1
Level 1
Posts: 11
Joined: Tue Feb 14, 2012 5:35 am

Re: Linux Mint Upgrade tool not working (TypeError: expected str)

Post by devenrai »

No luck:
`sudo mintupgrade`

Image
Attachments
2022-08-15_13-48.png
devenrai
Level 1
Level 1
Posts: 11
Joined: Tue Feb 14, 2012 5:35 am

Re: Linux Mint Upgrade tool not working (TypeError: expected str)

Post by devenrai »

[Solved] Update: Mintupgrade 2022.08.13 fixed all problems!
Locked

Return to “Installation & Boot”