sudo apt-get update提示E: 倉庫 “http://mirrors.aliyun.com/ubuntu eoan Release” 沒有 Release 文件。 解決辦法


18.04.3的ubuntu
sudo apt-get install python2.7.的時候系統提示,
sudo apt-get update的指令同樣是如此
換了19.10版本還是有相同的錯誤提示,說明這個不是版本的問題,是源配置錯誤的問題,
sources.list配置有誤

忽略:1 http://mirrors.aliyun.com/ubuntu eoan InRelease
忽略:2 http://mirrors.aliyun.com/ubuntu eoan-updates InRelease
忽略:3 http://mirrors.aliyun.com/ubuntu eoan-backports InRelease
忽略:4 http://mirrors.aliyun.com/ubuntu eoan-security InRelease
錯誤:5 http://mirrors.aliyun.com/ubuntu eoan Release
SECURITY: URL redirect target contains control characters, rejecting. [IP: 117.27.140.186 80]
錯誤:6 http://mirrors.aliyun.com/ubuntu eoan-updates Release
SECURITY: URL redirect target contains control characters, rejecting. [IP: 117.27.140.186 80]
錯誤:7 http://mirrors.aliyun.com/ubuntu eoan-backports Release
SECURITY: URL redirect target contains control characters, rejecting. [IP: 117.27.140.186 80]
錯誤:8 http://mirrors.aliyun.com/ubuntu eoan-security Release
SECURITY: URL redirect target contains control characters, rejecting. [IP: 117.27.140.186 80]
正在讀取軟件包列表… 完成
E: 倉庫 “http://mirrors.aliyun.com/ubuntu eoan Release” 沒有 Release 文件。
N: 無法安全地用該源進行更新,所以默認禁用該源。
N: 參見 apt-secure(8) 手冊以了解倉庫創建和用戶配置方面的細節。
E: 倉庫 “http://mirrors.aliyun.com/ubuntu eoan-updates Release” 沒有 Release 文件。
N: 無法安全地用該源進行更新,所以默認禁用該源。
N: 參見 apt-secure(8) 手冊以了解倉庫創建和用戶配置方面的細節。
E: 倉庫 “http://mirrors.aliyun.com/ubuntu eoan-backports Release” 沒有 Release 文件。
N: 無法安全地用該源進行更新,所以默認禁用該源。
N: 參見 apt-secure(8) 手冊以了解倉庫創建和用戶配置方面的細節。
E: 倉庫 “http://mirrors.aliyun.com/ubuntu eoan-security Release” 沒有 Release 文件。
N: 無法安全地用該源進行更新,所以默認禁用該源。
N: 參見 apt-secure(8) 手冊以了解倉庫創建和用戶配置方面的細節。

解決方法:
1.在官網源https://mirrors.ustc.edu.cn/repogen/下載對應版本最新的源,比如我是19.10版本的ubuntu,對應下載的是這個
在這里插入圖片描述
2.下載sources.list完成之后將源拷貝到對應的位置將原文件覆蓋

sudo cp sources.list /etc/apt 
  • 1

再執行sudo apt-get
在這里插入圖片描述


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM