解决Wsl2中Ubuntu无法更新软件的问题

news2024/11/25 20:25:24

本文排版不太好,详情可见笔记 有道云笔记

安装wsl2之后,在Ubuntu中更新软件,执行apt-get update命令报错,如下

root@jiangcheng01:~# sudo apt-get update Ign:1 http://mirrors.aliyun.com/ubuntu groovy InRelease Ign:2 http://mirrors.aliyun.com/ubuntu groovy-security InRelease Ign:3 http://mirrors.aliyun.com/ubuntu groovy-updates InRelease Ign:4 http://mirrors.aliyun.com/ubuntu groovy-backports InRelease Err:5 http://mirrors.aliyun.com/ubuntu groovy Release 404 Not Found [IP: 124.239.239.226 80] Err:6 http://mirrors.aliyun.com/ubuntu groovy-security Release 404 Not Found [IP: 124.239.239.226 80] Err:7 http://mirrors.aliyun.com/ubuntu groovy-updates Release 404 Not Found [IP: 124.239.239.226 80] Err:8 http://mirrors.aliyun.com/ubuntu groovy-backports Release 404 Not Found [IP: 124.239.239.226 80] Reading package lists... Done E: The repository 'http://mirrors.aliyun.com/ubuntu groovy Release' does not have 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://mirrors.aliyun.com/ubuntu groovy-security Release' does not have 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://mirrors.aliyun.com/ubuntu groovy-updates Release' does not have 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://mirrors.aliyun.com/ubuntu groovy-backports Release' does not have 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. root@jiangcheng01:~# sudo vim /etc/apt/sources.list root@jiangcheng01:~# sudo apt-get update Ign:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy InRelease Ign:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-updates InRelease Ign:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-backports InRelease Ign:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-security InRelease Err:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy Release 404 Not Found [IP: 101.6.15.130 443] Err:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-updates Release 404 Not Found [IP: 101.6.15.130 443] Err:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-backports Release 404 Not Found [IP: 101.6.15.130 443] Err:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-security Release 404 Not Found [IP: 101.6.15.130 443] Reading package lists... Done E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy Release' does not have 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 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-updates Release' does not have 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 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-backports Release' does not have 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 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-security Release' does not have 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. root@jiangcheng01:~# apt-get update Ign:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy InRelease Ign:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-updates InRelease Ign:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-backports InRelease Ign:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-security InRelease Err:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy Release 404 Not Found [IP: 101.6.15.130 443] Err:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-updates Release 404 Not Found [IP: 101.6.15.130 443] Err:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-backports Release 404 Not Found [IP: 101.6.15.130 443] Err:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-security Release 404 Not Found [IP: 101.6.15.130 443] Reading package lists... Done E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy Release' does not have 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 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-updates Release' does not have 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 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-backports Release' does not have 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 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu groovy-security Release' does not have 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. root@jiangcheng01:~# apt-get install xvfb Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package xvfb root@jiangcheng01:~# sudo vim /etc/apt/sources.list root@jiangcheng01:~# apt-get update Ign:1 http://cn.archive.ubuntu.com/ubuntu groovy InRelease Ign:2 http://security.ubuntu.com/ubuntu groovy-security InRelease Ign:3 http://cn.archive.ubuntu.com/ubuntu groovy-security InRelease Ign:4 http://cn.archive.ubuntu.com/ubuntu groovy-updates InRelease Err:5 http://security.ubuntu.com/ubuntu groovy-security Release 404 Not Found [IP: 185.125.190.39 80] Err:6 http://cn.archive.ubuntu.com/ubuntu groovy Release 404 Not Found [IP: 91.189.91.38 80] Err:7 http://cn.archive.ubuntu.com/ubuntu groovy-security Release 404 Not Found [IP: 91.189.91.38 80] Err:8 http://cn.archive.ubuntu.com/ubuntu groovy-updates Release 404 Not Found [IP: 91.189.91.38 80] Reading package lists... Done E: The repository 'http://security.ubuntu.com/ubuntu groovy-security Release' does not have 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://cn.archive.ubuntu.com/ubuntu groovy Release' does not have 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://cn.archive.ubuntu.com/ubuntu groovy-security Release' does not have 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://cn.archive.ubuntu.com/ubuntu groovy-updates Release' does not have 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.

