首页 > 系统相关 >Ubutu新手错误:E: The repository ‘http://security.ubuntu.com/ubuntu hirsute-security Release‘ no longer h

Ubutu新手错误:E: The repository ‘http://security.ubuntu.com/ubuntu hirsute-security Release‘ no longer h

时间:2022-10-18 00:55:11浏览次数:37  
标签:http list apt sources ubuntu security com

 

解决方式(利用正则匹配删除即可):

cp  /etc/apt/sources.list /etc/apt/sources.list.bak
sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

 重新运行:

sudo apt-get update

恢复正常:

 

标签:http,list,apt,sources,ubuntu,security,com
From: https://www.cnblogs.com/zhangsanlisi411/p/16801238.html

相关文章

  • Ubuntu快速换源教程
    目的:为了解决上网查资料过慢问题。可以通过换源来提高速度。(1)备份系统源cd/etc/aptsudomvsources.listsources.list.bak(2)开始修改sources文件有安装vim用户:......
  • 笔记:node.js的http模块
    教程来自b站黑马程序员https://www.bilibili.com/video/BV1a34y167AZ/?spm_id_from=333.1007.top_right_bar_window_custom_collection.content.click      ......
  • Shrio与Spring Security
    Shrio与SpringSecuritySpringSecuritySpringSecurity是什么ShrioShrio是什么官网的介绍:是一个Java安全框架,可执行身份验证授权、加密和会话管理,并可用于保护任何应......
  • HTTP 请求头部字段中 connection - keep-alive 的含义
    我们经常可以在Chrome开发者工具network标签页里,观察到HTTP请求的requestheaders字段,包含Connection等于keep-alive这样的值。上图是SAPSpartacusUI向后......
  • getUserMedia报错:新版本Chrome中getUserMedia接口在http下不再支持
    新版本Chrome中getUserMedia接口在http下不再支持,请使用https来访问比较兼容的就是需要判断一下varmedia=(navigator.getUserMedia||navigator.webk......
  • HTTP协议
    介绍本文介绍有关HTTP协议的相关内容。401http协议在通讯的过程中,可以对通讯过程做一个简单的认证。在客户端向服务端发起请求的时候,服务器可以在响应的协议头中使用下面的......
  • Ubuntu 环境下安装 Docker
    系统要求Docker目前只能运行在64位平台上,并且要求内核版本不低于3.10,实际上内核越新越好,过低的内核版本容易造成功能不稳定。用户可以通过如下命令检查自己的内......
  • Spring boot 嵌入式容器的运行参数配置 server properties调优、为Web Server配置Http
        serverproperties           配置Https jdk/bin目录下keytool         访问http时,跳转到https ......
  • ubuntu 下安装memcached及配置远程访问
    官网地址​​http://memcached.org​​wget下载wgethttp://memcached.org/files/memcached-1.5.9.tar.gz解压tar-zxvfmemcached-1.x.x.tar.gz进入到解压后的文件夹cdme......
  • win10启动ubuntu报错 参考的对象类型不支持尝试的操作
    问题:在Windows10系统下启动Ubuntu20.04连接WSL2,显示参考的对象类型不支持尝试解决方案:1.临时有效通过管理员身份打开WindowsPowerShell打开之后输入以下命令重置Wins......