Linux with Windows
1. 基础命令
1.1. 查询版本号
1 | muyi@MUYI-DESKTOP:~$ cat /etc/issue |
2 | Ubuntu 18.04.2 LTS \n \l |
2. 报错处理记录
2.1. Unable to locate package python3-pip
1 | muyi@MUYI-DESKTOP:~$ sudo apt install python3-pip |
2 | Reading package lists... Done |
3 | Building dependency tree |
4 | Reading state information... Done |
5 | E: Unable to locate package python3-pip |
编辑/etc/apt/sources.list
文件
1 | sudo nano /etc/apt/sources.list |
添加universe
在每行最后, 如
1 | deb http://archive.ubuntu.com/ubuntu bionic main universe |
2 | deb http://archive.ubuntu.com/ubuntu bionic-security main universe |
3 | deb http://archive.ubuntu.com/ubuntu bionic-updates main universe |
ctrl
+C
后enter
保存退出
1 | sudo apt update |
2 | sudo apt install python3-pip |
成功