在ubuntu下执行sudo apt-get update 异常Err http://security.ubuntu.com precise-security InReleaseErr

【Ubuntu】Ubuntu20.04更换阿里云 这个是摘要 阅读详情
AI摘要

本文详细介绍了在Ubuntu系统中遇到apt-get update错误时的解决方案,包括修改sources.list文件使用阿里云镜像源,以及正确配置DNS服务器来解决网络连接问题。

Err http://security.ubuntu.com precise-security InReleaseErr http://security.ubuntu.com precise-security Release.gpg  Temporary failure resolving 'security.ubuntu.com'Err http://cn.archive.ubuntu.com precise InReleaseErr http://cn.archive.ubuntu.com precise-updates InReleaseErr http://cn.archive.ubuntu.com precise-backports InReleaseErr http://cn.archive.ubuntu.com precise Release.gpg  Temporary failure resolving 'cn.archive.ubuntu.com'Err http://cn.archive.ubuntu.com precise-updates Release.gpg  Temporary failure resolving 'cn.archive.ubuntu.com'Err http://cn.archive.ubuntu.com precise-backports Release.gpg  Temporary failure resolving 'cn.archive.ubuntu.com'Reading package lists... DoneW: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/precise/InRelease  W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease  W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/precise-backports/InRelease  W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/InRelease  W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/Release.gpg  Temporary failure resolving 'security.ubuntu.com'W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg  Temporary failure resolving 'cn.archive.ubuntu.com'W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg  Temporary failure resolving 'cn.archive.ubuntu.com'W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg  Temporary failure resolving 'cn.archive.ubuntu.com'W: Some index files failed to download. They have been ignored, or old ones used instead.

一般都会推荐使用国内的镜像源,比如163或者阿里云的镜像服务器 
将下列文本添加到/etc/apt/sources.list文件里

deb http://mirrors.aliyun.com/ubuntu/ raring main restricted universe multiverse  deb http://mirrors.aliyun.com/ubuntu/ raring-security main restricted universe multiverse  deb http://mirrors.aliyun.com/ubuntu/ raring-updates main restricted universe multiverse  deb http://mirrors.aliyun.com/ubuntu/ raring-proposed main restricted universe multiverse  deb http://mirrors.aliyun.com/ubuntu/ raring-backports main restricted universe multiverse  deb-src http://mirrors.aliyun.com/ubuntu/ raring main restricted universe multiverse  deb-src http://mirrors.aliyun.com/ubuntu/ raring-security main restricted universe multiverse  deb-src http://mirrors.aliyun.com/ubuntu/ raring-updates main restricted universe multiverse  deb-src http://mirrors.aliyun.com/ubuntu/ raring-proposed main restricted universe multiverse  deb-src http://mirrors.aliyun.com/ubuntu/ raring-backports main restricted universe multiverse  

但是执行sudo apt-get update仍然报错,问题在于DNS没有配置好。 
解决方法:

sudo vi /etc/resolv.conf

添加

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTENnameserver 127.0.1.1#这里用的是阿里云的DNS服务器nameserver 223.5.5.5  nameserver 223.6.6.6

之后执行sudo apt-get update就正常了。

参考: 
ubuntu apt-get update 失败解决。 
Ubuntu操作系统“Failed to fetch”错误的解决方法

【Ubuntu】apt安装时报错:不再含有 Release 文件 在使用apt安装install或者更新update时,报错。 阅读详情

相关推荐

如何更好的理解PFC(功率因数校正)

此电路虽然简单,可以在前期设计的无PFC功能的设备上,简单的增加一个合适的电感(适当的选取L和C的值),从而达到具有PFC的作用,但是这种简单的、低成本的无源PFC输出纹波较大,滤波电容两端的直流电压也较低,电流畸变的校正及功率因数补偿的能力都很差,而且L的绕制及铁芯的质量控制不好,会对图像及伴音产生严重的干扰,只能是对于前期无PFC设备使之能进入市场的临时措施。)在t4~t5期间尽管二极管左边电压在逐步上升,但是由于二极管右边的Uc放电缓慢右边的电压Uc仍旧大于左边,二极管仍旧反偏截止。

