『踩坑记录』Ubuntu安装python3-pip报错Package ‘python3-pip‘ has no installation candidate

问题描述

sudo apt update;sudo aptupgrade后安装python3-pip仍然失败,报错:

Package python3-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python3-pip' has no installation candidate

在这里插入图片描述

解决方法:添加apt的Universe库

Ubuntu换源后没有添加Universe库导致搜不到,运行即可:

sudo add-apt-repository universe
sudo apt-get install python3-pip

在这里插入图片描述

欢迎关注我的CSDN博客 :@Ho1aAs
版权属于:Ho1aAs
本文链接:https://ho1aas.blog.csdn.net/article/details/135779402
版权声明:本文为原创,转载时须注明出处及本声明

最近更新

  1. shell脚本实现mysql 数据库备份

    2024-01-24 01:30:04       0 阅读
  2. 数据结构第11节: B树

    2024-01-24 01:30:04       0 阅读
  3. Spring Boot与RSocket的集成

    2024-01-24 01:30:04       0 阅读
  4. 责任链模式

    2024-01-24 01:30:04       0 阅读
  5. docker run/build Dockerfile 修改及完善

    2024-01-24 01:30:04       1 阅读

热门阅读

  1. seafile+onlyoffice集成部署

    2024-01-24 01:30:04       37 阅读
  2. 一文读懂 c++ 容器

    2024-01-24 01:30:04       37 阅读
  3. 【使用vue-cli构建项目详细介绍】

    2024-01-24 01:30:04       41 阅读
  4. 前端Vue开发规范

    2024-01-24 01:30:04       31 阅读
  5. EXCEL VBA两列判断重复

    2024-01-24 01:30:04       37 阅读
  6. ZZULIOJ 1054: 猴子吃桃

    2024-01-24 01:30:04       38 阅读
  7. 动态规划学习——赢得最大数

    2024-01-24 01:30:04       38 阅读