当前位置:网站首页 > 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换源 两种方法)的文章就介绍到这了,更多相关内容请继续浏览下面的相关推荐文章,希望大家都能在编程的领域有一番成就!

版权声明


相关文章:

  • jsnal00是华为什么型号手机(jsn al00a是华为是什么型号)2025-01-02 13:54:10
  • jsj是哪个明星文艺小生(jw是哪个明星)2025-01-02 13:54:10
  • redhat linux网络配置(redhat6.5网络配置)2025-01-02 13:54:10
  • pcie5(pcie5.0固态硬盘什么时候出)2025-01-02 13:54:10
  • vmware6.0密钥(vmware密钥有什么用)2025-01-02 13:54:10
  • ubuntu20.04安装cmake(ubuntu20.04安装桌面)2025-01-02 13:54:10
  • vue 插槽(vue 插槽 内存泄露)2025-01-02 13:54:10
  • ubuntu18.04安装cmake(Ubuntu18.04安装l226网卡驱动)2025-01-02 13:54:10
  • Vue插槽用法(vue2插槽)2025-01-02 13:54:10
  • pcie5.0电源(pcie5.0电源是什么意思)2025-01-02 13:54:10
  • 全屏图片