首页 > 其他分享 >Debian系统无法升级的一个原因

Debian系统无法升级的一个原因

时间:2023-10-15 09:44:58浏览次数:35  
标签:cn mirrors 无法 升级 tsinghua https edu Debian InRelease

我用WSL安装了Debian 12 系统,无法升级,出现以下错误:

yong@DESKTOP-D1TMKU9:~$ sudo apt update
Ign:1 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm InRelease
Ign:2 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates InRelease
Ign:3 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports InRelease
Ign:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security InRelease
Ign:1 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm InRelease
Ign:2 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates InRelease
Ign:3 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports InRelease
Ign:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security InRelease
Ign:1 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm InRelease
Ign:2 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates InRelease
Ign:3 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports InRelease
Ign:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security InRelease
Err:1 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm InRelease
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
Err:2 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates InRelease
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
Err:3 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports InRelease
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
Err:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security InRelease
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
Reading package lists... Done
Building dependency tree... Done
All packages are up to date.
W: https://mirrors.tuna.tsinghua.edu.cn/debian/dists/bookworm/InRelease: No system certificates available. Try installing ca-certificates.
W: https://mirrors.tuna.tsinghua.edu.cn/debian/dists/bookworm-updates/InRelease: No system certificates available. Try installing ca-certificates.
W: https://mirrors.tuna.tsinghua.edu.cn/debian/dists/bookworm-backports/InRelease: No system certificates available. Try installing ca-certificates.
W: https://mirrors.tuna.tsinghua.edu.cn/debian-security/dists/bookworm-security/InRelease: No system certificates available. Try installing ca-certificates.
W: https://mirrors.tuna.tsinghua.edu.cn/debian/dists/bookworm/InRelease: No system certificates available. Try installing ca-certificates.
W: https://mirrors.tuna.tsinghua.edu.cn/debian/dists/bookworm-updates/InRelease: No system certificates available. Try installing ca-certificates.
W: https://mirrors.tuna.tsinghua.edu.cn/debian/dists/bookworm-backports/InRelease: No system certificates available. Try installing ca-certificates.
W: https://mirrors.tuna.tsinghua.edu.cn/debian-security/dists/bookworm-security/InRelease: No system certificates available. Try installing ca-certificates.
W: https://mirrors.tuna.tsinghua.edu.cn/debian/dists/bookworm/InRelease: No system certificates available. Try installing ca-certificates.
W: https://mirrors.tuna.tsinghua.edu.cn/debian/dists/bookworm-updates/InRelease: No system certificates available. Try installing ca-certificates.
W: https://mirrors.tuna.tsinghua.edu.cn/debian/dists/bookworm-backports/InRelease: No system certificates available. Try installing ca-certificates.
W: https://mirrors.tuna.tsinghua.edu.cn/debian-security/dists/bookworm-security/InRelease: No system certificates available. Try installing ca-certificates.
W: https://mirrors.tuna.tsinghua.edu.cn/debian/dists/bookworm/InRelease: No system certificates available. Try installing ca-certificates.
W: https://mirrors.tuna.tsinghua.edu.cn/debian/dists/bookworm-updates/InRelease: No system certificates available. Try installing ca-certificates.
W: https://mirrors.tuna.tsinghua.edu.cn/debian/dists/bookworm-backports/InRelease: No system certificates available. Try installing ca-certificates.
W: https://mirrors.tuna.tsinghua.edu.cn/debian-security/dists/bookworm-security/InRelease: No system certificates available. Try installing ca-certificates.
W: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/debian/dists/bookworm/InRelease  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
W: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/debian/dists/bookworm-updates/InRelease  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
W: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/debian/dists/bookworm-backports/InRelease  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
W: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/debian-security/dists/bookworm-security/InRelease  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.

好像是认证出现问题,网上搜了一阵,也没有找到明确的解决方法。无意间扫到在清华源有这么一句话:

Debian Buster 以上版本默认支持 HTTPS 源。如果遇到无法拉取 HTTPS 源的情况,请先使用 HTTP 源并安装:

sudo apt install apt-transport-https ca-certificates

于是,打开 /etc/apt/sources.list  把 https 换成 http,再运行 sudo apt update 果然可以了,按照提示安装上述软件,果然可以使用了。

随后,再把 http 改为 https,再次更新,果然没有问题了。

标签:cn,mirrors,无法,升级,tsinghua,https,edu,Debian,InRelease
From: https://www.cnblogs.com/litifeng/p/17765265.html

