# \[Snappymail\] Unable to upgrade

**URL:** https://forum.yunohost.org/t/snappymail-unable-to-upgrade/30492
**Category:** Support apps
**Tags:** snappymail, bug, english
**Created:** [July 20, 2024, 8:30am UTC](https://forum.yunohost.org/t/snappymail-unable-to-upgrade/30492 "2024-07-20T08:30:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lnoferin](https://forum.yunohost.org/user_avatar/forum.yunohost.org/lnoferin/32/2043_2.png) [@lnoferin](https://forum.yunohost.org/u/lnoferin)
#### Post date: [July 20, 2024, 8:30am UTC](https://forum.yunohost.org/t/snappymail-unable-to-upgrade/30492/1 "2024-07-20T08:30:40Z")

</div>

### My YunoHost server

**Hardware:** Old laptop or computer  
**YunoHost version:** 11.2.22  
**I have access to my server :** Through SSH | through the webadmin  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : no

### Description of my issue

Today I tried to upgrade snappymail but I get this error

```auto
Warning: E: Packages need to be removed but remove is disabled.                                                                      
Warning: The following packages have unmet dependencies:          
Warning: php8.3-gmagick : Depends: libgraphicsmagick-q16-3 (>= 1.3.20) but it is not going to be installed                          
Warning: Conflicts: php-imagick                                                                                    
Warning: Recommends: ttf-dejavu-core but it is not installable
Warning: Unable to install apt dependencies

```

Full log at [https://paste.yunohost.org/raw/hexanoyojo](https://paste.yunohost.org/raw/hexanoyojo)

P.S.: I am on travel now so I cannot study the problem more so I am not sure that this is not a simple problem

---

<div class="post-metadata">

### Author: ![adlmr](https://forum.yunohost.org/user_avatar/forum.yunohost.org/adlmr/32/4280_2.png) [@adlmr](https://forum.yunohost.org/u/adlmr)
#### Post date: [July 20, 2024, 7:34pm UTC](https://forum.yunohost.org/t/snappymail-unable-to-upgrade/30492/2 "2024-07-20T19:34:10Z")

</div>

Hello,  
I just had the same problem on 2 servers

On the 1st one, I corrected it using `apt install php8.3-gmagick` then the snappymail update was possible.

On the 2nd one, this didn’t work. I had to run:

```auto
apt-get remove php-gmagick php-imagick
apt-get update
apt-get install php8.3-imagick

```

then it worked.

---

<div class="post-metadata">

### Author: ![lnoferin](https://forum.yunohost.org/user_avatar/forum.yunohost.org/lnoferin/32/2043_2.png) [@lnoferin](https://forum.yunohost.org/u/lnoferin)
#### Post date: [July 20, 2024, 9:02pm UTC](https://forum.yunohost.org/t/snappymail-unable-to-upgrade/30492/3 "2024-07-20T21:02:41Z")

</div>

It did not work for me ☹

And now I have a different error:

```auto
yunohost app upgrade snappymail
Info: Now upgrading snappymail…
Info: Creating a safety backup prior to the upgrade
Info: Collecting files to be backed up for snappymail…
Info: Declaring files to be backed up...
Warning: /var/cache/yunohost/app_tmp_work_dirs/app_n7vlsnz8/scripts/backup: line 30: phpversion: unbound variable
Error: Could not back up snappymail
Info: The operation 'Create a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20240720-210051-backup_create' to get help
Error: Nothing to save

```

Full log here [https://paste.yunohost.org/raw/izesiyinun](https://paste.yunohost.org/raw/izesiyinun)

---

<div class="post-metadata">

### Author: ![lnoferin](https://forum.yunohost.org/user_avatar/forum.yunohost.org/lnoferin/32/2043_2.png) [@lnoferin](https://forum.yunohost.org/u/lnoferin)
#### Post date: [July 25, 2024, 6:17am UTC](https://forum.yunohost.org/t/snappymail-unable-to-upgrade/30492/4 "2024-07-25T06:17:06Z")

</div>

I needed to reinstall from a backup and then I could upgrade using your tip!  
Thanks!

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [August 24, 2024, 6:17am UTC](https://forum.yunohost.org/t/snappymail-unable-to-upgrade/30492/5 "2024-08-24T06:17:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
