当前位置: 首页 > 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

http://www.lryc.cn/news/398339.html

相关文章:

  • 基于ssm的图书管理系统的设计与实现
  • python压缩PDF方案(Ghostscript+pdfc)
  • kotlin 基础
  • Spring中的适配器模式和策略模式
  • 书生浦语大模型实战营---Python task
  • Chrome 127内置AI大模型攻略
  • Yolo的离线运行
  • 【矿井知识】煤矿动火作业
  • 设计模式使用场景实现示例及优缺点(结构型模式——享元模式)
  • 开放式耳机哪款比较好?五款开放式耳机测评推荐
  • 【网络安全】实验三(基于Windows部署CA)
  • hive中reverse函数
  • SimpleTrack环境配置教程
  • frameworks 之Zygote
  • 基于考研题库小程序V2.0实现倒计时功能板块和超时判错功能
  • idm站点抓取可以用来做什么 idm站点抓取能抓取本地网页吗 idm站点抓取怎么用 网络下载加速器
  • maven7——(重要,构建项目)maven项目构建(命令)
  • 容联云发布容犀大模型应用,重塑企业“营销服”|WAIC 2024
  • Docker 安装字体文件
  • C/C++ 移动追加内容到文件尾部。
  • ISO/OIS的七层模型②
  • 美团到家平台业务探索
  • React -- useState状态更新异步特性——导致获取值为旧值的问题
  • 哪款开放式耳机是2024年最值得购买的?五大品质好物揭秘
  • 深圳天童美语:小暑习俗知多少
  • 递归参数中递增运算符的使用
  • Python功能制作之获取CSDN所有发布文章的对应数据
  • Backend - C# 基础知识
  • HTML5新增的input元素类型:number、range、email、color、date等
  • 00 Debian字符界面如何支持中文