After I run sudo apt-get install libgmp-dev
I get:
The following packages have unmet dependencies: libgmp-dev : Depends: libgmp10 (= 2:6.1.2+dfsg-1) but 2:6.1.2+dfsg-2 is to be installed E: Unable to correct problems, you have held broken packages.
Then trying to install libgmp10
:
sudo apt-get install libgmp10
...
libgmp10 is already the newest version (2:6.1.2+dfsg-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Source of problem
I need to install ruby-dev package which gives me the following output after running sudo apt install ruby-dev
:
The following packages have unmet dependencies:
ruby-dev : Depends: ruby2.3-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Then continue with sudo apt install ruby2.3-dev
:
The following packages have unmet dependencies:
ruby2.3-dev : Depends: libgmp-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Then is when I try to run the original command: sudo apt install libgmp-dev
with the above output, any ideas?
Additional info
- Ubuntu version: artful
apt-cache policy libgmp-dev
gives:libgmp-dev: Installed: (none) Candidate: 2:6.1.2+dfsg-1 Version table: 2:6.1.2+dfsg-1 500 500 http://uy.archive.ubuntu.com/ubuntu artful/main amd64 Packages
apt-cache policy libgmp10
:libgmp10: Installed: 2:6.1.2+dfsg-2 Candidate: 2:6.1.2+dfsg-2 Version table: *** 2:6.1.2+dfsg-2 100 100 /var/lib/dpkg/status 2:6.1.2+dfsg-1 500 500 http://uy.archive.ubuntu.com/ubuntu artful/main amd64 Packages
rmadison
command shows that thelibgmp10
version that I have install is from bionic and not from artful.Solution
Install the specific version used by artful, that is
sudo apt-get install libgmp10=2:6.1.2+dfsg-1
: