今天在Windows11上安装了自带的Ubuntu系统,然后想安装pip的时候报错了
# sudo apt-get install python3-pip
Reading package lists... Done
Building dependency tree... Done
Package aptitude 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 <packagename> has no installation candidate
解决办法:更新 apt-get
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python3-pip