U_YAO的博客 949

E: The repository ‘http://security.ubuntu.com/ubuntu kinetic-security Release‘ no longer has a Relea

ubuntu 在安装的时候报错,找不到文件,因为新版本的文件位置改变了,重新设置,过了维护期了,官方会把过了其的放在old-releases.ubuntu.com里,因此去分别替换一下地址。

山塘小鱼儿的博客 866

Excel也能玩转K-means聚类?手把手教你用表格搞定用户分群(附完整公式)

本文详细介绍了如何在Excel中实现K-means聚类算法,无需编程即可完成用户分群。通过SUMIF、SQRT等基础函数,从数据预处理到最终分群全流程手把手教学,特别强调数据标准化和迭代优化的关键步骤,帮助运营团队低成本高效分析用户行为数据。

weixin_30555125的博客 181

解决The repository ‘http://security.ubuntu.com/ubuntu impish-security Release

【代码】解决The repository 'http://security.ubuntu.com/ubuntu impish-security Release。

qq_45691577的博客 1420

多核异构处理器核间通信:从共享内存到RPMsg协议的实战解析

在多核异构处理器架构中,核间通信是实现高效协同计算的核心技术。其基本原理是通过共享内存作为数据交换的物理媒介,配合硬件信号机制实现同步与通知。从技术价值看,它解决了不同架构核心间的数据共享与指令协同问题,是释放异构计算潜力的关键。在应用场景上,该技术广泛应用于智能物联网设备、汽车电子和工业控制等领域,用于连接高性能应用处理器与实时微控制器。本文以典型的ARM Cortex-A与Cortex-M组合为例,深入剖析了基于共享内存和RPMsg协议的通信机制,涵盖了从硬件基础到软件协议栈的完整实现链路,并提供了针对

weixin_26969269的博客 447

Unity 代码混淆<混淆插件(Obfuscator Pro 3.9.4)>

Unity 代码混淆<混淆插件(Obfuscator Pro 3.9.4)> 插件导入项目 导入后打开OPS/Obfuscator/Obfuscator Pro Settings 打开后可以看到界面如下 可以在上面界面中选择你需要混淆的类,方法,字段,属性,事件,参数。需要混淆的程序集的选择。如果有些程序集混淆后会有问题也可以添加到白名单里不被混淆 根据自己需求取选择 这个界面是是否添加添加随机代码的 如果使用了上面的插件可以使用 插件下载网址:https://download.cs

Xing_Cheng_Yun的博客 5103

linux下sudo apt-get update 报Err http://security.ubuntu.com precise-security InRelease 等

今天在进行linux更新的时候一直报错,尝试了很多办法都不行 于是找到一个方法 切实可行 以根用户运行 cd /var/lib/apt/lists rm * rm /var/cache/apt/archives/lock rm /var/lib/dpkg/lock ...

Zyong139064359的博客 1624

别再被systemd-resolved坑了!银河麒麟V10下用Bind9搭建内网DNS的完整避坑指南

本文详细介绍了在银河麒麟V10和Ubuntu系统下部署Bind9 DNS服务器时,如何解决与systemd-resolved的端口冲突问题。提供了五种专业级解决方案,包括彻底禁用systemd-resolved、智能端口转发等,并特别针对银河麒麟V10的安全加固需求给出了配置建议和诊断工具,帮助用户高效搭建内网DNS服务。

weixin_30342209的博客 656

Linux容器apt安装源错误:The repository ‘http://xxx/ubuntu noble-security InRelease‘ is not signed

Linux容器apt安装源错误:The repository 'http://xxx/ubuntu noble-security InRelease' is not signed.

