libarmadillo-dev dependency problem

Asked by SNemiro

I'm trying to install libarmadillo-dev on a fresh Ubuntu 16.04.

after an

apt-get update && apt-get upgrade

I'm experiencing this dependency error. Should this be reported as a bug?

root@zbook15:~# apt-get install libarmadillo-dev
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 resolve the situation:

The following packages have unmet dependencies:
 libarmadillo-dev : Depends: libhdf5-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

===================
root@zbook15:~# apt-get install libhdf5-dev
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 resolve the situation:

The following packages have unmet dependencies:
 libhdf5-dev : Depends: zlib1g-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
===========================

root@zbook15:~# apt-get install zlib1g-dev
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 resolve the situation:

The following packages have unmet dependencies:
 zlib1g-dev : Depends: zlib1g (= 1:1.2.8.dfsg-2ubuntu4) but 1:1.2.8.dfsg-2ubuntu4.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
SNemiro
Solved:
Last query:
Last reply:
Revision history for this message
SNemiro (snemiro) said :
#1

After manually downloading and installing zlib1g-dev_1.2.8.dfsg-2ubuntu4.1_amd64.deb

dpkg -i zlib1g-dev_1.2.8.dfsg-2ubuntu4.1_amd64.deb

I was able to install

apt-get install libarmadillo-dev