相关文章

  • 解决VS Code/Code insiders右键python代码无法“转到定义”问题
    最近怀疑自己用了个假的VSCode,同门的能丝滑跳转定义、跳转引用,自己的偏偏不行(合着这么爽的功能我从来没享受到(。﹏。*)),网上各种教程试了个遍都不行,最后自己摸索出了解决方案。记录在此备忘:按以下顺序依次Check:确保安装这些插件:Python、Pylance、IntelliCode(用远程服......
  • LInux无法登录系统时的处理方式
    一:概述在登录系统时,如果从打开电源到登录系统的顺序出了问题,就不会显示登录界面或登录提示信息,即使你在登录界面或登录提示中输入了用户名和密码,也不会登录成功。如果你遇到了这种情况。就没有办法登录系统进行系统的修复工作。解决这种问题就需要从DVD/CD-ROM或SIO镜像中启动安装......
  • 测试springboot项目苍穹外卖,解决websocket“服务器错误,无法接收实时报警信息”问题
    使用IDEA启动springboot项目苍穹外卖后,http://localhost:8071/能够正常访问登录,但是网页右上角始终显示“服务器错误,无法接收实时报警信息”: 在网上搜索找到:https://blog.csdn.net/qq_65032048/article/details/132077097,发现可能是修改了nginx端口号为8071导致。解决办法:在n......
  • 使用Visual Studio自带的Git创建本地仓库 & 空格回车等无法使用
    发现最近调试代码的时候有可能为了解决一个bug,然后调着调着把原来的没问题的调出来bug了我们可以使用本地仓库来查看历史版本,方便从老版本里找到解决新bug的方式对于一个打开的项目,我们可以点击Git,然后创建Git仓库("如果没有的话可能得安装下Git")然后是“仅限本地”然后......
  • 网络唤醒后,计算机无法关机,任然被唤醒。
    在使用openwrt网络唤醒功能后,唤醒计算机后,关机休眠等操作后,会被再次唤醒。将网线从计算机网口拔出,再次关机操作后,等待完全关机,插上网线没有被唤醒。那么是网卡设置有问题,对网络中的唤醒进行识别。计算机管理-->网络适配器--找到唤醒的网卡,点击右键属性--电源管理。 全部勾......
  • pycharm使用fastapi/uvicorn无法reload的问题
    省流pycharm的问题,建议控制台直接输uvicornmain:app--reload,而不是点击右上角的运行相关issuehttps://github.com/encode/uvicorn/issues/2000https://youtrack.jetbrains.com/issue/PY-60962/os.killpid-signal.CRTLCEVENT-ignored-when-running-python-program-from-Pych......
  • 英国留学本科没顺利毕业没学位回国无法交代?解决办法在这里
    英国留学本科没顺利毕业没学位回国无法交代?解决办法在这里选择出国留学有时或许不是我们的主观意愿,再或者留学期间学习的专业也不是最让我们感兴趣的,这难免造成学生在留学期间会出现课程不喜欢就不去上课,考试考不过,学分达不到学校要求……然后无法顺利升入下一学年,或者无法顺利毕业......
  • 关于要货单退货无法生产调拨单的问题
    比如:商1武芝娟库退货到正常回收李静琼库,李静琼用户审核后没有生产调拨单系统管理,用户权限,选择用户,用户授权,公共数据权限设置,仓库明细中添加商1武芝娟就可以正常生成调拨单了原理,退货实际上是业务员商1武芝娟仓库数量减少,仓管必须对业务员仓库有权限,才能减少业务仓库库存 那么......
  • 升级Lync Server 2013到Skype for Business 2019(十)
    写在前面在前面几章,我们完成了SkypeforBusiness2019前端服务器,边缘服务器以及新的OOS服务器的创建与配置。从本章开始,我们将介绍如何逐步将LyncServer2013的相关服务切换到SkypeforBusiness2019环境。本章将介绍如何切换OOS服务器。由于新的OOS服务器与旧有的OWA服务器使用......
  • 解密Prompt系列17. LLM对齐方案再升级 WizardLM & BackTranslation & SELF-ALIGN
    话接上文的指令微调的样本优化方案,上一章是通过多样性筛选和质量过滤,对样本量进行缩减,主打经济实惠。这一章是通过扩写,改写,以及回译等半监督样本挖掘方案对种子样本进行扩充,提高种子指令样本的多样性和复杂度,这里我们分别介绍Microsoft,Meta和IBM提出的三个方案。Microsoft:WizardL......