Is there a way to upgrade 20.3 to 21.1 on the command line

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
mauricev
Level 1
Level 1
Posts: 26
Joined: Wed Nov 18, 2020 7:43 pm

Is there a way to upgrade 20.3 to 21.1 on the command line

Post by mauricev »

The command

Code: Select all

sudo mintupgrade
says

Code: Select all

(mintupgrade.py:6757): Gtk-WARNING **: 11:09:14.937: cannot open display:
Is there any way to do it using only the command line?
User avatar
Moem
Level 22
Level 22
Posts: 15035
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Is there a way to upgrade 20.3 to 21.1 on the command line

Post by Moem »

Here's a hint on how to upgrade to 21 (21.1 is not out yet) without using the mintupgrade tool. But it might be better to solve the problem you're having; maybe someone can help.

https://blog.linuxmint.com/?p=4378#comment-315633
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
mauricev
Level 1
Level 1
Posts: 26
Joined: Wed Nov 18, 2020 7:43 pm

Re: Is there a way to upgrade 20.3 to 21.1 on the command line

Post by mauricev »

I am trying to upgrade a number of computers.

What’s on that page is woefully incomplete. I had to change a lot of text entries in /etc to 21. And some packages have been replaced in 21 such as fuse with fuse3. Needless to say, it failed to upgrade. Specifically, I lost the GUI.

The log has this

Code: Select all

Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-orientation' does not exist: No such file or directory
Sep 26 17:39:29 m3 kernel: [   17.673273] systemd-journald[588]: File /var/log/journal/ba32ae59052b4bffb66e765e502b8a0f/user-1000.journal corrupted or uncleanly shut down, renaming and replacing.
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dorientation@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-a11y-keyboard' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2da11y\x2dkeyboard@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-color' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dcolor@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-cursor' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dcursor@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-wacom' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dwacom@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-mouse' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dmouse@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-a11y-settings' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2da11y\x2dsettings@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-background' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dbackground@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-screensaver-proxy' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dscreensaver\x2dproxy@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-print-notifications' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dprint\x2dnotifications@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-sound' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dsound@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-smartcard' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dsmartcard@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-xsettings' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dxsettings@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-housekeeping' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dhousekeeping@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-keyboard' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dkeyboard@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-clipboard' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dclipboard@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-power' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dpower@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-xrandr' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dxrandr@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'onboard' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-onboard\x2dautostart@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-media-keys' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dmedia\x2dkeys@autostart.service, error parsing Exec= line: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Exec binary 'csd-automount' does not exist: No such file or directory
Sep 26 17:39:29 m3 systemd-xdg-autostart-generator[1371]: Not generating service for XDG autostart app-cinnamon\x2dsettings\x2ddaemon\x2dautomount@autostart.service, error parsing Exec= line: No such file or directory
but it’s not clear if this is just noise or the actual cause for the GUI to fail.
mauricev
Level 1
Level 1
Posts: 26
Joined: Wed Nov 18, 2020 7:43 pm

Re: Is there a way to upgrade 20.3 to 21.1 on the command line

Post by mauricev »

It seems the package cinnamon-settings-daemon is gone but

Code: Select all

 cinnamon-settings-daemon : Depends: libwacom2 (>= 1.1) but it is not installable
but libwacom2 is no longer in 21.
User avatar
spamegg
Level 9
Level 9
Posts: 2799
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: Is there a way to upgrade 20.3 to 21.1 on the command line

Post by spamegg »

Because of problems like these and many more, it's best not to upgrade. Either wait until 2025 or do fresh installs of Mint 21.
User avatar
SMG
Level 23
Level 23
Posts: 18867
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Is there a way to upgrade 20.3 to 21.1 on the command line

Post by SMG »

mauricev wrote:
Mon Sep 26, 2022 5:41 pm
What’s on that page is woefully incomplete.
There are instructions at the top and lots of tips throughout the comments. If you have more than just a basic Linux Mint install then extra care is needed to know if everything will upgrade properly.

The info at the top of that page leads to this one which indicates under the notes, "the upgrade overwrites files in /etc/ with default configuration files. You can restore files indivually by the Timeshift snapshot you made prior to upgrading."

Is that what you mean by
mauricev wrote:
Mon Sep 26, 2022 5:41 pm
I had to change a lot of text entries in /etc to 21.
If so, that would seem to indicate that would be necessary.
mauricev wrote:
Mon Sep 26, 2022 5:41 pm
And some packages have been replaced in 21 such as fuse with fuse3. Needless to say, it failed to upgrade. Specifically, I lost the GUI.
It is not uncommon for some packages to need replaced. When you ran the test prior to upgrading, did it indicate there were problems?

Did you take a Timeshift snapshot (or other backup) before starting?
mauricev wrote:
Mon Sep 26, 2022 5:41 pm
but it’s not clear if this is just noise or the actual cause for the GUI to fail.
The log output you posted seems to indicate there are a lot of Cinnamon files missing. That could definitely explain why the GUI is not working.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
Jo-con-Ël
Level 8
Level 8
Posts: 2016
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: Is there a way to upgrade 20.3 to 21.1 on the command line

Post by Jo-con-Ël »

SMG wrote:
Mon Sep 26, 2022 8:34 pm
mauricev wrote:
Mon Sep 26, 2022 5:41 pm
What’s on that page is woefully incomplete.
There are instructions...
I think mauricev is talking about Clem's answer to VovIK (see link on Moem's post).

That is only an answer, presume intentionally vague, not detailed instructions to do it from ssh. The recommend way to upgrade for me will ever be a fresh install as Clem state few years ago on How to upgrade to a newer release (that was before point releases, mintupgrade tool, Timeshift,..).

Those files on /etc/ folder should be issue, issue.net, lsb-release,..I remember in old times, after changing repositories you were asked to keep or replace those files when running apt upgrade & apt dist-upgrade.
Last edited by Jo-con-Ël on Tue Sep 27, 2022 5:39 am, edited 5 times in total.
Arrieritos semos y en el camino nos encontraremos.
Cosmo.
Level 24
Level 24
Posts: 22055
Joined: Sat Dec 06, 2014 7:34 am

Re: Is there a way to upgrade 20.3 to 21.1 on the command line

Post by Cosmo. »

mauricev wrote:
Mon Sep 26, 2022 5:41 pm
I am trying to upgrade a number of computers.
This sounds like batch processing. No, upgrading is far too complex for an automated process. (I think, most users would be happy, if such a thing would exist, even if they only have one computer.)
Gotcha!
User avatar
Pjotr
Level 23
Level 23
Posts: 18147
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Is there a way to upgrade 20.3 to 21.1 on the command line

Post by Pjotr »

spamegg wrote:
Mon Sep 26, 2022 6:26 pm
Because of problems like these and many more, it's best not to upgrade. Either wait until 2025 or do fresh installs of Mint 21.
+1

It's always the same misery when a new major Mint series has been launched. Every two years.

I only recommend in-place upgrading within a particular Mint series, e.g. from 20.2 to 20.3. Because only then the underlying Ubuntu code base remains unchanged, which reduces the upgrade risks to near zero.
Tip: 10 things to do after installing Linux Mint 21 Vanessa
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Post Reply

Return to “Installation & Boot”