0%

WSL之Ubuntu手札

Linux with Windows

1. 基础命令

1.1. 查询版本号

1
2
muyi@MUYI-DESKTOP:~$ cat /etc/issue
Ubuntu 18.04.2 LTS \n \l

2. 报错处理记录

2.1. Unable to locate package python3-pip

1
2
3
4
5
muyi@MUYI-DESKTOP:~$ sudo apt install python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-pip

解决:

编辑/etc/apt/sources.list文件

1
sudo nano /etc/apt/sources.list

添加universe在每行最后, 如

1
2
3
deb http://archive.ubuntu.com/ubuntu bionic main universe
deb http://archive.ubuntu.com/ubuntu bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe

ctrl+Center保存退出

1
2
sudo apt update
sudo apt install python3-pip

成功