代码讲故事 2220

YOLOv11模型改进:利用注意力机制实现小目标检测精度跃升

如果你在实操中遇到精度提升不明显或速度下降过多的问题,不妨尝试调整注意力模块的类型(如替换为CA)或插入层级,或针对性优化小目标的数据集增强策略。记住,小目标检测的核心是“特征强化与空间定位”,只要结合业务场景灵活调整注意力模块的组合,你也能让YOLOv11在小目标识别任务中脱颖而出。接下来,我们从模块选型到代码落地,一步步带你打造“小目标检测专精版”YOLOv11,真正帮你解决工业场景中(如安防、质检)的小目标识别痛点。在城市安防场景中,改进后的YOLOv11对远处行人、车辆(小目标)的识别准确率提升。

m0_71589036的博客 454

OpenStack [ compute_id ] 设计上的小缺陷

而 nova 代码中硬编码(或默认配置)将 compute_id 放在 site-packages 目录,属于 设计上的小缺陷—— 把 “库安装目录” 和 “运行时数据目录” 混在一起了,才导致需要临时调整这个目录的权限。# 配置项说明:node_identity_file 是 nova 用于指定节点标识文件路径的官方配置项,优先级高于代码中的默认路径。自定义 compute_id 路径,指向 /var/lib/nova/ 目录下的 compute_id 文件;

求知若渴,虚心若愚。 491

ubuntu sudo apt-get update 失败 解决方法

在Ubuntu16.04中安装LAMP时,使用了 sudo apt-get update 无法更新,报了一大堆错误 Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Temporary failure resolving 'security.ubuntu.com' Err:2 http://mirror...

杂乱的干货铺 1万+

Vue2 - 实现全景图Vr 720°全景效果查看预览功能,3D全景图流畅不卡顿渲染+手势拖拽+悬浮工具按钮,vue实现vr看720度全景效果方案讲解及示例代码(兼容电脑PC网页+手机H5移动端页面)

vue全景VR图,vue h5实现全景720预览,vue加载720全景图_vue怎么加载vr图片,vue实现vr全景看房,vue2实现全景效果,加载很慢卡怎么办,实现全景预览的插件,vue显示720度全景图,720°全景图显示,在h5中展示720°全景图,浏览全景图,基于vue实现vr全景预览,加载全景图,vue全景预览pannellum插件,vue实现3D全景图,实现720°全景图展示,在VUE 中使用three.js实现全景视频播放,vue项目中使用photo-sphere-viewer实现vr720度

🏆 前端领域优质创作者 3317

Docker运行ubuntu22.04出现异常

通常情况下,容器里面所有的系统调用都会被docker捕获,然后docker决定如何处理它们。如果docker中没有为特定系统调用指定策略,则默认的策略会通知容器这边"Permission Denied"。由于生产环境调整docker版本不是一件容易的事情,所以生产环境在构建镜像时候要避免使用ubuntu21.10和fedora35以更高版本的镜像,以及使用它们作为基础镜像的其他镜像。不过这会有很大的问题,一个是你的容器将变得不安全,另一个是这些参数在构建镜像的时候是不可用的。的时候出现了以下报错。

琦彦 4004

win10 跳过U8环境检测的IE WebControls.rar

win10 安装u8的时候 提示IE WebControls 不通过,这个工具可以欺骗u8的检查。 跳过U8环境检测的IE WebControls。提示导入失败后,重新检测通过。

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

错误:1 http://security.ubuntu.com/ubuntu focal-security InRelease 暂时不能解析域名“security.ubuntu.com”

错误:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal InRelease暂时不能解析域名“mirrors.tuna.tsinghua.edu.cn”

hunter206的博客 1万+

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

docker运行ubuntu22.04出现异常(转载)

Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true' E: Sub-process returned an error code

qq_43808467的博客 3403

霍尼韦尔SoftMaster使用说明

霍尼韦尔SoftMaster使用说明

