Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
There is an error : it says there is no install candidate for python3-pip
First you should check if pip3 is installed on your system . To do so run the following :
pip3 --version
if it's already installed you should get something like :
pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)
in this case pip3 is already installed and you don't need to do anything .
Otherwise python3-pip Package is in kali-rolling repos , And to install it you need to make sure you have kali-rolling enabled in your /etc/apt/sources.list , by running following in your terminal :
echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" | sudo tee /etc/apt/sources.list
apt update && apt upgrade
then finally you can install python3-pip by running :
apt install python3-pip
This should get python3-pip installed on your kali machine
If for some weird reason this didn't work for you and you needed a quick way to install pip3 on your machine you can download this file : get-pip
Then run this in your terminal :
cd ~/Downloads
python3 get-pip.py
This should get pip3 installed on your machine , you can check by running pip3 --version
What about adding this ppa repo and updating the OS? also be sure your kali install in connected to internet.
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed last year.
Improve this question
After trying many different command, the lsb-release is always not being able to be installed.
Tried sudo apt-get update -y and sudo apt-get install -y lsb-release, it gives the package missing error:
Could anyone have any advice on how we can install this package?
From my machine:
$ apt policy lsb-release
lsb-release:
Installed: 11.1.0ubuntu2
Candidate: 11.1.0ubuntu2
Version table:
*** 11.1.0ubuntu2 500
500 http://in.archive.ubuntu.com/ubuntu focal/main amd64 Packages
500 http://in.archive.ubuntu.com/ubuntu focal/main i386 Packages
100 /var/lib/dpkg/status
The package lsb-release comes from the repository main. The output of sudo apt update suggests that you've missing sources in your sources.list file.
To investigate further, I started a new docker container and disabled all instances of the main repository and I was able to reproduce this issue. You can fix this issue by following the below steps:
You must enable the main repository in order to install the package lsb-release:
sudo add-apt-repository main
I highly recommend you to enable the Universe repository too:
sudo add-apt-repository universe
Run apt update after enabling the repositories:
sudo apt update
If I'm seeing the output correctly, you have one more issue with the package manager, as stated in this answer remove the offending files with:
sudo rm -rf /etc/apt/apt.conf.d/20snapd.conf
Install lsb-release again:
sudo apt install lsb-release
The package lsb-release should be installed now.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I've recently installed Ubuntu version 18.04 LTS and just started to learn to use use linux and terminal. I want to install mongodb. I'm following the steps from this website.
i ran the following lines in the terminal
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
after i run the fourth line the following appears
tasif#Tasif-Dell:/$ sudo apt-get install -y mongodb-org
[sudo] password for tasif:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mongodb-org : Depends: mongodb-org-server but it is not going to be
installed
E: Unable to correct problems, you have held broken packages.
Then when i want to start mongodb the following message is displayed
tasif#Tasif-Dell:/$ sudo service mongod start
[sudo] password for tasif:
Failed to start mongod.service: Unit mongod.service not found.
installing libcurl3 fixed it for me
sudo apt install libcurl3
Unfortunately, there's no non-development release of MongoDB for 18.04 yet. (Current as of 2018-07-12)
https://repo.mongodb.org/apt/ubuntu/dists/bionic/ shows that there's only a dev release.
Your specific problem is that you are not installing all the dependencies for Mongo, which can probably be fixed with:
sudo apt-get install -f
Per this ask Ubuntu answer.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
How can I install npm inside Debian vagrant box? I try this, but it's not wotking.
vagrant#packer-debian-7:~$ sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 82 not upgraded.
vagrant#packer-debian-7:~$ nodejs -v
v0.10.29
vagrant#packer-debian-7:~$ sudo apt-get install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package npm
vagrant#packer-debian-7:~$ npm -v
-bash: npm: command not found
My host OS is Ubuntu
The debian way would be to add the repo and install with apt-get
curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get update
sudo apt-get install --yes nodejs
That will install nodejs and npm the debian way
Here you have a vagrant provision i build that comes with nodejs
https://github.com/Sudakatux/vagrant-liferay-others
run command :
wget https://npmjs.org/install.sh
sudo chmod +x install.sh
sudo ./install.sh
it will install npm to your vagrant box.
Scroll down on the nodesource installation page (https://github.com/nodesource/distributions/blob/master/README.md#debinstall). You need to install build-essentials, which includes npm.
# use `sudo` on Ubuntu or run this as root on debian
apt-get install -y build-essential
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm currently using ubuntu 14 as my OS. I want to install openjdk-7-jdk on Ubuntu but I have an error when I typed sudo apt-get install openjdk-7-jdk. Here is the error message :
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
google-chrome-stable : Depends: libappindicator1 but it is not going to be installed
openjdk-7-jdk : Depends: openjdk-7-jre (= 7u79-2.5.6-0ubuntu1.14.04.1) but it is not going to be installed
Recommends: libxt-dev but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I've tried sudo apt-get -f install openjdk-7-jdk but did not work.
Please help me. Thanks.
you have some broken packages so before installing openjdk . run command
sudo apt-get -f install
it will install all broken dependency then run command
sudo apt-get install openjdk-7-jdk
it will work
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am trying to install Java 7. I tested my Java version first, please see the below code
ubuadmin#ubuserver3:~/JavaJars/HelloWordGPU$ java -version
java version "1.6.0_30"
OpenJDK Runtime Environment (IcedTea6 1.13.1) (6b30-1.13.1-1ubuntu2~0.12.04.1)
OpenJDK Client VM (build 23.25-b01, mixed mode, sharing)
I tried uninstalling this first, using below command:
sudo apt-get remove openjdk-6-jdk
It gave me the following result.
ubuadmin#ubuserver3:~/JavaJars/HelloWordGPU$ sudo apt-get remove openjdk-6-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-6-jdk is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuadmin#ubuserver3:~/JavaJars/HelloWordGPU$
I also tried using sudo apt-get remove default-jdk but same.
So how can I install Java 7?
From the directions posted here,
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Then you can use update-java-alternatives,
sudo update-java-alternatives -l
sudo update-java-alternatives -s <The correct Java 7 JDK>
You could install openjdk-7-jdk directly by
apt-get install openjdk-7-jdk
After that, you could use update-java-alternatives to set it as your default Java
update-java-alternatives -l
update-java-alternatives -s <jname>