<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>镜像 on qytlix no blogs</title><link>https://blog.qyt.li/x/tags/%E9%95%9C%E5%83%8F/</link><description>Recent content from qytlix no blogs</description><generator>Hugo</generator><language>en-us</language><managingEditor>qytlix@gmail.com (qytlix)</managingEditor><webMaster>qytlix@gmail.com (qytlix)</webMaster><copyright>All articles on this blog are licensed under the BY-NC-SA license agreement unless otherwise stated. Please indicate the source when reprinting!</copyright><lastBuildDate>Wed, 08 Apr 2026 11:08:03 +0800</lastBuildDate><atom:link href="https://blog.qyt.li/x/tags/%E9%95%9C%E5%83%8F/index.xml" rel="self" type="application/rss+xml"/><item><title>flatpak仓库问题</title><link>https://blog.qyt.li/x/post/tech/%E6%8A%80%E6%9C%AF/flatpak%E4%BB%93%E5%BA%93%E9%97%AE%E9%A2%98/</link><pubDate>Wed, 08 Apr 2026 11:08:03 +0800</pubDate><author>qytlix@gmail.com (qytlix)</author><guid>https://blog.qyt.li/x/post/tech/%E6%8A%80%E6%9C%AF/flatpak%E4%BB%93%E5%BA%93%E9%97%AE%E9%A2%98/</guid><description>
<![CDATA[<h1>flatpak仓库问题</h1><p>Author: qytlix(qytlix@gmail.com)</p>
        
          <p>#flatpak</p>
<h1 id="显示仓库地址">
<a class="header-anchor" href="#%e6%98%be%e7%a4%ba%e4%bb%93%e5%ba%93%e5%9c%b0%e5%9d%80"></a>
显示仓库地址
</h1><p>运行</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-sh" data-lang="sh"><span class="line"><span class="cl">flatpak remotes --show-details
</span></span></code></pre></div><h1 id="配置文件地址">
<a class="header-anchor" href="#%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e5%9c%b0%e5%9d%80"></a>
配置文件地址
</h1><p>#config #配置文件
在<code>/var/lib/flatpak/repo/config</code>里面。
已经备份为<code>/var/lib/flatpak/repo/config~</code>。</p>
<h1 id="上海交通大学源">
<a class="header-anchor" href="#%e4%b8%8a%e6%b5%b7%e4%ba%a4%e9%80%9a%e5%a4%a7%e5%ad%a6%e6%ba%90"></a>
上海交通大学源
</h1><p>#镜像 #mirror</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">https://mirror.sjtu.edu.cn/flathub
</span></span></code></pre></div><p>使用如下命令更改</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-sh" data-lang="sh"><span class="line"><span class="cl">flatpak remote-modify flathub --url<span class="o">=</span>https://mirror.sjtu.edu.cn/flathub
</span></span></code></pre></div><h1 id="随时换源">
<a class="header-anchor" href="#%e9%9a%8f%e6%97%b6%e6%8d%a2%e6%ba%90"></a>
随时换源
</h1><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-sh" data-lang="sh"><span class="line"><span class="cl">./change-repo
</span></span><span class="line"><span class="cl"><span class="c1">#!/bin/sh</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nv">dir</span><span class="o">=</span><span class="s2">&#34;/var/lib/flatpak/repo/&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">cd</span> <span class="nv">$dir</span>
</span></span><span class="line"><span class="cl">sudo cp config config.tmp <span class="o">&amp;&amp;</span> sudo cp config~ config <span class="o">&amp;&amp;</span> sudo cp config.tmp config~
</span></span><span class="line"><span class="cl">flatpak remotes --show-details
</span></span></code></pre></div>
        
        <hr><p>Published on 2026-04-08 at <a href='https://blog.qyt.li/x/'>qytlix no blogs</a>, last modified on 2026-04-08</p>]]></description><category>content</category><category>tech</category><category>技术</category></item></channel></rss>