在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时,报错。 阅读详情

相关推荐

避坑指南:HslCommunication连接西门子PLC时常见的5个错误及解决方法(S7-1200/S1500适用)

本文详细解析了使用HslCommunication连接西门子S7-1200/S1500 PLC时常见的5个错误及解决方法,包括基础连接配置、数据块读写异常、连接闪断、防火墙与权限问题以及高级调试技巧。通过实战案例和代码示例,帮助开发者快速定位和解决连接问题,提升工业自动化项目的开发效率。

weixin_30752699的博客 397

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

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

山塘小鱼儿的博客 866

开关电源三大基本拓扑:反激、正激与桥式选型本质

开关电源拓扑是电力电子系统设计的核心基础概念,其本质决定能量传递路径、器件应力分布与系统物理边界。反激拓扑以耦合电感形式实现隔离与升降压,适用于小功率AC-DC场景;正激拓扑依赖实时能量传递与强制复位机制,支撑中功率高效率需求;桥式拓扑(含推挽/半桥/全桥)通过电压应力分摊与双向磁化,成为大功率系统的刚性选择。理解三者在磁芯工作模式、电流连续性、直流偏磁抑制等方面的原理差异,直接关系到效率、温升、EMI及可靠性等关键技术指标。本文聚焦反激、正激、桥式三大工程级基本拓扑的物理本质与落地约束,揭示从需求参数到电

cqwmy840702的博客 376

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

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

qq_45691577的博客 1420

西工大noj100题python2024第三季21-30

【代码】西工大noj100题python2024第三季21-30。

weixin_70523540的博客 1578

基于Matlab/Simulink的三相并网逆变器dq阻抗扫频仿真与理论建模实践指南

本文详细介绍了基于Matlab/Simulink的三相并网逆变器dq阻抗扫频仿真与理论建模实践方法。通过搭建仿真模型、设计扰动注入策略和FFT分析,精确提取阻抗特性,有效预测系统稳定性,为新能源并网系统设计提供可靠指导。

gold的博客 775

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

使用sklearn学习多项式回归(三)

1,什么是线性 我们无数次提到”线性“这个名词。在支持向量机中,我们也曾经提到最初的支持向量机只能够分割线性可分的数据,然后引入了”核函数“来帮助我们分类那些非线性可分的数据。我们也曾经说起过,比如说决策树,支持向量机是”非线性“模型。所有的这些概念,让我们对”线性“这个词非常熟悉,却又非常陌生——因为我们并不知道它的真实含义。接下来我们看看线性回归模型改进的核心之一:帮助线性回归解决非线性问题。 1.1,变量之间的线性关系 ”线性“这个词用于描述不同事物时有着不同的含义。我们最常使用的线性是指“变量

理科男同学 5101

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

echarts的坐标轴处理算法

参考原文:https://www.cnblogs.com/vicky-li/p/11653415.html。2、可用于双轴的情况,指定splitNumber,保证左右两边的线没有交叉显示的情况。1、设置echarts显示的最大最小值,让数据显示比较有起伏。处理echarts的一些问题。

HYeeee的博客 801

ZYNQ裸机LWIP双网口实现

文章目录前言一、LWIP双网口二、使用步骤1.部分说明2.部分代码总结 前言 一、LWIP双网口 由于项目需要多通讯口,查阅资料发现lwip支持多网口操作。于是,就开搞了。 二、使用步骤 1.部分说明 利用xemac_add函数在网卡链表中添加一个网卡,即使用netif块重复xemac_add操作。 先用轮询的方式实现双网口,后期修改为中断模式 2.部分代码 导入官方例程LWip echo server, 修改main函数,增加一个netif块 #if LWIP_IPV6==0 #if L..

weixin_35865280的博客 1万+

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万+

Jenkins自动化部署服务到Kubernetes环境

通过Jenkins实现自动化部署可以大大提高软件交付的效率和质量。本文介绍的部署流程涵盖了从代码编译、Maven依赖管理、Docker镜像构建到Kubernetes部署的完整流程,并提供了通知机制以便及时了解部署状态。特别需要注意的是Maven与私服的配置,这是确保构建过程能够正常访问依赖包的关键。通过Jenkins的凭据管理功能,可以安全地管理私服的认证信息,避免敏感信息泄露。在实际应用中,您可能需要根据具体的项目需求和环境特点调整部署脚本。

探索云原生与智能化驱动下的安全运维新范式。关注DevSecOps、可观测性、AIOps等前沿领域,与您共赴技术前沿。 528

Docker运行ubuntu22.04出现异常

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

琦彦 4004

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

错误: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万+

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

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

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

学习笔记之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、付费专栏及课程。

余额充值