From pitfalls to a perfect landing: a reusable methodology for Linux desktop software management
System: Ubuntu 26.04 (Resolute) + GNOME 50
Preface
Many people find installing WeChat on Linux quite a hassle: the official .deb package lacks sandboxing, searching the app store turns up a bunch of outdated third-party packages, and Flatpak frequently runs into network or D-Bus issues. In reality, as long as you sort out software repository management + graphics + security isolation, you can not only install WeChat smoothly but also approach other software with confidence in the future.
This article documents my entire process of installing WeChat on Ubuntu 26.04 from scratch, including 11 actual screenshots and solutions for every pitfall encountered. It will cover:
- Why Flatpak + domestic mirrors is a worry-free choice for installing graphical software on the Linux desktop
- How to troubleshoot when the app center cannot find software or gets stuck on “Preparing…”
- How to build a set of consistently useful, relatively secure, and hassle-free software maintenance habits for yourself
1. First Attempt: Downloading the .deb Package from the Official Website (Traditional Approach)
1.1 Downloading the Official Installation Package
Open the WeChat Linux official website, and you will see the latest version 4.1.1, which offers three formats: .deb, .rpm, and AppImage.

1.2 Installing Using the “App Center”
After downloading WeChatLinux_x86_64.deb, right-click the file and select “Open with App Center”.

However, the App Center immediately popped up an error window:

Cause Analysis: The App Center included with Ubuntu 26.04 (based on Snap) has stability issues when handling local .deb files, especially on newer systems. This is not an isolated case.
Summary: Relying on a single graphical tool to handle all installation tasks makes it prone to unknown errors. We need a more reliable solution.
About a day later, I decided to try again and found that opening it no longer produced an error. See Figure 12

2. App Center Search: Exposing a Bigger Problem
After giving up on installing the local .deb, I tried searching for “WeChat” directly in the App Center. The results were disappointing:
Figure 4: Searching for “WeChat” brings up unofficial packages like electronic-wechat and wechat-web-devtools.

Figure 5: Searching for “WeChat” yields the same results.

Figure 6: Changing the filter to “Debian packages” returns empty results.

Lesson Learned: The software sources in the built-in App Center vary in quality and do not include the Flatpak repository by default. An excellent software store should be able to aggregate multiple sources (APT, Snap, Flatpak) and provide clear source identification.
3. Switching to Flatpak: Building a Reliable Software Source
3.1 Why Choose Flatpak?
- Sandbox Isolation: WeChat runs in an independent environment, so even if there are vulnerabilities, they will not affect the system.
- Timely Updates: The WeChat version on Flathub is almost synchronized with the official one (currently 4.1.1.4).
- Cross-Distribution: The same installation method applies to Fedora, Debian, etc.
3.2 Installing Flatpak and the GNOME Software Plugin
Open the terminal and execute:
sudo apt update
sudo apt install flatpak gnome-software-plugin-flatpakNote: gnome-software-plugin-flatpak is the key plugin that enables GNOME Software to display Flatpak applications.
3.3 Adding the Flathub Repository (and Resolving D-Bus Errors)
The first time I executed the add command, I encountered a strange error:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# 错误: Message recipient disconnected from message bus without replyingSolution: Execute the same command again. Usually, it succeeds the second time. The reason is that the D-Bus environment for the user session might not be fully initialized, and a simple retry fixes it.
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak remotes # 验证,应看到 flathub4. Speed Optimization: Configuring a Domestic Mirror (USTC Source)
The official Flathub servers are located overseas, resulting in extremely slow download speeds. After switching to a domestic mirror, the speed skyrocketed from tens of KB/s to over 10 MB/s.
sudo flatpak remote-modify flathub --url=https://mirrors.ustc.edu.cn/flathubVerify the changes:
flatpak remotes --show-details | grep flathubExample Output: flathub Flathub https://mirrors.ustc.edu.cn/flathub/ ...
Best Practice: For any Linux distribution, configuring domestic mirror sources immediately (including system sources and Flatpak sources) can save 90% of waiting time.
Figure 7: Searching for WeChat in Software, the browse page also only shows those two outdated projects.

