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 Release
  SECURITY: URL redirect target contains control characters, rejecting. [IP: 91.189.91.81 80]
Err:7 http://us.archive.ubuntu.com/ubuntu focal-updates Release
  SECURITY: URL redirect target contains control characters, rejecting. [IP: 91.189.91.83 80]
Err:8 http://us.archive.ubuntu.com/ubuntu focal-backports Release
  SECURITY: 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

相关推荐

  1. Ubuntu pip

    2024-07-12 19:46:01       59 阅读
  2. ubuntu

    2024-07-12 19:46:01       24 阅读
  3. 树莓派 ubuntu 23.10 mantic 阿里云

    2024-07-12 19:46:01       39 阅读
  4. win10ubuntu

    2024-07-12 19:46:01       27 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-12 19:46:01       67 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-12 19:46:01       71 阅读
  3. 在Django里面运行非项目文件

    2024-07-12 19:46:01       58 阅读
  4. Python语言-面向对象

    2024-07-12 19:46:01       69 阅读

热门阅读

  1. Elasticsearch进阶学习

    2024-07-12 19:46:01       15 阅读
  2. 面向对象进阶基础练习

    2024-07-12 19:46:01       21 阅读
  3. RGB树-美团2023笔试(codefun2000)

    2024-07-12 19:46:01       25 阅读
  4. python输出/sys/class/power_supply/BAT0/电池各项内容

    2024-07-12 19:46:01       19 阅读
  5. ArcGIS Pro SDK (八)地理数据库 6 版本控制

    2024-07-12 19:46:01       23 阅读
  6. SpringBoot使用手册

    2024-07-12 19:46:01       18 阅读
  7. ROS2-humble学习

    2024-07-12 19:46:01       20 阅读
  8. 代码随想录打卡第二十一天

    2024-07-12 19:46:01       22 阅读
  9. Unity 之 抖音小游戏集成排行榜功能详解

    2024-07-12 19:46:01       21 阅读
  10. adb参数详解

    2024-07-12 19:46:01       20 阅读
  11. Git常用命令

    2024-07-12 19:46:01       23 阅读
  12. 力扣2211.统计道路上的碰撞次数

    2024-07-12 19:46:01       22 阅读