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

Ubuntu 22.04.4 LTS更换下载源

方法1:使用图形界面更换下载源

1. 打开软件和更新应用

2. 在Ubuntu 软件标签中,点击“下载自”旁边的下拉菜单,选择“其他”

3. 点击“选择最佳服务器”来自动选择最快的服务器

4. 选择服务器

5. 确定并关闭窗口,系统会提示您重新加载软件包信息,点击“重新加载”即可

方法2:通过终端手动更换下载源

1. 备份原来的源列表

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

2. 编辑源列表

sudo nano /etc/apt/sources.list

3.替换为阿里源或清华源

阿里源:

deb https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse

清华源:

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

3. 保存并退出。编辑完成后,按Ctrl+O保存,按Enter确认,然后按Ctrl+X退出

4. 更新软件包列表。更新软件包列表并确保新的源已生效

sudo apt update

补充:

升级所有已安装的包到最新版本:

sudo apt update
sudo apt upgrade

如果系统提示有可用的内核更新,你可以通过以下命令升级内核:

sudo apt dist-upgrade

清理不再需要的包:

sudo apt autoremove

重启电脑

sudo reboot
http://www.lryc.cn/news/457392.html

相关文章:

  • html嵌入百度地图
  • 【网络】详解TCP协议中的可靠传输
  • 【Python实例】Python读取并绘制nc数据
  • swift使用llama3.2-vision微调xray数据集
  • 学习小课堂
  • stm32学习笔记-RTC实时时钟
  • 简历中的期望薪资怎么定?
  • MySQL 中的 GROUP BY 使用
  • 在 ubantu 20.04 云服务器上基于 bochs 编译 linux0.11
  • docker-compose安装部署和使用
  • Java之静态
  • PCB缺陷检测数据集 xml 可转yolo格式 ,共10688张图片
  • 【linux开发-驱动】-设备树
  • 不动产证ocr识别场景解析、房产证识别API
  • gpg 密钥生成、导入、导出、自动输入密码
  • 新个性化时尚解决方案!Prompt2Fashion:自动生成多风格、类型时尚图像数据集。
  • 软件设计师——计算机网络
  • Python 实现电话号码和Email地址提取程序
  • JavaGuide(3)
  • 微信小程序15天
  • 用Python制作数据可视化仪表盘:使用Dash与Plotly构建实时交互式仪表盘
  • 干部管理系统:全面提升干部管理效能
  • Java之方法
  • MyBatis 数据表与实体映射的隐藏陷阱
  • leetcode-239. 滑动窗口最大值
  • springboot项目中开启mybatis的sql日志
  • 卷积的计算——nn.Conv2d(Torch.nn里的Convolution Layers模块里的Conv2d类)
  • 确保接口安全:六大方案有效解决幂等性问题
  • 代码随想录算法训练营第二十九天| 93. 复原 IP 地址,78. 子集, 90. 子集 II
  • 【WebGis开发 - Cesium】三维可视化项目教程---初始化场景