<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ubuntu on 大卷学长的博客</title><link>https://blog.liurb.org/tags/ubuntu/</link><description>Recent content in Ubuntu on 大卷学长的博客</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><lastBuildDate>Wed, 10 Jun 2026 10:05:45 +0000</lastBuildDate><atom:link href="https://blog.liurb.org/tags/ubuntu/index.xml" rel="self" type="application/rss+xml"/><item><title>Ubuntu 安装微信 Linux 版及依赖缺失报错解决办法</title><link>https://blog.liurb.org/posts/2026/06/10/ubuntu26_wechat/</link><pubDate>Wed, 10 Jun 2026 10:05:45 +0000</pubDate><guid>https://blog.liurb.org/posts/2026/06/10/ubuntu26_wechat/</guid><description>&lt;img src="https://blog.liurb.org/images/posts/2026/wechat_linux_logo.png" alt="Featured image of post Ubuntu 安装微信 Linux 版及依赖缺失报错解决办法" />&lt;h2 id="wechat-linux-版本">wechat linux 版本
&lt;/h2>&lt;p>下载地址&lt;/p>
&lt;blockquote>
&lt;p>&lt;a class="link" href="https://linux.weixin.qq.com/" target="_blank" rel="noopener"
>https://linux.weixin.qq.com/&lt;/a>&lt;/p>&lt;/blockquote>
&lt;p>一般选择 &lt;code>X86版&lt;/code>，并选择 &lt;code>deb&lt;/code> 格式的安装包&lt;/p>
&lt;h3 id="安装">安装
&lt;/h3>&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">sudo apt install ./WeChatLinux_x86_64.deb
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h2 id="ubuntu-打开-wechat-提示报错">ubuntu 打开 wechat 提示报错
&lt;/h2>&lt;h3 id="wechat-error-while-loading-shared-libraries-libxkbcommon-x11so0-cannot-open-shared-object-file-no-such-file-or-directory">wechat: error while loading shared libraries: libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory
&lt;/h3>&lt;h4 id="安装缺失依赖">安装缺失依赖
&lt;/h4>&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">sudo apt install libxkbcommon-x11-0 libxcb-cursor0
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h3 id="wechat-error-while-loading-shared-libraries-libxcb-icccmso4-cannot-open-shared-object-file-no-such-file-or-directory">wechat: error while loading shared libraries: libxcb-icccm.so.4: cannot open shared object file: No such file or directory
&lt;/h3>&lt;h4 id="安装缺失依赖-1">安装缺失依赖
&lt;/h4>&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">sudo apt install libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-shape0 libxcb-xinerama0 libxcb-xfixes0
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h2 id="终极排查技巧">终极排查技巧
&lt;/h2>&lt;p>如果安装完这些后，依然提示缺少某个 .so 文件，你可以直接使用我上次提到的 apt-file 工具来精准查找并安装。例如，如果报错缺少 libxxxx.so.x，只需执行：&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">apt-file search libxxxx.so.x
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>在输出的结果中找到包含 &lt;code>amd64:&lt;/code> 的包名（例如 &lt;code>libxxxx4:amd64&lt;/code>），然后使用 &lt;code>sudo apt install 包名&lt;/code> 安装即可。&lt;/p></description></item></channel></rss>