文章目录[隐藏]
问题
业务需求,需要电脑本地部署linux系统,
下面文章为你解决,windows10系统 部署ubuntu 环境,同时安装部署宝塔面板管理。
本次操作需要
- 去应用商店下载 Ubuntu,任意版本
- bt 宝塔面板一键安装脚本 wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh
- 更换ubuntu 软件源加速下载
商店下载 Ubuntu
先进入控制面板 -> 程序 -> 启用或关闭 Windows 功能 打开 适用于 Linux 的 Windows 子系统 选项,确定
去应用商店下载 Ubuntu,任意版本
启动Ubuntu 进入root 账户
替换Ubuntu软件源加速
1. 备份原始源文件 sources.list
桌面打开终端,执行命令:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2. 修改源文件 sources.list
(1)终端执行命令:
sudo chmod 777 /etc/apt/sources.list 更改文件权限使其可编辑;
(2)执行命令:
sudo gedit /etc/apt/sources.list 打开文件进行编辑;
(3)使用#备注掉之前源的文件内容,复制下面的任意一个到其中并保存(常用的是阿里源和清华源,推荐阿里源);
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
宝塔面板安装
- bt 宝塔面板一键安装脚本 wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh