debian更新源

= wheezy =
## china
deb http://ftp.cn.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.cn.debian.org/debian/ wheezy main contrib non-free

deb http://ftp.cn.debian.org/debian/ wheezy-proposed-updates main contrib non-free
deb-src http://ftp.cn.debian.org/debian/ wheezy-proposed-updates main contrib non-free

deb http://ftp.cn.debian.org/debian/ wheezy-backports main contrib non-free
deb-src http://ftp.cn.debian.org/debian/ wheezy-backports main contrib non-free

# debian security updates
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

# multimedia
deb http://deb-multimedia.org wheezy main non-free

= sid =

## china
deb http://ftp.cn.debian.org/debian/ sid main contrib non-free
deb-src http://ftp.cn.debian.org/debian/ sid main contrib non-free

# multimedia
deb http://deb-multimedia.org sid main non-free

p.s.
1, 源是debian中国的服务器,感觉安全点(速度还可以)
    如果要更快的速度可以设置163的源, http://mirrors.163.com/,上面有使用帮助

2, 没有提供squeeze的源,别装了,那货太老了。

### Debian 12 新配置教程 Debian 系统的新主要通过编辑 `sources.list` 文件来完成。以下是关于如何新或配置 Debian 12 的 APT 的具体方法。 #### 1. 编辑 `sources.list` 文件 Debian 的软件包管理工具 APT 使用 `/etc/apt/sources.list` 文件来指定软件包的来。可以通过以下命令编辑该文件: ```bash sudo nano /etc/apt/sources.list ``` #### 2. 配置官方 如果希望使用 Debian 官方,可以将以下内容添加到 `sources.list` 文件中: ```plaintext deb http://deb.debian.org/debian/ bookworm main contrib non-free deb-src http://deb.debian.org/debian/ bookworm main contrib non-free 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 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 ``` 以上内容适用于 Debian 12 (代号为 `bookworm`),并且包含了主仓库、贡献仓库、非自由软件仓库以及安全新仓库[^1]。 #### 3. 配置阿里云镜像 为了提高下载速度,可以选择使用国内的镜像,例如阿里云。以下是阿里云 Debian 12 的配置: ```plaintext deb https://mirrors.aliyun.com/debian/ bookworm main contrib non-free deb-src https://mirrors.aliyun.com/debian/ bookworm main contrib non-free deb https://mirrors.aliyun.com/debian-security/ bookworm-security main contrib non-free deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main contrib non-free deb https://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free ``` 此配置同样适用于 Debian 12,并且能够显著提升软件包的下载速度[^1]。 #### 4. 新 APT 缓存 在修改完 `sources.list` 文件后,需要新 APT 缓存以应用新的配置: ```bash sudo apt update ``` #### 5. 升级系统 新缓存后,可以执行以下命令来升级系统中的软件包: ```bash sudo apt upgrade ``` 如果需要进行完整的系统升级(包括内核和主要组件),可以运行: ```bash sudo apt full-upgrade ``` #### 6. 常见问题排查 - 如果在新过程中遇到 GPG 错误,可以尝试导入缺失的 GPG 密钥。例如: ```bash sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <KEY_ID> ``` - 如果某些无法访问,建议检查网络连接或换其他可用的镜像。 ### 示例代码 以下是一个完整的脚本,用于新和升级 Debian 12 系统: ```bash # 编辑 sources.list 文件 sudo nano /etc/apt/sources.list # 新 APT 缓存 sudo apt update # 升级软件包 sudo apt upgrade # 进行完整升级 sudo apt full-upgrade ```
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值