国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

sudo apt-get update 失敗 的解決

這篇具有很好參考價值的文章主要介紹了sudo apt-get update 失敗 的解決。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

一 報錯情況1 及我的解決辦法

參考了:執(zhí)行sudo apt-get update失敗的解決方案

1 報錯情況

我的報錯情況如下(借用了別人的,我之前使用的Ubuntu默認(rèn)源,下面的報錯使用的清華源)。

錯誤提示: 
忽略:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal InRelease 
忽略:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates InRelease
忽略:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports InRelease
忽略:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRelease
錯誤:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal Release   
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
錯誤:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates Release
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
錯誤:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports Release
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
錯誤:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security Release
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
正在讀取軟件包列表... 完成                                   
E: 倉庫 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal Release” 沒有 Release 文件。
N: 無法安全地用該源進(jìn)行更新,所以默認(rèn)禁用該源。
N: 參見 apt-secure(8) 手冊以了解倉庫創(chuàng)建和用戶配置方面的細(xì)節(jié)。
E: 倉庫 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates Release” 沒有 Release 文件。
N: 無法安全地用該源進(jìn)行更新,所以默認(rèn)禁用該源。
N: 參見 apt-secure(8) 手冊以了解倉庫創(chuàng)建和用戶配置方面的細(xì)節(jié)。
E: 倉庫 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports Release” 沒有 Release 文件。
N: 無法安全地用該源進(jìn)行更新,所以默認(rèn)禁用該源。
N: 參見 apt-secure(8) 手冊以了解倉庫創(chuàng)建和用戶配置方面的細(xì)節(jié)。
E: 倉庫 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security Release” 沒有 Release 文件。
N: 無法安全地用該源進(jìn)行更新,所以默認(rèn)禁用該源。
N: 參見 apt-secure(8) 手冊以了解倉庫創(chuàng)建和用戶配置方面的細(xì)節(jié)。

Ubuntu的默認(rèn)源有時候也是有用的,因而不要刪除,Ubuntu20.04默認(rèn)源source.list文件內(nèi)容:ubuntu20.04 LTS系統(tǒng)默認(rèn)源source.list文件

2 解決辦法

我在Ubuntu 原 source.list文件 中加上了 阿里云的源 (Ubuntu 鏡像),注意要找到適合自己Ubuntu版本的源,我是Ubuntu20.04,因而在其中選擇如下內(nèi)容:

阿里云 ubuntu 20.04(focal) 配置內(nèi)容如下:

deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

打開Ubuntu系統(tǒng)中的source.list文件,如下:

sudo gedit /etc/apt/sources.list

在默認(rèn)內(nèi)容前面加上 阿里云源的ubuntu 20.04(focal) 配置內(nèi)容。

更改并且保存后,再執(zhí)行 sudo apt-get update 依然會有報錯,這是因為原來的那些源鏈接還在,而他們依舊不能用。但是系統(tǒng)會自動選擇可用的源鏈接去更新(比如阿里云 鏈接),最后更新成功。可以參考執(zhí)行sudo apt-get update失敗的解決方案來詳細(xì)查看具體過程。

也可參考 Ubuntu20.04 | 更新軟件源 sudo apt-get update 出現(xiàn)錯誤,將原來soure.list文件中內(nèi)容全部刪除,而只粘貼新的源鏈接(比如 中科大源)。文章來源地址http://www.zghlxwxcb.cn/news/detail-494547.html

到了這里,關(guān)于sudo apt-get update 失敗 的解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包