替换阿里镜像和清华镜像都不管用,最终替换为中科大镜像成功更新了软件源。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/596193.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

一个注解的事儿,数据脱敏解决了

目录 什么是数据脱敏开整使用 Hutool 工具类实现数据掩码Hutool 信息脱敏工具类使用 Jackson 进行数据序列化脱敏 注解实现数据脱敏1、定义一个注解2、创建一个枚举类3、创建我们的自定义序列化类4、测试 项目 pom 文件 总结 本文主要分享什么是数据脱敏,如何优雅的…

chatgpt赋能python:Python从接口获取数据的重要性

Python从接口获取数据的重要性 在当今信息技术高速发展的时代,获取和分析数据是商业成功的关键因素之一。而在获取数据方面,使用Python编写接口来获取数据、自动化处理和分析数据的方法不仅更加高效,而且还可以把重点放在分析数据本身上&…

Element UI el-table form 表单的封装思路

Element UI el-table form 表单的封装思路 思路一: 将所有 form 表单类型都在 el-column-item 组件中定义好,然后根据传入的属性控制展示哪一个 form 表单类型 部分代码如下: <template><div><el-row style"padding: 0 20px"><el-col :span&…

2023年湖北七大员是哪七大员?七大员考试报名网站是哪里?启程别

2023年湖北七大员是哪七大员&#xff1f;七大员考试报名网站是哪里&#xff1f;启程别 住建厅七大员分类&#xff1a; 施工员&#xff08;土建&#xff0c;装饰装修&#xff0c;设备安装&#xff0c;市政工程&#xff09; 质量员&#xff08;土建&#xff0c;装饰装修&#x…

「从零入门推荐系统」20:推荐系统的未来发展

作者 | gongyouliu 编辑 | gongyouliu 随着科学技术的进步&#xff0c;信息技术、网络技术及物联网的快速发展&#xff0c;新信息的生产与传播更加便捷、快速。特别是最近大火的chatGPT、大模型技术引领的新一轮科技革命&#xff0c;让每一个人都可以轻松地生产各种各样的内容&…

ThreeJS教程:精灵模型Sprite作为标签

推荐&#xff1a;将 NSDT场景编辑器 加入你的3D工具链 3D工具集&#xff1a; NSDT简石数字孪生 精灵模型Sprite作为标签 实际开发的时候&#xff0c;可以使用精灵模型Sprite 颜色贴图作为标签&#xff0c;标注三维场景。 下面具体知识点&#xff0c;在精灵模型章节基本都讲解…

【多线程】阻塞队列

1. 认识阻塞队列和消息队列 阻塞队列也是一个队列&#xff0c;也是一个特殊的队列&#xff0c;也遵守先进先出的原则&#xff0c;但是带有特殊的功能。 如果阻塞队列为空&#xff0c;执行出队列操作&#xff0c;就会阻塞等待&#xff0c;阻塞到另一个线程往阻塞队列中添加元素(…

I.MX RT1170启动详解:Boot配置、Bootable image头的组成

文章目录 1 基础知识2 BOOT配置2.1 BOOT_CFG配置2.2 BOOT_MODE 3 Bootable image3.1 文件格式3.2 Bootable image头的组成3.3 Bootable image的生成3.4 例&#xff1a;BootROM之non-XIP加载过程3.5 例&#xff1a;bin文件分析 1 基础知识 &#xff08;1&#xff09;BootROM Bo…

遥感云大数据在灾害、水体与湿地领域典型案例及GPT模型教程

详情点击链接&#xff1a;遥感云大数据在灾害、水体与湿地领域典型案例及GPT模型教程 一&#xff1a;平台及基础开发平台 GEE平台及典型应用案例&#xff1b; GEE开发环境及常用数据资源&#xff1b; ChatGPT、文心一言等GPT模型 JavaScript基础&#xff1b; GEE遥感云重…

什么是homography变换

就是33的可逆矩阵对齐次坐标的变换。也叫射影变换&#xff0c;直射变换。 projectivity projective transformation collineation homography 这几个词在描述齐次坐标下的变换时是同义的。

