Crystal broke apt updates

I’m trying to update yunohost (from 11.2.10.3 to 11.2.11.2).

in the UI I’m getting this error:

**Error**: `"400"`

**Action**: `"PUT" /yunohost/api/upgrade/system`

**Error message:**

You cannot do this right now because dpkg/APT (the system package managers) seems to be in a broken state... You can try to solve this issue by connecting through SSH and running `sudo apt install --fix-broken` and/or `sudo dpkg --configure -a` and/or `sudo dpkg --audit`.

When i run this command I’m also getting error:
sudo apt install --fix-broken

root@cc:~# sudo apt install --fix-broken

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

Correcting dependencies... Done

The following package was automatically installed and is no longer required:

crystal1.11

Use 'sudo apt autoremove' to remove it.

The following additional packages will be installed:

crystal1.12

The following NEW packages will be installed:

crystal1.12

0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.

1 not fully installed or removed.

Need to get 0 B/32.3 MB of archives.

After this operation, 136 MB of additional disk space will be used.

Do you want to continue? [Y/n] y

(Reading database ... 86835 files and directories currently installed.)

Preparing to unpack .../crystal1.12_1.12.1-1+1.1_amd64.deb ...

Unpacking crystal1.12 (1.12.1-1+1.1) ...

**dpkg:** error processing archive /var/cache/apt/archives/crystal1.12_1.12.1-1+1.1_amd64.deb (--unpack):

trying to overwrite '/usr/bin/crystal', which is also in package crystal1.11 1.11.2-1+1.2

**dpkg-deb:** **error:** paste subprocess was killed by signal (Broken pipe)

Errors were encountered while processing:

/var/cache/apt/archives/crystal1.12_1.12.1-1+1.1_amd64.deb

**E:** Sub-process /usr/bin/dpkg returned an error code (1)

Anyone knows how exactly this can be fixed?

2 Likes

hi!

can you try the following commands?

sudo apt remove crystal && sudo apt autoremove
sudo apt install crystal
sudo apt update && sudo apt upgrade

(i renamed the topic btw)

4 Likes

Amazing!
Thank you very much.

2 Likes

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