当前位置:网站首页 > Vue.js开发 > 正文

ubuntu 18.04 换源(ubuntu18.04换源 两种方法)



1.输入该命令按回车键拷贝源文件进行备份:cp /etc/apt/sources.list /etc/apt/sources.list.bak

输入该命令按回车键拷贝源文件进行备份

2.输入该命令按回车键:vi /etc/apt/sources.list

输入该命令按回车键:vi /etc/apt/sources.list

3.按i进入插入模式,将文件内容修改为如下内容,然后按ESC键输入wq按回车键保存退出vi编辑

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

# deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

# deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

按i进入插入模式,将文件内容修改为如下内容,然后按ESC键输入wq按回车键保存退出vi编辑

4.输入该命令按回车键更新列表:apt-get update

更新列表:apt-get update

到此这篇ubuntu 18.04 换源(ubuntu18.04换源 两种方法)的文章就介绍到这了,更多相关内容请继续浏览下面的相关推荐文章,希望大家都能在编程的领域有一番成就!

版权声明


相关文章:

  • pcie5.0什么时候出(pcie5.0 intel)2025-01-02 13:54:10
  • ubuntu 内核升级(ubuntu 内核升级到6.7)2025-01-02 13:54:10
  • jsnal00是华为什么型号手机(jsn al00a是华为是什么型号)2025-01-02 13:54:10
  • nvme接口是什么样子(nvme2.0接口)2025-01-02 13:54:10
  • jsj是哪个明星文艺小生(jw是哪个明星)2025-01-02 13:54:10
  • cjson库内存泄露(jna 内存泄露)2025-01-02 13:54:10
  • ubuntu20.04安装cmake(ubuntu20.04安装桌面)2025-01-02 13:54:10
  • PCIe5.0显卡延长线(显卡延长线pcie3能插pcie4.0吗)2025-01-02 13:54:10
  • vue 插槽(vue 插槽 内存泄露)2025-01-02 13:54:10
  • mha-al00是华为手机的什么型号(jsnal00是华为什么型号手机)2025-01-02 13:54:10
  • 全屏图片