How to install Python package installer PIP on Ubuntu 20.04 Linux - linux

Trying to install pip with Ubuntu version 20.04, Python version 3.8 on my Oracle virtual box.
Tried everything to install pip but failed
Steps tried
$ sudo apt update
$ sudo apt install python3-pip
Also tried
$ sudo apt-get install python3-pip
Error both times
python3-pip is not available but is being used by another candidate. This may mean that the package has been obsolete, has been missing or is only available from another source.
E: Package 'python3-pip' has no installation candidate

Option 1
1.vim /etc/apt/sources.list
2.add these lines in the above file.
deb http://http.kali.org/kali kali-rolling main non-free contribs
deb http://kali.cs.nctu.edu.tw/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
sudo apt update
sudo apt install python3-pip
Option 2
sudo apt-get update
sudo apt-get upgrade
sudo apt install python3-pip
Option 3
https://stackoverflow.com/a/59922280/11741464
Source:
facing problem in kali linuix python3-pip

Related

Installing kernel headers packages missing error

I am trying to install kernel-headers but getting this error
E: Unable to locate package linux-headers-5.9.0-kali1-amd64
E: Couldn't find any package by glob 'linux-headers-5.9.0-kali1-amd64'
E: Couldn't find any package by regex 'linux-headers-5.9.0-kali1-amd64'
I have updated and uncommented this line in sources.list
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
but errors thats can't locate regex or glob. what I am missing?
Here's what you may need to do
sudo apt-get update # This will update the repositories list
sudo apt-get upgrade # This will update all the necessary packages on your system
sudo apt-get dist-upgrade # This will add/remove any needed packages
reboot # You may need this since sometimes after a upgrade/dist-upgrade, there are some left over entries that get fixed after a reboot
sudo apt-get install linux-headers-$(uname -r) # This should work now
from what am guessing linux-headers-5.9.0 is not available in the kali repository.
you can always use apt-cache search linux-headers to know if it available
but to update to the latest linux headers
sudo apt-get update
sudo apt-get dist-upgrade
then search for Linux-headers available using apt search Linux-headers.
so you install the latest version using
sudo apt-get install -y linux-headers-$(uname -r)

“E: Unable to locate package python3-pip” in Debian 10

For installing pip3 I am following apt update process.
But I am getting output in terminal:
$ sudo apt-get update
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-pip
Tried all available solutions on stackoverflow.
Please suggest any solutions.
Sometimes the sources.list file is not configured properly, so if none of solutions work than try this:
Type in terminal, gedit etc/apt/sources.list. A file will open, check if these given lines are present or not in that file:
deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main
deb http://deb.debian.org/debian-security/ buster/updates main
deb-src http://deb.debian.org/debian-security/ buster/updates main
deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main
In my case these were missing, this means the apt-get command had no mirrors configured to pull and update packages. These lines are the links to Debian repositories from where packages are pulled.
Copy and paste these lines into that file and save and close it.
Now run sudo apt-get update and than run sudo apt-get upgrade. Once process finishes run sudo apt-get install -y python3-pip. This will install pip3 without any error.
Please run an update and upgrade,
sudo apt update && sudo apt upgrade
Hopefully, this will fix the issue. if this doesn't work you can always update the source list manually.

python3-pip has no installation candidate

I am having an error after typing:
sudo apt-get install python3-pip
This is the error:
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
What should I do?
You need to update source list first,
Try running
sudo apt-get update
sudo apt-get upgrade #Optional
sudo apt install python3-pip
hi I had same issue but I ran the following commands to fix it
sudo add-apt-repository universe
sudo apt-get update
sudo apt install python3-pip
and it solved the problem
The solution is to add the universe repository:
sudo add-apt-repository universe
Then update apt:
sudo apt update
And try again:
sudo apt install python3-pip
in Debian 11, part of this answer helped me (I invite you to upvote it unix.stackexchange.com, please): https://unix.stackexchange.com/questions/522758/how-to-install-software-properties-common-in-debian-9/522770#522770
Summarizing, add to /etc/apt/sources.list the next line (replacing by the right Debian version name, as stretch or bullseye):
deb http://deb.debian.org/debian/ <version-name> main
In my case,
deb http://deb.debian.org/debian/ bullseye main
After this, I cold install my missing packages, as software-properties-common python3-pip vim tree

Install mpeg4ip using apt on Ubuntu 14.04TLS

I want to install mpeg4ip tool on ubuntu14.04TLS. I have searched and found below answer:
sudo apt-get install mpeg4ip-server
But it seems doesn't work.
Then I found mpeg4ip 1:1.6dfsg-0.2ubuntu8 source package in Ubuntu but I don't know how to use it as upstream.
I can see the tar package but I don't think I have to build it myself. I guess many dependency so it's better to install binary.
Just got below solution:
First,Add source of lucid.
sudo vim /etc/apt/sources.list
add below lines to this file
deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
Second, Run update command to update software list
$ sudo apt-get update
Then, Run command to install mpeg4ip tool.
$sudo apt-get install mpeg4ip-utils
$sudo apt-get install mpeg4ip-server
$sudo apt-get install gpac # Install MP4Box tool
Done.

Unable to install git

I ran the following commands on linux mint 12 lisa:
1). sudo rm -rf /var/lib/apt/lists/* -vf
2). sudo apt-get update
3). sudo apt-get install git
I am getting the following error on running 3. That is, installing git:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git
My /etc/apt/sources.list file contains the following content:
deb http://packages.linuxmint.com/ lisa main upstream import
deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ oneiric-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ oneiric-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ oneiric partner
deb http://packages.medibuntu.org/ oneiric free non-free
# deb http://archive.getdeb.net/ubuntu oneiric-getdeb apps
# deb http://archive.getdeb.net/ubuntu oneiric-getdeb games
sudo apt-get upgrade shows the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
You need to install aptitude first.
sudo apt-get install aptitude
then install git using the command
sudo aptitude install git
I have a similar problem and solved it by running the update and upgrade at the same on one command line.
sudo apt-get update && sudo apt-get upgrade -y
after that I normally installed git with :
sudo apt-get install git
I have tried all but this works for me
In Terminal
$ software-properties-gtk
In Ubuntu, Software/Download_From_internet, enable all of the check marks
$ sudo apt-get install aptitude
$ sudo aptitude install git

Resources