【Ubuntu安装pip】sudo apt-get install python3-pip报安装依赖包失败的解决办法

一、ubuntu安装pip

sudo apt-get install python3-pip

二、依赖包不存在

【Ubuntu安装pip】sudo apt-get install python3-pip报安装依赖包失败的解决办法

 

 

 

sudo apt-get -f install(sudo apt-get -f install --fix-missing) 安装mysql-community-server

上述操作需要替换成国内源

cd /etc/apt sudo

cp sources.list sources.list.bak

sudo gedit sources.list

 

sources.list 如下

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse

 

更新源

sudo apt-get update
上一篇:windows和ubuntu更换下载源


下一篇:2016HUAS暑假集训训练题 D - Find a way