跳转到主要内容
首页

用户帐户菜单

  • 登录

主导航

  • 首页
  • 小公司运营
  • 网站建设
  • 创业杂谈
  • 兼职赚钱
  • 小微企业信息化
  • 手册教程
    • 《大伟哥的Drupal 8建站指南》
    • 《通过JohnChow.Com在网上赚钱》
  • 关于

面包屑

  • 首页
  • Debian 11 改用阿里云源

Debian 11 改用阿里云源

By 大伟哥 | 2022-11-01,周二, 22:27

从 Debian 官网下载 Debian 11 的网络安装盘后,软件源列表里随便选了一个,进入界面后运行 apt update 发现速度比较慢而且会出错,还是换成习惯用的阿里云Debian 11的源好用。

修改/etc/apt/sources.list,加入下面的行:

deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib

并把原来定义的源用#号注释掉,保存。

接下来运行 apt update 可能会报错: 

Could not handshake: Error in the certificate verification.

这是因为安全证书认证失败了,没法更新系统。这时候可以先把源网址的协议从https改成http,暂时不使用安全链接。然后安装ca-certificates

apt install ca-certificates

待ca-certificates安装完成后,再把源网址改回https,这样就可以正常使用 Debian 11 的阿里云源进行更新和升级了。

  • 1448 阅读
Debian

添加新评论

此字段内容将保密,不会被其他人看见。
关于文本格式
  • 不允许使用HTML标签。
CAPTCHA
11 + 0 =
计算出这道简单的算术题并键入答案。例如、1+3,就输入 4。
发布评论前,请通过下面的验证,以免被当作垃圾评论机器人屏蔽。

搜索

沪ICP备17000093号-1

公安备案沪公网安备 31011402008254号

© 2016-2022 大伟哥博客版权所有