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

ubuntu22.04换源

1、系统信息

lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy

 2、进入 /etc/apt/ 目录:

cd /etc/apt/

3、备份默认源文件

sudo cp sources.list sources.list_bak

4、编辑源配置文件

sudo gedit sources.list
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse

5、跟新软件库

sudo apt update

6、升级软件

sudo apt upgrade

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

相关文章:

  • 03. Python中的语句
  • Linux CentOS7 添加网卡
  • 2311rust,到54版本更新
  • 【linux】补充:高效处理文本的命令学习(tr、uniq、sort、cut)
  • Redis篇---第七篇
  • Shell脚本:Linux Shell脚本学习指南(第一部分Shell基础)一
  • 长短期记忆(LSTM)与RNN的比较:突破性的序列训练技术
  • Swift 如何打造兼容新老系统的字符串分割(split)方法
  • JVM面试必备
  • 战神传奇【我本沉默精修版】win服务端+双端+充值后台+架设教程
  • 安卓手机投屏到电视,跨品牌、跨地域同样可以实现!
  • python变量名解析总结
  • 端口号大揭秘:网络世界的“门牌号”有多牛?
  • vue解除数据双向绑定
  • 组件插槽,生命周期,轮播图组件的封装,自定义指令的封装等详解以及axios的卖座案例
  • 小美的树上染色
  • 1.rk3588的yolov5运行:pt_onnx_rknn转换及rknn在rk3588系统python运行
  • 适用于全部安卓手机的 5 大免费 Android 数据恢复
  • 【案例分享】BenchmarkSQL 5.0 压测 openGauss 5.0.0
  • Linux之 4 种休眠模式
  • homeassiant主题
  • 《2020年最新面经》—字节跳动Java社招面试题
  • 2.3IP详解及配置
  • Python程序打包指南:手把手教你一步步完成
  • Linux yum 使用时提示 获取 GPG 密钥失败Couldn‘t open file RPM-GPG-KEY-EPEL-7
  • OpenGL_Learn13(材质)
  • buildadmin+tp8表格操作(1)----表头上方添加按钮和自定义按钮
  • MySQL 定时计划任务 事件的使用
  • C++构造函数 拷贝构造函数 括号法显示法隐式转换法实现类
  • FreeRTOS中的内存分配策略