学习笔记之ubuntu sudo apt-get update失败已经解决

ubuntu sudo apt-get update失败已经解决 运行sudo apt-get update出现的错误如下: /etc/apt$ sudo apt-get update Err http://security.ubuntu.com precise-security InRelease Err http://security.ubuntu.com precise-security Release.gpg Temporary failure resolving 'security.ub

上善若水的博客 9875

Ubuntu 20 仓库 http://security.ubuntu.com/ubuntu xenial-security InRelease 没有数字签名 解决

W: GPG 错误:http://security.ubuntu.com/ubuntu xenial-security InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32 E: 仓库 “http://security.ubuntu.com/ubuntu xenial-security InRelease” 没有数字签名。 N: 无法安全地用该源进行更新,所以默认禁用该源。 N: 参见 apt-s.

CyrusZhou的专栏 9782

E: The repository ‘http://security.ubuntu.com/ubuntu hirsute-security Release‘ no longer has a Relea

E: The repository 'http://security.ubuntu.com/ubuntu hirsute-security Release' no longer has a Release file.

whatzhang007的博客 1218

popos ubuntu19.10源地址更新即解决提示找不到源

sudo apt-get update 忽略:1 http://us.archive.ubuntu.com/ubuntu eoan InRelease 忽略:2 http://us.archive.ubuntu.com/ubuntu eoan-security InRelease 忽略:3 http://us.archive.ubuntu.com/ubuntu eoan-updates InRelease 忽略:4 http://us...

一个不安分的程序员 1364

Ubuntu 22.04 jammy 的镜像使用apt update失败

【代码】Ubuntu 22.04 jammy 的镜像使用apt update失败。

double_happy111的博客 1万+

Docker 入门指南:如何在 Ubuntu 上安装和使用 Docker

前言 Docker是一个开源的应用容器引擎。Docker 可以让开发者打包他们创建的应用以及相应的依赖包到一个可移植、轻量级的容器中。Docker 可大大简化在容器中管理应用程序的过程。容器使用沙盒机制,运行在其中的应用与主系统相互分离,类似与虚拟机。但容器比虚拟机有更棒的可移植性、占用计算机资源更小。 有关 Docker 容器的不同组件的详细介绍,请看这篇《 Docker 生态系统:通用组件》(正在撰写中,稍后上线)。 这篇教程里,我们在 Ubuntu 20.04 上安装并运行 Docker Co.

My Blogs 1798

Docker容器中的ubuntu apt update报错 解决办法

原因很大可能是历史apt下载的太多了清除一下缓存即可。

weixin_38679007的博客 935

解决E: The repository ‘http://packages.ros.org/ros/ubuntu jammy Release‘ does not have a Release file.

解决E: The repository ‘http://packages.ros.org/ros/ubuntu jammy Release‘ does not have a Release file.

weixin_43994934的博客 8876

Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease Could not resolve ‘security.ubun

在执行apt-get update命令的时候更新报错。 Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease Could not resolve 'security.ubuntu.com' Err:2 http://cn.archive.ubuntu.com/ubuntu bionic InRelease Could not resolve 'cn.archive.ubuntu.com' Err:3 http://cn

全村的希望的博客 1万+

无法连接上security.ubuntu.com:80

无法连接上 security.ubuntu.com:80 (::)。- connect (111: 连接被拒绝) 无法连接上 security.ubuntu.com:80 (124.236.16.201),连接超时。若是图形界面,则找到软件和更新工具,找到下载自,将主服务器更换为位于中国的服务器。执行sudo apt-get update时显示。执行sudo apt-get update即可。将原有内容删除,复制以下内容并保存,或者找到。

qq_36094347的博客 2432
上一篇: 正则从某个字段批量到最后一行
下一篇: mybatis+springmvc 数据库带下划线的字段无法取到值
来自人间的烟火
博客等级 码龄12年 23粉丝 33原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值