Unable to install whatsapp and pinta snap on LMC 22.0

Installed snap on Linux Mint Cinnamon 22.0 which is Ubuntu 24.04, with the following commands which worked perfectly well in earlier Linux Mint Cinnamon versions.

sudo rm /etc/apt/preferences.d/nosnap.pref
sudo apt install snapd -y
sudo snap install core
sudo snap install pinta
sudo snap install whatsapp-for-linux

But now, when installing, I get the following error, and pinta, also doesn’t work, although it’s listed installed. What am I doing wrong?

ineuw@lmc220:~$ sudo snap install whatsapp-for-linux
error: cannot perform the following tasks:
- Run configure hook of "whatsapp-for-linux" snap if present (run hook "configure": cannot locate base snap core20: No such file or directory)

Hi ! @ineuw .

Try this scenario :

sudo snap refresh

sudo systemctl restart snapd

sudo snap install core20

sudo snap install whatsapp-for-linux

@baldeuniversel - Thanks for the reply. There is something wrong somewhere with this install. I used the identical script on two other Linux Mint installations (both French) successfully. This is the result of the commands:

ineuw@lmc220:~$ sudo snap refresh
[sudo] password for ineuw:          
All snaps up to date.
ineuw@lmc220:~$ sudo systemctl restart snapd
ineuw@lmc220:~$ sudo snap install core20
snap "core20" is already installed, see 'snap help refresh'
ineuw@lmc220:~$ sudo snap install whatsapp-for-linux
error: cannot perform the following tasks:
- Run configure hook of "whatsapp-for-linux" snap if present (run hook "configure": cannot locate base snap core20: No such file or directory)
ineuw@lmc220:~$

@ineuw okay.

Try to remove core20 and reinstall it, then install your desired snap package like this :

sudo   snap   remove   core20

sudo   snap   install   core20

sudo   snap   install   whatsapp-for-linux

@baldeuniversel - thanks again, but I am still lost.

ineuw@lmc220:~$ sudo snap remove core20
[sudo] password for ineuw:          
error: cannot remove "core20": snap "core20" is not removable: snap is being used by snap
       gnome-3-38-2004.

@ineuw, please show the output of this command

snap info gnome-3-38-2004

ineuw@lmc220:~$ snap info gnome-3-38-2004
name:      gnome-3-38-2004
summary:   Shared GNOME 3.38 Ubuntu stack
publisher: Canonical✓
store-url: https://snapcraft.io/gnome-3-38-2004
license:   unset
description: |
  This snap includes a GNOME 3.38 stack (the base libraries and desktop
  integration components) and shares it through the content interface.
snap-id:  rw36mkAjdIKl13dzfwyxP87cejpyIcct
tracking: latest/stable
channels:
  latest/stable:    0+git.efb213a 2023-07-12 (143) 366MB -
  latest/candidate: 0+git.efb213a 2023-07-08 (143) 366MB -
  latest/beta:      ↑                                    
  latest/edge:      0+git.6ed44b3 2022-05-13 (105) 266MB -
installed:          0+git.efb213a            (143) 366MB -
ineuw@lmc220:~$ 

My late reply is due to not being notified. Although, this is selected.

@ineuw well !

And this :face_with_monocle:

snap list --all | grep gnome-3-38-2004

I think, you can remove gnome-3-38-2004 , then remove core20, then install core20 and gnome-3-38-2004, to finalize install the desired snaps.

ineuw@lmc220:~$ snap list --all | grep gnome-3-38-2004
gnome-3-38-2004    0+git.efb213a       143    latest/stable  canonical**     -

Uninstalled and reinstalled and everything works. Your help is much appreciated…

1 Like

@ineuw well !

Feel free to close this topic by choosing the suggestion that seems most relevant to you.