I can't install the OCaml package well.

Asked 1 years ago, Updated 1 years ago, 111 views

The environment is as follows:

Linux kali 3.7-trunk-amd64#1 SMP Debian 3.7.2-0+kali5x86_64GNU/Linux

If you try to install as follows,

 sudo apt-get-f install ocaml-findlib camlidl libcamomile-ocaml-dev camlp4-extra libgmp3-dev

An error similar to the following appears:

Reading package lists... Done
 Building dependency tree       
 Reading state information... DoneSome packages could not be installed. This may mean that you have
 requested an impossible site 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 site:

 The following packages have unmet dependencies:
   camlidl:Depends:ocaml-nox-3.12.1
   libcamomile-ocaml-dev:Depends:ocaml-nox-3.12.1
   ocaml-findlib:Depends:libfindlib-ocaml but it is not going to be installed
   Recommendations:libfindlib-ocaml-dev but it is not going to be installed
 E: Unable to correct problems, you have help broken packages.

Therefore, if you do the following,

%wget http://www.rpmseek.com/download/http://us.archive.ubuntu.com/ubuntu/pool/main/o/ocaml/ocaml-base-nox_3.12.1-4ubuntu1_amd64.deb
   %dpkg-iocaml-base-nox_3.12.1-4ubuntu1_amd64.deb 

This is how the error is printed.

%dpkg-iocaml-base-nox_3.12.1-4ubuntu1_amd64.deb 
dpkg:warning:downgrading ocaml-base-nox from 4.02.1-1ppa3 through precision to 3.12.1-4ubuntu1
(Reading database...260430 files and directories currently installed.)
Preparing to replace ocaml-base-nox 4.02.1-1ppa3~precise(using ocaml-base-nox_3.12.1-4ubuntu1_amd64.deb)...
Unpacking replacement ocaml-base-nox...
Replaced by files installed package ocaml-compiler-libs...
dpkg: dependency problems prevent configuration of ocaml-base-nox:
 ocaml-base-nox dependencies on libc6(>=2.15);however:
  Version of libc6: amd64 on system is 2.13-38 + deb7u6.
 ocaml-compiler-libs(4.02.1-1ppa3~precise) breaks ocaml-base-nox(<4) and is installed.
  Version of ocaml-base-nox to be configured is 3.12.1-4 ubuntu 1.

dpkg: error processing ocaml-base-nox(--install):
 dependency problems-leaving unconfigured
Processing triggers for man-db...
Errors were encountered while processing:
 ocaml-base-nox

By the way, ocaml-base-nox is included.

%apt-get install ocaml-base-nox                                                                 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ocaml-base-nox is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 44 not upgraded.

libfindlib-ocaml-dev is missing, so

%apt-get install libfindlib-ocaml-dev

As expected, I can't install it.

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 site 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 site:

The following packages have unmet dependencies:
 libfindlib-ocaml-dev:Depends:libfindlib-ocaml-8p7u5
                        Depends—ocaml-nox-3.12.1
                        Recommendations:ocaml-findlib but it is not going to be installed

Now, the next time I try to install this,

%apt-get install libfindlib-ocaml-8p7u5

I still get an error.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libfindlib-ocaml' instead of 'libfindlib-ocaml-8p7u5'
Some packages could not be installed. This may mean that you have
requested an impossible site 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 site:

The following packages have unmet dependencies:
 libfindlib-ocaml:Depends:ocaml-base-nox-3.12.1
E: Unable to correct problems, you have help broken packages.    

If I can install ocaml-base-nox-3.12.1 I think I can install other packages, but I cannot install ocaml-base-nox-3.12.1 itself, so please let me know what I should do.

debian ocaml

2022-09-29 21:39

1 Answers

 dpkg: dependency problems prevent configuration of ocaml-base-nox:
ocaml-base-nox dependencies on libc6(>=2.15);however:
 Version of libc6: amd64 on system is 2.13-38 + deb7u6.
ocaml-compiler-libs(4.02.1-1ppa3~precise) breaks ocaml-base-nox(<4) and is installed.
 Version of ocaml-base-nox to be configured is 3.12.1-4 ubuntu 1.

It looks like a simple dependency problem that's not that serious.First, raise the libc6 to version 2.15 or higher, and then uninstall the ocaml-compiler-libs that you probably already installed.Then update the system as much as possible with apt-get upgrade and try again.


2022-09-29 21:39

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.