<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Apt on Net Boy</title>
    <link>https://lian.st/tags/apt/</link>
    <description>Recent content in Apt on Net Boy</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-gb</language>
    <lastBuildDate>Tue, 01 Oct 2024 17:41:25 +0800</lastBuildDate><atom:link href="https://lian.st/tags/apt/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Debian12更換apt源</title>
      <link>https://lian.st/posts/37d36afc/</link>
      <pubDate>Tue, 01 Oct 2024 17:41:25 +0800</pubDate>
      
      <guid>https://lian.st/posts/37d36afc/</guid>
      
      <description>&lt;h2 id=&#34;備份&#34;&gt;備份&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;cp /etc/apt/sources.list /etc/apt/sources.list.bak
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;更換&#34;&gt;更換&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo nano /etc/apt/sources.list
# Official Debian 12 (Bookworm) Repositories
deb http://deb.debian.org/debian/ bookworm main contrib non-free
deb-src http://deb.debian.org/debian/ bookworm main contrib non-free

# Security Updates
deb http://security.debian.org/debian-security bookworm-security main contrib non-free
deb-src http://security.debian.org/debian-security bookworm-security main contrib non-free

# Updates
deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free
deb-src http://deb.debian.org/debian/ bookworm-updates main contrib non-free
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;更新&#34;&gt;更新&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;apt update
apt upgrade
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;常用源&#34;&gt;常用源&lt;/h2&gt;
&lt;h3 id=&#34;香港理工大學&#34;&gt;香港理工大學&lt;/h3&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;deb http://ftp.polyu.edu.hk/pub/Linux/debian/ bookworm main contrib non-free
deb-src http://ftp.polyu.edu.hk/pub/Linux/debian/ bookworm main contrib non-free

deb http://ftp.polyu.edu.hk/pub/Linux/debian-security bookworm-security main contrib non-free
deb-src http://ftp.polyu.edu.hk/pub/Linux/debian-security bookworm-security main contrib non-free

deb http://ftp.polyu.edu.hk/pub/Linux/debian/ bookworm-updates main contrib non-free
deb-src http://ftp.polyu.edu.hk/pub/Linux/debian/ bookworm-updates main contrib non-free
&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;臺灣清華大學&#34;&gt;臺灣清華大學&lt;/h3&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main non-free non-free-firmware contrib

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bookworm-security main
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bookworm-security main

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main non-free non-free-firmware contrib
&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;新加坡nus&#34;&gt;新加坡NUS&lt;/h3&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;deb http://mirror.nus.edu.sg/debian/ bookworm main contrib non-free
deb-src http://mirror.nus.edu.sg/debian/ bookworm main contrib non-free

deb http://mirror.nus.edu.sg/debian-security/ bookworm-security main
deb-src http://mirror.nus.edu.sg/debian-security/ bookworm-security main

deb http://mirror.nus.edu.sg/debian/ bookworm-updates main contrib non-free
deb-src http://mirror.nus.edu.sg/debian/ bookworm-updates main contrib non-free
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;阿裏雲&#34;&gt;阿裏雲&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;清華大學&#34;&gt;清華大學&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bookworm-security main
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bookworm-security main
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main non-free non-free-firmware contrib
&lt;/code&gt;&lt;/pre&gt;</description>
      
    </item>
    
  </channel>
</rss>
