Discord broke again courtesy of a forced update, quick and dirty workaround included
On the latest discord update, from version 0.0.20 to 0.0.21, it forces you to choose deb, tar.gz, or "I'll figure it out." The quick and dirty workaround is as follows -
cd /opt/discord/resources
sudo nano build_info.json
In there, just change the version from 0.0.20 to 0.0.21, save and quit. Open Discord normally, and it will download updates and log back in as normal.
If the above does not work, the best suggestion I got is to wait for the updated package to appear in the repo.
Edited 22 Oct 2022. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 140 · 89% up
- Kind
- Text
- ID
- yacgnu
59 comments
it is very well explained in the ArchWiki.
no need to edit a file in /opt/ and trick Discord into thinking it's a newer version, as this can sometimes cause an issue.
https://wiki.archlinux.org/title/Discord#Discord_asks_for_an_update_not_yet_available_in_the_repository
Something like this is posted every time discord updates and every time there's a comment with the archwiki solution 🥲
Deleted before we saved it.
Might be missing something, but can’t you just add “SKIP_HOST_UPDATE”: true to your .config/discord/settings.json?
I did. You need to include the comma at the end of the line that the Wiki doesn't mention. E.g. here's my amended config file:
Well it is a json file after all.
Depends on where you put it. If it's the last property it can't have a comma.
This has never worked for me, not sure why :/
Its hardly any trouble to just update it yourself though.
It's as easy as
if you're lazy, maybe bother to update the checksums if you're determined.
This will not update to a newer version of discord, it'll only change version
Trick with changing json will work and will be repaired by pacman in next update (it's on Arch wiki)
You have it exactly backwards, this does update to the newest version of Discord, while OP's suggestion will only change the module versions.
The above is basically all the package maintainer is going to do when they build the updated package for the repos. It's silly to wait for them to do it for you if you want the update now.
Yes, I know it's on the wiki. I wrote that section and used to revert this hack when people kept adding it, but don't bother anymore.
At least one of us doesn't understand what those commands do. Maybe both of us! But it looks to me like that downloads the PKGBUILD from the Arch repo, changes the file that it downloads from Discord's official site, then rebuilds and installs the package. So that should actually update Discord to the latest version. Assuming there are no changes to the required dependencies, that is the same change to the PKGBUILD that the maintainer will make once they get around to updating the package on the repo.
Yes it will upgrade Discord to the new version, since you are building a package for it.
Now a valid answer is going in downvote hell.
You can download the tar.gz, extract it and run it from the extracted directory until the repos are updated.
Expanding on this:
You can also just extract the tarball inside the
/opt/, delete the soft link/bin/discordand create a new one, from/opt/Discord/Discord. That way, pacman can make changes to it regardlessThat's been a process that resulted in bad things happening for me, since all the tutorials I could find for a first timer attempting it had some assumptions of knowledge of the process that I really don't have.
You don't install it, you extract it to your home directory. Go into the extracted directory and ./discord
When pacman upgrades discord, delete the dir in your home..
Works 100% of the time.
You have no idea, this morning I bricked my install trying to do that and spent almost all day getting back to where I was...
I hate the fact that the entire goddamn world uses this app. it's gobshite and slow as molasses. The 6-digit income devs that make Discord just assume that everyone in the world has an i9-13900k paired with 128GB of DDR5.
And isn't the entire point of an Electron App is that you can seamlessly update your JS code since it's just Chromium stuck to one web page?
Oh boy if I you think Discord is slow wait until you try Microsoft Teams
I just tried it.
Something tells me money isn't a guarantee for good software.....
Friends don't let friends use Discord. Also one malicious user reports you and your "server" is gone. (one user uploads banned stuff, the other reports, moderation deletes).
If I really have to use it for something it's in a private browser window.
EDIT: worst thing is when people use it as a bug tracker: no search, not on any search engine. Downloads gated behind an account.
A number of groups I'm in shut down their forums and moved to Discord. All that wealth of easily searchable, recorded and organized information, either gone or abandoned. I hated it.
I make the file ~/.local/bin/discord and then change the .desktop files and such to run from it, with the following contents:
It speeds up the program quite a bit for me. It's the same launch flags the flatpak for discord uses.
This package could be automatically built and uploaded by the maintainer. It would save the hassle of meddling with the updates in a very short window.
Flathub does this with a bot, works pretty well
That's why I use it. Such a headache liberator.
How would signing the package work automatically?
You can't put your signing key on the same machine as the automated package builder? Or it needs cross-signing? I am not aware of the signing process though.
Thanks, this worked for me. But the directory for that file, for me at least, is /opt/discord/resources as opposed to being located in the home folder as indicated above
Thanks, updated it. I thought it looked a bit off.
I don't know this issue always comes up. Brodie Robertson had made a video about this already. You need nit change the version in info files to show you have a new versuon. You can just ask discord to just not do version check anymore, by jut setting an option in configuration. https://youtu.be/3OEfr7L-gUk
Just upgrade the package yourself:
I've been using the flatpak for years and I haven't had this issue. You can also use webcord if you want better control over permissions and way better Wayland support (you can screenshare for example)
This is why I use the flatpak as backup.
If you can try Flatpak/Snap after that change I never got any problem with Discord.
As others have said, the easy option is just use the flatpak version of Discord. This is not an issue there.
I've only used discord a little bit. does the app offer much that the web version can't do?
Keybindings for one because no one wants to hear what’s going on in your background
Or you can install this from the AUR:
https://aur.archlinux.org/packages/discord-update-skip-git
Then run the command discord-update-skip in the terminal to patch the current version, and discord won't bother you with update notices anymore. I'm running the 0.0.20 version right now.
I just install the standard package and the canary package and when one does this, the other is usually working. I like your fix better though, much more “hold my beer, I got this”.
I temporarily build from aur till the main repo is updated.
I just have a small script for this. Before running the script for the first time, I removed the Discord package (
sudo pacman -R discord):The first time you do this, copy
/opt/Discord/discord.desktopto.local/share/applications/discord.desktopand change theExeclocation in that file to/opt/Discord/Discord. The next time this happens, you can just run the script and it will work without messing with thediscord.desktopfile.just use this PKGBUILD, build with
makepkg -sito be clear this is the PKGBUILD of the repo package, just with the new version instead
there is some weirdness with the checksums, so run makepkg script once, then keep the downloaded .html files and insert their checksums generated by
sha512sum *.htmlinto the PKGBUILD and run makepkg againUPDATE: aaaand the official package has been updated :)
Deleted before we saved it.
I created this update script https://gitlab.com/dustwolf/discord-update It changes the settings to disable auto-updates and then updates the package using a systemd timer.
The code is made to work on Ubuntu but can probably be adapted for other platforms without much trouble.
The solution is comparable to using a snap, but less centralized (I don't trust snaps).
Deleted before we saved it.
This defeats the purpose of using a package manager.
Deleted before we saved it.
Deleted before we saved it.