mintuptdate no longer starts after switch to mate

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
netzwanze
Level 1
Level 1
Posts: 16
Joined: Thu Oct 03, 2019 12:42 pm

mintuptdate no longer starts after switch to mate

Post by netzwanze »

Hi,

i switched to mate desktop. And removed all cinnamon packages. Now mintuptdate no longer:

Code: Select all

/usr/lib/linuxmint/mintUpdate/mintUpdate.py:1274: DeprecationWarning: Gdk.threads_init is deprecated
  Gdk.threads_init()
/usr/lib/linuxmint/mintUpdate/mintUpdate.py:1422: DeprecationWarning: Gtk.ImageMenuItem.set_image is deprecated
  menuItem3.set_image(image)
/usr/lib/linuxmint/mintUpdate/mintUpdate.py:722: DeprecationWarning: Gdk.threads_enter is deprecated
  Gdk.threads_enter()
/usr/lib/linuxmint/mintUpdate/mintUpdate.py:729: DeprecationWarning: Gdk.threads_leave is deprecated
  Gdk.threads_leave()
module 'cinnamon' has no attribute 'UpdateManager'
<class 'AttributeError'>
-- Exception occurred in the refresh thread:
Traceback (most recent call last):
  File "/usr/lib/linuxmint/mintUpdate/mintUpdate.py", line 925, in run
    for update in self.application.cinnamon_updater.get_updates():
AttributeError: 'MintUpdate' object has no attribute 'cinnamon_updater'
How resolve this problem?

Thanks
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Moonstone Man
Level 16
Level 16
Posts: 6054
Joined: Mon Aug 27, 2012 10:17 pm

Re: mintuptdate no longer starts after switch to mate

Post by Moonstone Man »

netzwanze wrote: Sun Aug 01, 2021 2:57 am i switched to mate desktop. And removed all cinnamon packages. Now mintuptdate no longer:
Bad idea. Really bad.
How resolve this problem?
Backup your important files and clean install because there's no telling what damage you've done.
netzwanze
Level 1
Level 1
Posts: 16
Joined: Thu Oct 03, 2019 12:42 pm

Re: mintuptdate no longer starts after switch to mate

Post by netzwanze »

Yes i know not realy clever but i think it is not the big problem. I think by solving the problem i can also learn more.
Moonstone Man
Level 16
Level 16
Posts: 6054
Joined: Mon Aug 27, 2012 10:17 pm

Re: mintuptdate no longer starts after switch to mate

Post by Moonstone Man »

netzwanze wrote: Sun Aug 01, 2021 3:07 am Yes i know not realy clever but i think it is not the big problem.
I repeat: There's no telling what damage you've done.
I think by solving the problem i can also learn more.
Ok. Good luck.
User avatar
Pierre
Level 21
Level 21
Posts: 13224
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: mintuptdate no longer starts after switch to mate

Post by Pierre »

you certainly can learn from what you've done there,
but randomly removing system files, can easily break stuff.
:mrgreen:
been there, done that.

eventually, it will pay to re-install, anyway.

NB: you don't have to remove an files for another Desktop Environment,
as you can safely leave them insitu, whilst exploring the New Desktop Environment.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
kelebek333
Level 4
Level 4
Posts: 419
Joined: Sat Jun 25, 2011 11:57 am

Re: mintuptdate no longer starts after switch to mate

Post by kelebek333 »

You can try to install meta packages with following commands.

Code: Select all

sudo apt install --reinstall mint-meta-mate mint-common mint-meta-core

Code: Select all

sudo apt-get -o Dpkg::Options::="--force-overwrite" install mint-info-mate

Code: Select all

sudo apt purge mint-info-cinnamon

Code: Select all

sudo apt install --reinstall mint-info-mate
aarrgghh
Level 1
Level 1
Posts: 1
Joined: Thu Jan 27, 2022 1:36 am

Re: mintuptdate no longer starts after switch to mate [SOLVED]

Post by aarrgghh »

For people in the same situation, I found myself with the same problem and (after a little hunting around), have identified the problem and a solution.

Even removing the various cinnamon packages doesn't actually remove everything cinnamon. Amongst other things, the "cinnamon" python library remains, and this interferes with mintUpdate. (When mintUpdate can see the library, it assumes it's running under a cinnamon session.)

The fix is easy - remove the python "cinnamon" library (which is useless if you are no longer running the cinnamon desktop). From a terminal session, rename the package to something that won't be found (or you could just remove it completely) - execute:

Code: Select all

cd /usr/lib/python3/dist-packages
sudo mv cinnamon cinnamon.OLD
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: mintuptdate no longer starts after switch to mate

Post by smurphos »

Odd that it should remain - /usr/lib/python3/dist-packages/cinnamon and it's contents are all children of the cinnamon package, so if that was properly removed then the directory shouldn't be present.. You are correct that mint -update try's to import this library and if it can it then sets a flag for CINNAMON_SUPPORT.

It is a bit of an art of apt surgery to install an alternative environment, and remove an existing - not for the faint hearted, and not for those allergic to examining in detail and understanding the output of remove commands before hitting the Y button. During the process some packages will definitely get removed that need to be reinstalled before the user reboots or logs out.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Locked

Return to “Software & Applications”