agriesser
(Alexander Griesser)
April 5, 2023, 8:02am
2
Hi @Salomon and welcome to the Mattermost forums!
This is a known issue and I’ve already Mattermost about it. There’s also a GitHub issue on that topic:
opened 06:51AM - 05 Apr 23 UTC
Type/Bug
### Before you file a bug report
- [X] I have checked the [issue tracker](https… ://github.com/mattermost/desktop/issues) and have not found an issue that matches the one I'm filing.
- [X] This issue is not a troubleshooting question. Troubleshooting questions go here: https://forum.mattermost.com/c/trouble-shoot/16.
- [X] This issue is not a feature request. You can request features and make product suggestions here: https://mattermost.com/suggestions/.
- [X] This issue doesn't reproduce on web browsers (such as in Chrome). If it does, [issue reports go to the Mattermost Server repository](https://github.com/mattermost/mattermost-server/issues).
- [X] This issue reproduces on the most recent [stable version](https://github.com/mattermost/desktop/releases/latest), or the most recent [prerelease version](https://github.com/mattermost/desktop/releases) of the Mattermost Desktop App.
- [X] I have read the [contribution guidelines](https://github.com/mattermost/desktop/blob/master/CONTRIBUTING.md).
### 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
```shell
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_
If you do not want to wait for Mattermost to fix it, you can run the following commands:
wget https://deb.packages.mattermost.com/pool/main/m/mattermost-desktop/mattermost-desktop_5.3.1-1_amd64.deb
dpkg -i mattermost-desktop_5.3.1-1_amd64.deb
Update 2023-04-06:
This workaround of course should only be used if the integrity of the file has been verified otherwise. I did not mention it here, but I compared the filesize and hashsums to the ones from GitHub (the official Mattermost release) and found out that a new release has hit the mirrors (5.3.1-495 compared to 5.3.1), so that’s most likely the reason for the difference, but besides that, the source looks good.
This command can be used to download the file directly from GitHub.
wget https://releases.mattermost.com/desktop/5.3.1/mattermost-desktop_5.3.1-1_amd64.deb
dpkg -i mattermost-desktop_5.3.1-1_amd64.deb
Right now, the problem is not solved, the package is still not installable (same error, but a new release (5.3.1-496) on the mirrors).