- 设置国内下载源
- system settings -> software&updates ->download from
选择aliyun
- 打开终端
sudo apt update
- 安装pip
sudo apt install python3-pip
可能出现的错误:
-
You might want to run ‘apt-get -f install’ to correct these:
The following packages have unmet dependencies:
…………
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).
使用apt-get -f install命令 -
unable to lock administration director
原因:当前apt正在使用中,需要退出
解决:进入lock所在文件夹,删除lock
cd /var/lib/dpkg
sudo rm lock