My steps:
# cd /usr/local/src/
# wget http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
# wget http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
# yum install python-jinja2
#yum -y install salt-minion --enablerepo=epel-testing
THEN:
--> Finished Dependency Resolution
Error: Package: salt-2015.5.9-4.el6.noarch (epel-testing)
Requires: python-msgpack
Error: Package: salt-2015.5.9-4.el6.noarch (epel-testing)
Requires: python-zmq
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I think I already installed the missing two:
[root#xxx src]# pip install pyzmq --upgrade
Requirement already up-to-date: pyzmq in /usr/local/lib64/python2.7/site-packages
[root#xxx src]# pip install msgpack-python
Requirement already up-to-date: msgpack-python in /usr/local/lib64/python2.7/site-packages
Still cannot work. Any advice?
I know that this is a very old question but anyway. rpm package and pip package are not the same. Even if you have it installed in pip, it doesn't mean corresponding rpm is actually installed. It still misses these rpm packages.
Related
I am trying to install libssl-dev and libssl1.0-dev in Ubuntu 18.04 via the following command:
sudo apt-get -y install build-essential openssl libssl-dev libssl1.0 libgl1-mesa-dev libqt5x11extras5
I am getting the following output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libssl1.0-dev' for regex 'libssl1.0'
Note, selecting 'libssl1.0.0' for regex 'libssl1.0'
Note, selecting 'libssl1.0.2' for regex 'libssl1.0'
build-essential is already the newest version (12.4ubuntu1).
libqt5x11extras5 is already the newest version (5.9.5-0ubuntu1).
libqt5x11extras5 set to manually installed.
libgl1-mesa-dev is already the newest version (20.0.8-0ubuntu1~18.04.1).
libgl1-mesa-dev set to manually installed.
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.20).
libssl1.0.0 is already the newest version (1.0.2n-1ubuntu5.10).
openssl is already the newest version (1.1.1-1ubuntu2.1~18.04.20).
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:
libssl-dev : Conflicts: libssl1.0-dev but 1.0.2n-1ubuntu5.10 is to be installed
libssl1.0-dev : Conflicts: libssl-dev but 1.1.1-1ubuntu2.1~18.04.20 is to be installed
E: Unable to correct problems, you have held broken packages.**
How do I solve these errors?
There are three ways to install libssl1.0-dev on Ubuntu. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install libssl1.0-dev Using apt-get
sudo apt-get update
sudo apt-get -y install libssl1.0-dev
Install libssl1.0-dev Using apt
sudo apt update
sudo apt -y install libssl1.0-dev
Install libssl1.0-dev Using aptitude
sudo aptitude update
sudo aptitude -y install libssl1.0-dev
The following sequence of commands should work to resolve dependencies.
# Fix broken dependencies on your system.
sudo apt-get install -f
# Reconfigure all unpacked packages.
sudo dpkg -–configure -a
# Fix broken dependencies in your system.
sudo apt-get install -f
# Install package on the system.
sudo apt-get install <package_name>
Having issues linking pip to python 3.7. Both pip and pip3 been installed but linking to Python 2.7.
I have tried to reinstall Python3 and then pip no progress.
I get the following message:
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
$ python --version
Python 3.7.4
$ pip -V
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
pip 19.2.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
$ pip3 -V
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
pip 19.2.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
$ sudo apt-get install python3-pip
[sudo] password for TarikDev:
Reading package lists... Done
Building dependency tree
Reading state information... Done
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
First use this command
sudo apt-get update
Two packages will be downloaded, of size 16 MB. Then:
sudo apt-get install python2-pip
I tried this and it worked for me:
Step1: sudo apt-get update.
Step2: sudo apt-get install python3-pip
Then check for pip version by typing:
$ pip -V
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
go to your sources.list file with the following steps:
cd /etc/apt
sudo nano sources.list
Now edit this line in this file
deb http://http.kali.org/kali kali-rolling main non-free contrib
Now press CTRL+X key and then press y to save the buffer and then press enter.
Now try sudo apt-get update
Now type the command sudo apt-get install python3-pip
First, update the system using the update command
sudo apt-get update
Install pip package to the machine,
sudo apt-get install python2-pip python3-pip
If you are still facing challenges to install pip then try the following commands:
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python get-pip.py
pip -V
I used to install python3 packages via pip3, however since today it is not working anymore.
Checking my history gives me this:
lkjhr#X1-Carbon-6:~$ history | grep pip3
562 pip3 install matplotlib
1029 pip3 install flask
However, since today I noticed that it is not working at all, look like I broke it or something?
lkjh#X1-Carbon-6:~$ pip --version
pip 18.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
lkjh#X1-Carbon-6:~$ pip3 --version
The program 'pip3' is currently not installed. You can install it by typing:
sudo apt install python3-pip
lkjh#X1-Carbon-6:~$ sudo apt install python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pip is already the newest version (8.1.1-2ubuntu0.4).
The following packages were automatically installed and are no longer required:
libgsoap8 libvncserver1 linux-headers-4.15.0-29 linux-headers-4.15.0-29-generic linux-headers-4.4.0-135
linux-headers-4.4.0-135-generic linux-image-4.15.0-29-generic linux-image-4.4.0-135-generic
linux-image-extra-4.4.0-135-generic linux-modules-4.15.0-29-generic linux-modules-extra-4.15.0-29-generic
linux-signed-image-4.4.0-135-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
lkjh#X1-Carbon-6:~$ python3-pip install bokeh
python3-pip: command not found
lkjh#X1-Carbon-6:~$ pip3 install bokeh
The program 'pip3' is currently not installed. You can install it by typing:
sudo apt install python3-pip
What could go wrong? (surprised)
Thanks in advance,
I see the following error while installing R on one of my Centos VE:
Error: Package: R-core-3.1.0-5.el5.x86_64 (epel)
Requires: libtcl8.4.so()(64bit)
Error: Package: R-core-3.1.0-5.el5.x86_64 (epel)
Requires: libtk8.4.so()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I tried installing R with the following commands:
rpm -ivh http://mirror.chpc.utah.edu/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
yum install R
Any help ?
Install these two Dependency files first-
tcl-devel
tk-devel
Follow the following commands
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo yum install tcl
sudo yum clean all
sudo yum install R
My build script installs NPM on CentOS in the following way:
yum -y update
yum install -y wget
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
yum --enablerepo=epel -y groupinstall "Development Tools"
yum --enablerepo=epel -y install npm
At some point in the last week, I have been getting the following dependency issue:
Error: Package: nodejs-npm-registry-client-0.2.28-1.el6.noarch (epel)
Requires: npm(semver) >= 2.1.0
Installing: nodejs-semver-2.0.10-1.el6.noarch (epel)
npm(semver) = 2.0.10
Error: Package: nodejs-request-2.21.0-1.el6.noarch (epel)
Requires: npm(form-data) < 0.1
Available: nodejs-form-data-0.1.1-1.el6.noarch (epel)
npm(form-data) = 0.1.1
Error: Package: nodejs-request-2.21.0-1.el6.noarch (epel)
Requires: npm(form-data) < 0.1
Installing: nodejs-form-data-0.1.1-1.el6.noarch (epel)
npm(form-data) = 0.1.1
Error: Package: nodejs-npm-registry-client-0.2.28-1.el6.noarch (epel)
Requires: npm(request) >= 2.25.0
Installing: nodejs-request-2.21.0-1.el6.noarch (epel)
npm(request) = 2.21.0
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I have been able to install NPM from source which is fine, but I would prefer to use the yum package. Can anyone provide some pointers for me? Thanks!
We used the epel-testing repo to install npm and bypass the issues with the epel repo
yum --enablerepo=epel-testing install npm
Update: This is fixed for the epel repo
yum install npm
With a clean CentOS 6.5 install I only needed to get the latest epel repository here:
http://mirrors.servercentral.net/fedora/epel/6/i386/repoview/epel-release.html
You can use wget or a GUI browser to fetch the package linked on that page:
http://mirrors.servercentral.net/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
Run the rpm install and epel will be enabled by default and npm can be installed with dependencies with a standard yum install command:
yum install npm