让IPad变成你的生产力工具?在IPad上用Vscode写代码搞开发

文章目录 前言视频教程1. 本地环境配置2. 内网穿透2.1 安装cpolar内网穿透(支持一键自动安装脚本)2.2 创建HTTP隧道 3. 测试远程访问4. 配置固定二级子域名4.1 保留二级子域名4.2 配置二级子域名 5. 测试使用固定二级子域名远程访问6. iPad通过软件远程vscode6.1 创建TCP隧道 7…

POSTGRESQL 索引添加不合理有什么负面影响

开头还是介绍一下群&#xff0c;如果感兴趣polardb ,mongodb ,mysql ,postgresql ,redis 等有问题&#xff0c;有需求都可以加群群内有各大数据库行业大咖&#xff0c;CTO&#xff0c;可以解决你的问题。加群请联系 liuaustin3 &#xff0c;在新加的朋友会分到2群&#xff08;共…

软考A计划-试题模拟含答案解析-卷十六

点击跳转专栏>Unity3D特效百例点击跳转专栏>案例项目实战源码点击跳转专栏>游戏脚本-辅助自动化点击跳转专栏>Android控件全解手册点击跳转专栏>Scratch编程案例 &#x1f449;关于作者 专注于Android/Unity和各种游戏开发技巧&#xff0c;以及各种资源分享&am…

基于SpringBoot和vue的若依后台管理系统 部署

RuoYi-Vue是一款前后端分离的极速后台开发框架&#xff0c;基于SpringBoot和Vue。 目录 一、准备 二、启动前端项目 解决报错&#xff1a;digital envelope routines::unsupported 【测试】 三、启动后端项目 四、运行数据库sql文件建表 五、开启redis缓存服务 【redis…

基于html+css的图展示103

准备项目 项目开发工具 Visual Studio Code 1.44.2 版本: 1.44.2 提交: ff915844119ce9485abfe8aa9076ec76b5300ddd 日期: 2020-04-16T16:36:23.138Z Electron: 7.1.11 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64 10.0.19044 项目…

java 利用poi根据excel模板导出数据(一)

前言 作为B端开发&#xff0c;导出数据是不可以避免的&#xff0c;但是有时候需求很变态&#xff0c;表头复杂的一笔&#xff0c;各种合并单元格&#xff0c;如下图&#xff1a; 这些虽说用代码可以实现&#xff0c;但是很繁琐&#xff0c;而且代码并不能通用&#xff0c;遇到…

哈工大华为提出ControlVideo:一种无需训练的可控视频生成方法

点击下方卡片&#xff0c;关注“CVer”公众号 AI/CV重磅干货&#xff0c;第一时间送达 点击进入—>【扩散模型和Transformer】交流群 导读 哈工大&华为云最新提出了一种可控的文本-视频生成方法ControlVideo&#xff0c;在无需训练的条件下&#xff0c;仅使用一张2080Ti…

长沙之行第二天

这是学习笔记的第 2458篇文章 已经从长沙返京一个多星期了&#xff0c;旅行日记还没有写好&#xff0c;真是羞愧&#xff0c;赶紧补一补回忆。 整体来看返京后这一周我最大的变化就是几乎每天都订1次外卖吃长沙牛肉粉。 第二天 自第一天逛完橘子洲之后&#xff0c;我们的行程重…

3.11 Ext JS文件上传基本使用

文件上传对应的组件是Ext.form.field.File。 组件的效果是输入框+文件选择按钮,如下图所示: 点击“选择文件的按钮”, 会弹出操作系统选择文件的对话框,如下图所示窗口: 选择文件后,输入框会根据不同的浏览器有不同的显示, 有的浏览器是文件名,有的浏览器是完整路径,…

c#特性Attribute

C# 特性&#xff08;Attribute&#xff09; 特性&#xff08;Attribute&#xff09;是用于在运行时传递程序中各种元素&#xff08;比如类、方法、结构、枚举、组件等&#xff09;的行为信息的声明性标签。您可以通过使用特性向程序添加声明性信息。一个声明性标签是通过放置在…