desktop: [Bug]: Can not Update Mattermost Desktop on Ubuntu

Before you file a bug report

Mattermost Desktop Version

5.2.2-382 -> 5.3.1-496

Operating System

Ubuntu Linux 22.04 LTS x64

Mattermost Server Version

7.1.3

Steps to reproduce

I want to update my mattermost desktop on Ubuntu.

So I have an repo /etc/apt/sources.list.d/mattermost_stable.list

deb https://deb.packages.mattermost.com stable main

And do

apt update
apt upgrade

Expected behavior

Mattermost Deskop will be updated.

Observed behavior

There is an error on the Update

root@bikelane:/home/sanders/src/scaleup-ansible# LANG=C apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  python3-marshmallow python3-pyelftools python3-semantic-version python3-tabulate
Use 'apt autoremove' to remove them.
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  imagemagick libjs-jquery-ui libavdevice58 ffmpeg libopenexr25 libpostproc55
  libmagickcore-6.q16-6-extra libavcodec58 libmagickwand-6.q16-6 libavutil56
  imagemagick-6.q16 libswscale5 libeditorconfig0 libmagickcore-6.q16-6
  libswresample3 imagemagick-6-common libavformat58 libavfilter7
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages will be upgraded:
  alsa-ucm-conf distro-info-data google-chrome-stable mattermost-desktop
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 74.0 MB/168 MB of archives.
After this operation, 112 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 https://deb.packages.mattermost.com stable/main amd64 mattermost-desktop amd64 5.3.1-496 [74.0 MB]
Err:1 https://deb.packages.mattermost.com stable/main amd64 mattermost-desktop amd64 5.3.1-496
  File has unexpected size (74034020 != 74048594). Mirror sync in progress? [IP: 2600:9000:236e:6600:5:5ce6:8a40:93a1 443]
  Hashes of expected file:
   - SHA512:4c87f8ffc783c02fa2cf8bab9032b16d488de0b4280f45e0dd3b15cd902378ed45f98ce039a3ea9dcd77e54d35fd01b17d01dd663f1b43892d0b29af06d32af8
   - SHA256:df1c6731af6d24407254be640082f0b252445097920905fae4c15eae1ee49512
   - SHA1:e58fcba69cb43954aeeff5d948d875c466a0fa06 [weak]
   - MD5Sum:8000df987a2c125b0d571662b9ac257a [weak]
   - Filesize:74048594 [weak]
E: Failed to fetch https://deb.packages.mattermost.com/pool/main/m/mattermost-desktop/mattermost-desktop_5.3.1-1_amd64.deb  File has unexpected size (74034020 != 74048594). Mirror sync in progress? [IP: 2600:9000:236e:6600:5:5ce6:8a40:93a1 443]
   Hashes of expected file:
    - SHA512:4c87f8ffc783c02fa2cf8bab9032b16d488de0b4280f45e0dd3b15cd902378ed45f98ce039a3ea9dcd77e54d35fd01b17d01dd663f1b43892d0b29af06d32af8
    - SHA256:df1c6731af6d24407254be640082f0b252445097920905fae4c15eae1ee49512
    - SHA1:e58fcba69cb43954aeeff5d948d875c466a0fa06 [weak]
    - MD5Sum:8000df987a2c125b0d571662b9ac257a [weak]
    - Filesize:74048594 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Log Output

root@bikelane:/home/sanders/src/scaleup-ansible# LANG=C apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  python3-marshmallow python3-pyelftools python3-semantic-version python3-tabulate
Use 'apt autoremove' to remove them.
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  imagemagick libjs-jquery-ui libavdevice58 ffmpeg libopenexr25 libpostproc55
  libmagickcore-6.q16-6-extra libavcodec58 libmagickwand-6.q16-6 libavutil56
  imagemagick-6.q16 libswscale5 libeditorconfig0 libmagickcore-6.q16-6
  libswresample3 imagemagick-6-common libavformat58 libavfilter7
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages will be upgraded:
  alsa-ucm-conf distro-info-data google-chrome-stable mattermost-desktop
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 74.0 MB/168 MB of archives.
After this operation, 112 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 https://deb.packages.mattermost.com stable/main amd64 mattermost-desktop amd64 5.3.1-496 [74.0 MB]
Err:1 https://deb.packages.mattermost.com stable/main amd64 mattermost-desktop amd64 5.3.1-496
  File has unexpected size (74034020 != 74048594). Mirror sync in progress? [IP: 2600:9000:236e:6600:5:5ce6:8a40:93a1 443]
  Hashes of expected file:
   - SHA512:4c87f8ffc783c02fa2cf8bab9032b16d488de0b4280f45e0dd3b15cd902378ed45f98ce039a3ea9dcd77e54d35fd01b17d01dd663f1b43892d0b29af06d32af8
   - SHA256:df1c6731af6d24407254be640082f0b252445097920905fae4c15eae1ee49512
   - SHA1:e58fcba69cb43954aeeff5d948d875c466a0fa06 [weak]
   - MD5Sum:8000df987a2c125b0d571662b9ac257a [weak]
   - Filesize:74048594 [weak]
E: Failed to fetch https://deb.packages.mattermost.com/pool/main/m/mattermost-desktop/mattermost-desktop_5.3.1-1_amd64.deb  File has unexpected size (74034020 != 74048594). Mirror sync in progress? [IP: 2600:9000:236e:6600:5:5ce6:8a40:93a1 443]
   Hashes of expected file:
    - SHA512:4c87f8ffc783c02fa2cf8bab9032b16d488de0b4280f45e0dd3b15cd902378ed45f98ce039a3ea9dcd77e54d35fd01b17d01dd663f1b43892d0b29af06d32af8
    - SHA256:df1c6731af6d24407254be640082f0b252445097920905fae4c15eae1ee49512
    - SHA1:e58fcba69cb43954aeeff5d948d875c466a0fa06 [weak]
    - MD5Sum:8000df987a2c125b0d571662b9ac257a [weak]
    - Filesize:74048594 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Additional Information

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 33
  • Comments: 16 (4 by maintainers)

Most upvoted comments

Our release team says this should be fixed now, is anyone able to test?

You can do so by running this:

sudo apt-get clean 
sudo apt-get update
sudo apt-get install mattermost-desktop 
or 
sudo apt-get upgrade

@fishgit thank you for the workaround. But there is a reason, that there are crypto checks in apt. With this solution you do not check any checksums at all. So if someone has hacked deb.packages.mattermost.com you can download bad thinks.

[…] I have removed Mattermost’s apt source as a result.

Just a quick APT sidenote: one can apt-mark hold mattermost-desktop to prevent the Mattermost client from blocking other upgrades. This allows manual attempts at the upgrade, e.g. to check whether a fix has been released: apt install --only-upgrade mattermost-desktop. Once this is the case, apt-mark unhold mattermost-desktop will undo this.

Sent from my Debian 11.6 amd64.

Thanks for letting us know, I’ll reach out to our release team to check this out.

@jhammons there are 4 “same here”/“me too” comments (including yours) already. For all of them we got mails. The issue got reported and they’re looking into it. Should be enough to know imho. So let’s just wait for them to fix it. Those comments aren’t helpful. They’re just annoying.

Hi, same problem here on Ubuntu 22.04.2 LTS. Have a nice day

It seems to be fixed. I installed version 5.3.1-496 of mattermost-desktop

✅ Nice 😄

Our release team says this should be fixed now, is anyone able to test?

I can confirm an update without errors on Kubuntu 22.04.