Figure 8: Searching for “WeChat” again, an additional entry named WeChat appears

Figure 9: Clicking on “WeChat”, I found it is developed by Tencent and sourced from Flathub

5. Graphical Interface Installation: What to Do When Stuck on “Preparing…”?
5.1 Restart GNOME Software and Clear the Cache
killall gnome-software 2>/dev/null
rm -rf ~/.cache/gnome-software
gnome-software &After executing the above commands in the terminal, reopen GNOME Software. Searching for “WeChat” now shows the official version from Flathub (the icon is a green bubble, and the source is marked “Flathub”).
Figure 10: Click the Install button, and the progress bar shows “Preparing…”.

5.2 Terminal Prints Numerous Warnings, but the Installation Process Hangs
In the terminal, I saw the following output:
07:06:27:949 Gs updates-shell: failed to get upgrades: no plugin could handle listing distro upgrades
07:13:40:757 flatpak 警告:在远程仓库 flathub 中没有引用“runtime/org.gtk.Gtk3theme.Yaru/x86_64/3.22”
...Analysis:
failed to get upgradesoccurs becausegnome-software-plugin-aptis missing, but this plugin is no longer provided in Ubuntu 26.04, so this warning is harmless.- Those Flatpak “no ref” warnings appear because the local cache is out of sync with the remote repository, which also does not affect the installation.
However, the graphical interface progress bar remained stuck at 99% for 10 minutes. This indicates that GNOME Software hung during the download or extraction phase.
However, you can safely ignore it. It is highly likely that only the first time takes this long, and WeChat was ultimately installed successfully.
5.3 Opening WeChatLinux_x86_64.deb with Software Install
When certain specific software packages cannot be found in Software, you must download the deb file. You can then right-click – Open With – Software Install. See Figure 13

I recommend managing everything through Software Install going forward, whether online or local. This allows for unified management later on. See Figure 14

6. Verification: WeChat Runs Successfully
After the installation is complete, find the “WeChat” icon in the application menu and click to launch it. The first launch might be slightly slow (due to sandbox initialization), but after logging in, the interface runs perfectly.
Figure 11: Screenshot of the WeChat main interface, chat history displays normally, and features like file transfer and mini-programs are all available.

If the interface is in English, after logging in, click the menu in the bottom left corner → Settings → General → Language → select 简体中文, then restart WeChat.
7. Summary: A Reusable Set of Best Practices for Software Installation and Maintenance
Through this experience, I have summarized the following 5 core principles, applicable to any Linux distribution:
| Principle | Description | Corresponding Action in This Article |
|---|---|---|
| 1. Prioritize sandboxed package formats | Flatpak / Snap provide security isolation and are recommended for closed-source or networked applications. | Chose the Flatpak version of WeChat over .deb |
| 2. Configure domestic mirror sources | System sources (apt, domestic by default) and Flatpak sources must both be switched to domestic mirrors, otherwise the speed is unbearable. | System source uses cn.archive.ubuntu.com, Flatpak switched to USTC source |
| 3. Use an aggregated software store | GNOME Software supports Flatpak + Snap + APT, which is superior to the built-in Ubuntu store. | Installed gnome-software-plugin-flatpak, managed with GNOME Software |
| 4. Understand “harmless errors” | Many warnings (such as failed to get upgrades) do not affect actual usage and do not require excessive attention. | Ignored yellow warnings in the terminal, focused on core operations |
Appendix: Common Flatpak Command Cheat Sheet
# 搜索应用(命令行)
flatpak search wechat
# 安装
flatpak install flathub com.tencent.WeChat
# 运行
flatpak run com.tencent.WeChat
# 更新所有 Flatpak 应用
flatpak update
# 卸载
flatpak uninstall com.tencent.WeChat
# 查看已安装列表
flatpak listPostscript
Besides helping you install WeChat, this blog also casually discusses some common concepts in Linux desktop software management: for instance, why multiple package formats coexist, how to use domestic mirrors to accelerate downloads, and how graphical interfaces and the command line complement each other. If you encounter similar software issues in the future, give these methods a try; you might find them less daunting. I hope this record provides you with some practical help.

