【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
posted @ 2020-12-02 17:25  小米渣渣  阅读(6014)  评论(0编辑  收藏  举报