Open mowatermelon opened 6 years ago
$ whereis python #查看本地python的配置
python: /usr/bin/python3.6 /usr/bin/python3.6m /usr/lib/python2.7 /usr/lib/python3.6 /usr/lib/python3.7 /etc/python3.6 /usr/local/lib/python3.6 /usr/share/python
$ python3 -V # 查看python版本
Python 3.6.5
$ python3 # 进入python编辑状态
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
$ sudo apt-get install gnome
[sudo] password for melon:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
gnome : Depends: gnome-core (= 1:3.8+4ubuntu3) but it is not going to be installed
Depends: network-manager-gnome (>= 0.9.4) but it is not going to be installed
Depends: gedit (>= 3.4) but it is not going to be installed
Depends: gnome-color-manager (>= 3.4) but it is not going to be installed
Depends: gnome-documents (>= 0.4) but it is not going to be installed
Depends: gnome-games (>= 1:3.4) but it is not going to be installed
Depends: nautilus-sendto (>= 3.0) but it is not going to be installed
Depends: gnome-orca (>= 3.4) but it is not going to be installed
Depends: seahorse (>= 3.4) but it is not going to be installed
Depends: totem (>= 3.0) but it is not going to be installed
Depends: alacarte (>= 0.13.4) but it is not going to be installed
Depends: avahi-daemon but it is not going to be installed
Depends: gnome-tweak-tool (>= 3.4) but it is not going to be installed
Depends: libreoffice-gnome but it is not going to be installed
Depends: libreoffice-impress but it is not going to be installed
Depends: rhythmbox (>= 2.96) but it is not going to be installed
Depends: tomboy (>= 1.10) but it is not going to be installed or
gnote but it is not going to be installed
Depends: gedit-plugins (>= 3.4) but it is not going to be installed
Depends: gnome-applets (>= 3.4) but it is not going to be installed
Depends: gnome-shell-extensions (>= 3.4) but it is not going to be installed
Depends: rhythmbox-plugins but it is not going to be installed
Depends: rhythmbox-plugin-cdrecorder but it is not going to be installed
Depends: telepathy-salut but it is not going to be installed
Depends: totem-plugins but it is not going to be installed
Depends: libgtk2-perl (>= 1:1.130) but it is not going to be installed
Recommends: gdebi but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
开启功能
window+r
中输入appwiz.cpl
,进入程序和功能管理页面。启用或关闭Windows功能
,在出来的弹窗中,将滚动条滑倒底部,勾选适用于Linux的Windows子系统
,确定,重启电脑。检验是否开启成功
在
window+r
中输入cmd
,进入终端页面,在终端中输入bash
,就可以进入Linux Bash命令行效果
。注意在linux命令行中进入相关文件夹是
/
,不能输入\
,这样会直接被忽略的。X:
,所有盘符都是挂载在一个主目录下。安装ubuntu子系统
直接进入win10应用商店,搜索
ubuntu
选择最新的版本进行安装就可以了,截至到2018/08/19,这边Ubuntu的最新版是18.4
,这边直接点击安装就可以了。安装的时候,这边会自动出现一个终端,安装完成之后,这边会提示需要创建一个
UNIX user account
,创建完账户和设置密码之后,就可以玩系统了修改ubuntu子系统镜像
更新ubuntu源
设置ubuntu语言
修改当前用户权限
21行
是本次新增的内容,即给melon用户授予sudo
权限安装常用应用