Ubuntu安装完成之后要做的事

电脑上通过VMware安装了Ubuntu18.04,这里记录一下Ubuntu安装完毕之后要做的事情,以备下次使用
目前仅仅是用过一些应用软件的测试使用,所以仅仅切换了软件园,后续再继续整理吧

1.切换Ubuntu软件园到阿里云

  • 对source.list文件进行备份
    sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
  • 编辑source.list文件,将软件源添加到文件中,如阿里云的源:
    可以使用sudo vi /etc/apt/sources.list,命令模式下输入dG清空文件后添加以下内容
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
  • 使修改生效
    sudo apt-get update

你可能感兴趣的:(Ubuntu安装完成之后要做的事)