当前位置: 首页 > news >正文

ubuntu 换源

sudo apt update

错误如下

Ign:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Ign:2 http://us.archive.ubuntu.com/ubuntu focal InRelease          
Err:3 http://security.ubuntu.com/ubuntu focal-security Release     SECURITY: URL redirect target contains control characters, rejecting. [IP: 91.189.91.81 80]
Ign:4 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease  
Ign:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Err:6 http://us.archive.ubuntu.com/ubuntu focal ReleaseSECURITY: URL redirect target contains control characters, rejecting. [IP: 91.189.91.81 80]
Err:7 http://us.archive.ubuntu.com/ubuntu focal-updates ReleaseSECURITY: URL redirect target contains control characters, rejecting. [IP: 91.189.91.83 80]
Err:8 http://us.archive.ubuntu.com/ubuntu focal-backports ReleaseSECURITY: URL redirect target contains control characters, rejecting. [IP: 91.189.91.83 80]
Reading package lists... Done
E: The repository 'http://security.ubuntu.com/ubuntu focal-security Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu focal Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu focal-updates Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu focal-backports Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

--- > 换源后解决

换源方法如后面。

就换源就解决了,很简单

1,更换网络,改用手机连接

2,更换https软件软件源,比如清华的。

打开链接:https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/

选择合适的ubuntu版本,更新仓库配置文件/etc/apt/sources.list。

mv /etc/apt/sources.list /etc/apt/sources.list_bak
vim /etc/apt/sources.list
 

refer https://blog.csdn.net/shangyexin/article/details/102657776

相关文章:

  • 北京网站建设多少钱?
  • 辽宁网页制作哪家好_网站建设
  • 高端品牌网站建设_汉中网站制作
  • #VERDI# 关于如何查看FSM状态机的方法
  • 【EasyExcel】根据单元格内容自动调整列宽
  • 第九章 面向对象
  • samout 结构再优化 收敛速度再加快
  • 【Unity】处理碰撞体(Collider)
  • 前端高頻面試題(一)
  • 数据结构第20节 快速排序以及优化
  • 【PostgreSQL】Spring boot + Mybatis-plus + PostgreSQL 处理json类型情况
  • 【项目实战】深入解析HTTP状态码:401 Unauthorized
  • 谷粒商城实战笔记-24-分布式组件-SpringCloud Alibaba-Nacos配置中心-命名空间与配置分组
  • vscode gitee问题
  • Proteus + Keil单片机仿真教程(五)多位LED数码管的静态显示
  • 机器学习(V)--无监督学习(三)EM算法
  • 抖音短视频矩阵管理系统搭建全攻略:功能详解与实战应用
  • Linux 渗透测试基础:使用Metasploit、Nmap等工具进行渗透测试
  • 【comparator, comparable】小总结
  • CEF与代理
  • Javascript设计模式学习之Observer(观察者)模式
  • maven工程打包jar以及java jar命令的classpath使用
  • miniui datagrid 的客户端分页解决方案 - CS结合
  • Octave 入门
  • QQ浏览器x5内核的兼容性问题
  • Quartz初级教程
  • Redis中的lru算法实现
  • session共享问题解决方案
  • SQLServer之创建显式事务
  • 基于遗传算法的优化问题求解
  • 排序算法之--选择排序
  • 思考 CSS 架构
  • 我的zsh配置, 2019最新方案
  • 阿里云服务器购买完整流程
  • 哈罗单车融资几十亿元,蚂蚁金服与春华资本加持 ...
  • 扩展资源服务器解决oauth2 性能瓶颈
  • ​HTTP与HTTPS:网络通信的安全卫士
  • ​secrets --- 生成管理密码的安全随机数​
  • #1015 : KMP算法
  • (void) (_x == _y)的作用
  • (附源码)ssm教材管理系统 毕业设计 011229
  • (淘宝无限适配)手机端rem布局详解(转载非原创)
  • ***详解账号泄露:全球约1亿用户已泄露
  • .aanva
  • .chm格式文件如何阅读
  • .NET CLR Hosting 简介
  • .Net Remoting(分离服务程序实现) - Part.3
  • .NET 的静态构造函数是否线程安全?答案是肯定的!
  • .Net 中的反射(动态创建类型实例) - Part.4(转自http://www.tracefact.net/CLR-and-Framework/Reflection-Part4.aspx)...
  • .Net插件开发开源框架
  • .Net通用分页类(存储过程分页版,可以选择页码的显示样式,且有中英选择)
  • .NET值类型变量“活”在哪?
  • @Async 异步注解使用
  • @LoadBalanced 和 @RefreshScope 同时使用,负载均衡失效分析
  • [ 转载 ] SharePoint 资料
  • []指针
  • [20161101]rman备份与数据文件变化7.txt
  • [240727] Qt Creator 14 发布 | AMD 推迟 Ryzen 9000芯片发布