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

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.kler.cn/a/464689.html

相关文章:

  • Hive如何创建自定义函数(UDF)?
  • 25年1月更新。Windows 上搭建 Python 开发环境:Python + PyCharm 安装全攻略(文中有安装包不用官网下载)
  • Transformer入门指南:从原理到实践
  • 有哪几种方法可以使html脱离文档流?
  • 华为OD E卷(100分)44-单次接龙
  • 深入浅出 Beam Search:自然语言处理中的高效搜索利器
  • ThinkPHP 模板引擎使用技巧:提高开发效率
  • 第四讲 比特币的主流化与价格波动
  • [python SQLAlchemy数据库操作入门]-24.使用 Celery 与 SQLAlchemy:异步任务处理股票数据
  • 互慧-急诊综合管理平台 ServicePage.aspx 任意文件读取漏洞复现
  • Spring Security(maven项目) 3.0.2.3版本
  • Docker图形化界面工具Portainer最佳实践
  • Unix/Linux 系统中环境变量有哪些
  • 两个等号和三个等号(待查资料)
  • Centos7部署NTP服务及客户端同步实践
  • 使用 4 种主要方法将数据从 HTC 传输到华为
  • 解决Spring3.4版本中使用QueryDSL中出现MongoAnnotationProcessor使用问题
  • Javascript算法——回溯算法(组合问题)
  • Oracle 使用 sql profile 固定执行计划
  • 国产编辑器EverEdit - 常用资源汇总