[Issue Fixed]-Ubuntu20.04执行apt-get update报错:404 Not Found [IP: 91.189.91.38 80]

更多课程点击此处


快速链接:
.
👉👉👉 [专栏目录]-环境搭建安装问题笔记目录 👈👈👈

test@test:~$  sudo 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-updates InRelease
Err:4 http://security.ubuntu.com/ubuntu groovy-security Release
  404  Not Found [IP: 91.189.91.38 80]
Ign:5 http://cn.archive.ubuntu.com/ubuntu groovy-backports InRelease
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-updates Release
  404  Not Found [IP: 91.189.91.38 80]
Err:8 http://cn.archive.ubuntu.com/ubuntu groovy-backports 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' 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://cn.archive.ubuntu.com/ubuntu groovy 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://cn.archive.ubuntu.com/ubuntu groovy-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://cn.archive.ubuntu.com/ubuntu groovy-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.

在这里插入图片描述
解决方案:
sudo mv /etc/apt/sources.list /etc/apt/sources.list_backup
sudo vim /etc/apt/sources.list
然后填入下面信息,保存关闭即可:

deb http://old-releases.ubuntu.com/ubuntu/ groovy main restricted
deb http://old-releases.ubuntu.com/ubuntu/ groovy multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ groovy-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ groovy-updates multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ groovy-backports main restricted
deb http://old-releases.ubuntu.com/ubuntu/ groovy-backports multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ groovy-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ groovy-security multiverse universe

参考:
Release not found in Ubuntu 20.10 (groovy) with ‘apt update’ [closed]
sources.list__20.10-groovy.txt

  • 7
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 6
    评论
在Docker容器中运行bash-4.2# apt-get update && apt-get install vim -y命令时出现了: apt-get: command not found的错误。这是因为Docker容器默认没有安装apt-get命令。为了解决这个问题,你可以使用以下两种方法之一: 方法一:在Dockerfile中添加安装apt-get的步骤 你可以在Dockerfile文件中添加以下内容来安装apt-get命令: FROM ubuntu:20.04 RUN apt-get update && apt-get install -y apt-utils RUN apt-get install -y vim 这样在构建Docker镜像时,apt-get命令将会被安装并可用。 方法二:使用apk命令代替apt-get命令 如果你使用的是Alpine Linux作为基础镜像,那么可以使用以下命令来安装vim: RUN apk update && apk add vim 这是因为Alpine Linux使用的是apk包管理器而不是apt-get。 请注意,根据你的具体情况选择适合的方法。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [docker容器中 bash: vi: command not found,docker apt-get 异常 Temporary failure resolving](https://download.csdn.net/download/weixin_38610070/14031838)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [Docker 快速入门,安装数据库 Dockerfile使用 制作ubuntu-flask镜像](https://blog.csdn.net/m0_61634551/article/details/129079615)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [-bash-4.2#:vim: command not found解决办法](https://blog.csdn.net/weixin_42057187/article/details/125087284)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Arm精选

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值