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>
Related
With the installation of python-rocksdb on ubuntu i had the following issue of missing packages:
Then i run:
apt-get install build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev
allmost all sorted, the only one that i can't find is -llz4. Anyone know what is the pacakge that i need to install?
At the moment whenever i run
pip install python-rocksdb
i always received the error
Sorted!
sudo apt-get install liblz4-dev
My program has the following dependencies in Ubuntu:
apt-get install unzip wget
apt-get install mesa-common-dev -y
apt-get install libglu1-mesa-dev -y
apt-get install libfontconfig1 -y
apt-get install libglib2.0-0 -y
apt-get install libxcursor-dev libxtst-dev libxi-dev libxrender-dev -y
apt-get install libxss-dev libxcomposite-dev libxslt1-dev -y
apt-get install libasound2-dev -y
Now I also need to deploy on RHEL which uses "yum" instead of "apt-get" so my question is what is the "yum" equivalent of all the packages used above. Is there a table where they are mapped? Basically for each package above I want to know or how to find out the "yum" repository equivalent.
Also, if I'm writing a SPEC file with BuildRequires...are they all yum package names because RPM is mainly for RedHat?
RHEL variants will use -devel convention instead of -dev from debian world. Beside that the names would be similar, a yum search PKG would point out the right direction
If things get hard you can use dpkg -L PKG, grab a key file and yum whatprovides FILE to find out what packages provides that file.
This is the command I used to install python-pip
sudo apt-get install python-pip
I get the following error
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:
python-pip : Depends: python-setuptools (>= 0.6c1) but it is not going to be installed
Recommends: python-dev-all (>= 2.6) but it is not installable
E: Unable to correct problems, you have held broken packages.
I already installed the latest version of python-dev
When i try to install python-setuptools using
sudo apt-get install python-setuptools I get the below error
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:
python-setuptools : Depends: python-pkg-resources (= 3.3-1ubuntu1) but 3.3-1ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
Explain me how to resolve the error and guide me the steps to get python-pip installed.
got the same error when I install python-pip, the following command solved my problem.
sudo apt-get install python-pkg-resources=3.3-1ubuntu1
sudo apt-get install python-setuptools
download pip from https://bootstrap.pypa.io/get-pip.py
Then run the following (which may require administrator access):
python get-pip.py
This should get you going.
If you get stuck again, read here: http://pip.readthedocs.org/en/stable/installing/
In addition to the solution that #seems recommended, I had to run this.
apt-get update
(OR)
sudo apt-get install python-setuptools python-dev build-essential
sudo easy_install pip
i have the same issue, and eventually i gave up by using:
sudo apt-get install python-pip
after tryings something like:
sudo apt-get install python-setuptools python-dev build-essential
but with no luck.
So all i did then was to:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
peace of mind.....
I think you should try:
sudo apt-get install python-pkg-resources=3.3-1ubuntu1
And then:
sudo apt-get install python-pip python-dev build-essential
It will definitely solve your issue.
Jut run this command :
sudo apt-get update
than install python tools :
sudo apt-get install python-pip
sudo apt-get install python-dev
sudo apt-get install build-essential
All the packages will get installed or some of them may say its already latest version, Thats fine
I am using ubuntu 14.04 on VirtualBox. I try install mysql-server using command
sudo apt-get install mysql-server, i always got error like below:
Some packages could be installed .This may mean that you have
request 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 packages have unmet dependencies:
mysqsl-server : Depends: mysql-server-5.5 but it is not going to be installed
E:Unable to correct problems, you have held broken packages.
and then i try use some command like below :
sudo apt-get update
sudo apt-get upgrade
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get purge mysql-server*
sudo apt-get install mysql-server
but it still error. Please help me!
Have you tried using
sudo apt-get install -f
This can repair broken packages or purge the installation.
If mysql-server is not installed with -f , you can try to install with normal way
sudo apt-get install mysql-server -y
esrsank#PG04954:~$ sudo apt-get install libc6-i386
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: build-essential :
Depends: libc6-dev but it is not going to be installed or
libc-dev
libc6-i386 : Depends: libc6 (= 2.15-0ubuntu10.6) but 2.15-0ubuntu10.10 is to be installed
libstdc++6-4.6-dev : Depends: libc6-dev (>= 2.13-0ubuntu6) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
So how to install libc6 (= 2.15-0ubuntu10.6) instead of libc6 (= 2.15-0ubuntu10.10)
the same for ibstdc++6-4.6-dev
Do
sudo apt-get autoclean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -u dist-upgrade
Then run
sudo dpkg --configure -a
sudo apt-get -f install
If it works, then fine.
or again try doing
sudo apt-get install libc6-i386
One possible cause of unmet dependencies could be corrupted package
database, and/or some packages weren’t installed properly. To fix this
problem, hit Alt+Ctrl+T to open terminal and try to run one of the
following commands:
sudo apt-get clean
or,
sudo apt-get autoclean
apt-get clean clears out the local repository of retrieved package
files (the .deb files). It removes everything but the lock file from
/var/cache/apt/archives/ and /var/cache/apt/archives/partial/. apt-get
autoclean clears out the local repository of retrieved package files,
but unlike apt-get clean, it only removes package files that can no
longer be downloaded, and are largely useless.
One of the most basic fixes to resolve dependencies problems is to
run:
sudo apt-get -f install
The -f here stands for “fix broken”. Apt will attempt to correct
broken dependencies. If you manually installed a package that had
unmet dependencies, apt-get will install those dependencies, if
possible, otherwise it may simply remove the package that you
installed in order to resolve the problem.
Then run:
sudo dpkg --configure -a
Then run this again:
sudo apt-get -f install
Reference: #https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa