首页 > 其他分享 >docker 中安装apt-get install vim 失败,且apt-get update 报404

docker 中安装apt-get install vim 失败,且apt-get update 报404

时间:2024-02-14 15:33:19浏览次数:29  
标签:http get stretch update apt Ign org main debian

在docker 中安装vim时,安装失败。在更新apt-get时,报错如下:

root@a8a94b78ebf0:/# apt-get update    
Ign:1 http://deb.debian.org/debian stretch InRelease                                                                  
Ign:2 http://deb.debian.org/debian stretch-updates InRelease                                                          
Ign:3 http://deb.debian.org/debian stretch Release
Ign:4 http://deb.debian.org/debian stretch-updates Release
Ign:5 http://security.debian.org stretch/updates InRelease
Ign:6 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Ign:8 http://security.debian.org stretch/updates Release
Ign:9 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:10 http://security.debian.org stretch/updates/main all Packages
Ign:11 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:12 http://security.debian.org stretch/updates/main amd64 Packages
Ign:6 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:10 http://security.debian.org stretch/updates/main all Packages
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Ign:12 http://security.debian.org stretch/updates/main amd64 Packages
Ign:10 http://security.debian.org stretch/updates/main all Packages
Ign:12 http://security.debian.org stretch/updates/main amd64 Packages
Ign:9 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:10 http://security.debian.org stretch/updates/main all Packages
Ign:12 http://security.debian.org stretch/updates/main amd64 Packages
Ign:10 http://security.debian.org stretch/updates/main all Packages
Ign:12 http://security.debian.org stretch/updates/main amd64 Packages
Ign:11 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:6 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:10 http://security.debian.org stretch/updates/main all Packages
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Err:12 http://security.debian.org stretch/updates/main amd64 Packages
  404  Not Found [IP: 146.75.114.132 80]
Ign:9 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:11 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:6 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Ign:9 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:11 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:6 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Ign:9 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:11 http://deb.debian.org/debian stretch-updates/main all Packages
Err:6 http://deb.debian.org/debian stretch/main amd64 Packages
  404  Not Found [IP: 146.75.114.132 80]
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Err:9 http://deb.debian.org/debian stretch-updates/main amd64 Packages
  404  Not Found [IP: 146.75.114.132 80]
Ign:11 http://deb.debian.org/debian stretch-updates/main all Packages
Reading package lists... Done
W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://security.debian.org stretch/updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages  404  Not Found [IP: 146.75.114.132 80]
E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages  404  Not Found [IP: 146.75.114.132 80]
E: Failed to fetch http://security.debian.org/dists/stretch/updates/main/binary-amd64/Packages  404  Not Found [IP: 146.75.114.132 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

解决方法:

1、备份/etc/apt/sources.list
cp /etc/apt/sources.list /etc/apt/sources.list.bak

2、更新/etc/apt/sources.list文件

echo "deb http://archive.debian.org/debian/ jessie main" >> /etc/apt/sources.list
echo "deb-src http://archive.debian.org/debian/ jessie main" >> /etc/apt/sources.list

重新更新apt-get:apt-get update  

更新完后,再次安装vim:apt-get install vim -y

安装成功

 

来源:https://blog.csdn.net/wwh1st/article/details/133075686

 

标签:http,get,stretch,update,apt,Ign,org,main,debian
From: https://www.cnblogs.com/JcHome/p/18015233

相关文章

  • qt 代码添加QScrollArea滚动区域控件,设置滚动区域窗口widget后,滚动区域和滚动条之间有
    QScrollArea#MyqtWidgetStyle_m_scrollArea{background-color:rgb(189,97,99);max-width:190px;/*最大宽度*/min-width:190px;/*最大宽度*/}QWidget#MyqtWidgetStyle_m_scorllWidget{max-width:160px;/*最大宽度*/min-width:160px;......
  • 爬虫_058_urllib get请求的urlencode方法
    目录urllib.parse.urlencode()quote方法使用的不是很经常的。因为quote的作用是将汉字转为百分号编码后的ASCII字符串。如果你的路径当中只有一个参数,你这样使用quote拼接一下url,这是没有问题的。如果你的路径当中有多个参数,并且参数都是中文的,你还使用quote,就TMD懵逼了。......
  • 爬虫_057_urllib get请求的quote方法
    目录引子编码集的演变需求知识点重新测试get请求方式的quote方法引子将百度搜索周杰伦的地址栏地址,复制到pycharm当中变成下面的样子:https://www.baidu.com/s?wd=%E5%91%A8%E6%9D%B0%E4%BC%A6编码集的演变ASCII编码:一个字符一个字节中国:GB2312日本:Shift_JIS韩国:Euc-k......
  • 【.NET】聊聊 IChangeToken 接口
    由于两个月的奋战,导致很久没更新了。就是上回老周说的那个产线和机械手搬货的项目,好不容易等到工厂放假了,我就偷偷乐了。当然也过年了,老周先给大伙伴们拜年了,P话不多讲,就祝大家身体健康、生活愉快。其实生活和健康是密不可分的,想活得好,就得健康。包括身体健康、思想健康、心理健康......
  • SharePoint Online 列表的 Audience Targeting
    前言最近,碰到一个需求,用户希望列表的视图,不被管理员以外的任何人看到,这样数据会更加安全。正文1.这时候,我们就需要用到列表的AudienceTargeting功能了,我们首先要去到列表设置,如下图:2.进去以后启用列表的AudienceTargeting,如下图:3.我们去到列表视......
  • Sample-Efficient Deep Reinforcement Learning via Episodic Backward Update
    发表时间:2019(NeurIPS2019)文章要点:这篇文章提出EpisodicBackwardUpdate(EBU)算法,采样一整条轨迹,然后从后往前依次更新做experiencereplay,这种方法对稀疏和延迟回报的环境有很好的效果(allowssparseanddelayedrewardstopropagatedirectlythroughalltransitionso......
  • chapter3-排序和查找
    1.排序排序就是把一组无序的数据变成有序的过程。对于机试而言,直接使用C++封装好的sort函数就可以了。sort函数内部采用快速排序实现,因此非常高效。使用sort函数,需要引用#include<algorithm>头文件,sort(first_address,last_address,compare)有三个参数,first和last待排序序列的......
  • Sliver C2 实战 vulntarget-f
    ‍网络拓扑hostip1ip2ubuntu(自用)192.168.130.14/centos192.168.130.310.0.10.2ubuntu110.0.10.310.0.20.2ubuntu210.0.20.3/‍信息收集开放了很多端口,优先从web入手。​​fscan过一遍网站指纹,发现可能可以利用xxe。​​‍zimbracmk​......
  • FSCapture如何将照片改为固定的尺寸和像素大小
    制作要求:原始照片像素为2134*3048;比如要求尺寸2.5*3.5cm(295*413像素),格式仅限JPG、png和JPEG,大小300KB以内(不包含)。FSCapture操作过程:(1)修正比例。打开FSCapture后,将照片拖入该软件内,计算高宽比为3.5/2.5=1.4(不要循环小数,目的是比例应一致),像素数必须是整数,基于这个原则,2134相......
  • RAPTOR:递归摘要与树形检索的结合,提升RAG检索性能
    RAPTOR:递归摘要与树形检索的结合,提升RAG检索性能来源:ICLR'24https://arxiv.org/pdf/2401.18059.pdf随着LLM技术的发展,RAG的价值也来越明显,可以视作LLM应用、落地的一个主要方向。RAG通过结合检索系统和生成模型,在生成回答时先从外部知识库种检索相关信息,辅助LLM进行更......