当前位置: 首页 > news >正文

Ubuntu执行sudo apt-get update失败的解决方法

Ubuntu版本:24.04.1

报错信息:

Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)

如果你在执行以上命令的时候也出现了上面这样的错误提示,先检查一下是不是网络问题,如果确定不是,可以尝试一下我这个解决办法。

这个错误说明目前使用的下载源不能用,这个时候可以尝试一下换源,具体命令如下:

sudo cd /etc/apt/sources.list.d
sudo cp sources.list.d sources.list.d.bak
sodu vi sources.list.d

这里需要注意的是,ubuntu24的源配置文件路径已经改为了/etc/apt/sources.list.d,源配置文件为sources.list.d;而之前版本的Ubuntu源配置文件路径是/etc/apt,源配置文件为sources.list。

#清华源
Types: deb
URIs: http://mirrors.tuna.tsinghua.edu.cn/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

将以上内容粘贴到打开的sources.list.d文件中(PS:可以将之前的源码注释掉),然后关闭文本编辑器,更新源。

sudo apt-get update

一些其他国内源:

#中科大源
Types: deb
URIs: http://mirrors.ustc.edu.cn/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
#阿里云
Types: deb
URIs: http://mirrors.aliyun.com/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
#网易163
Types: deb
URIs: http://mirrors.163.com/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

http://www.lryc.cn/news/514471.html

相关文章:

  • torch.nn.functional的用法
  • 最新常见的图数据库对比,选型,架构,性能对比
  • UE5材质节点Camera Vector/Reflection Vector
  • NextCloud服务安装与配置教程
  • 详解GPT-信息抽取任务 (GPT-3 FAMILY LARGE LANGUAGE MODELS)
  • 华为数通考试模拟真题(附带答案解析)题库领取
  • 微信小程序:正确输出<小于,大于>符号
  • Flink源码解析之:如何根据算法生成StreamGraph过程
  • 矩阵简单问题(Java)
  • Elasticsearch DSL版
  • 2024-12-29-sklearn学习(26)模型选择与评估-交叉验证:评估估算器的表现 今夜偏知春气暖,虫声新透绿窗纱。
  • STM32CUBEIDE FreeRTOS操作教程(十二):std dynamic memory 标准动态内存
  • 异步爬虫之aiohttp的使用
  • 【Rust自学】9.1. 不可恢复的错误以及panic!
  • 【老张的程序人生】一天时间,我成软考高级系统分析师
  • vue使用el-select下拉框自定义复选框
  • k8s基础(2)—Kubernetes-Namespace
  • APM for Large Language Models
  • Spark Runtime Filter
  • AI大模型系列之七:Transformer架构讲解
  • 基于51单片机(STC12C5A60S2)和8X8彩色点阵屏(WS2812B驱动)的小游戏《贪吃蛇》(普中开发板矩阵按键控制)
  • 遇到复杂的 递归查询sql 需要oracle 转pgsql 可以把数据表结构给ai
  • Zynq PS端外设之GPIO
  • Spring Boot项目开发常见问题及解决方案(上)
  • Elasticsearch: 高级搜索
  • STM32 拓展 电源控制
  • SpringBootWeb案例-1
  • HTML——57. type和name属性
  • 应用架构模式-总体思路
  • vue 虚拟滚动 vue-virtual-scroller RecycleScroller