W
W
wizardlife2018-03-17 09:44:48
linux
wizardlife, 2018-03-17 09:44:48

What is wrong with installing a GIT .deb package built from source?

There is a need to build a deb GIT package from source using checkinstall.
The package is built successfully, but during installation it rolls out problems with dependencies and in total the package is installed, but in the Unpacked status, and according to the correct one it should be Inst.
Tried on Debian9, ubuntu 18.04beta - error persists.
On centos7, I installed everything without problems from the sources and using checkinstall.

$ wget https://git.kernel.org/pub/scm/git/git.git/snapshot/git-2.16.2.tar.gz

$ sudo apt-get update

$ sudo apt-get upgrade

$ sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev asciidoc xmlto docbook2x

$ make configure

$ ./configure --prefix=/usr/local

$ make all

$ sudo checkinstall --install=no

$ sudo dpkg -i git_2.16.2-1_amd64.deb
Selecting previously unselected package git. (Reading database ... 209500 files and directories currently installed.) Preparing to unpack git_2.16.2-1_amd64.deb ... Unpacking git (2.16.2-1) ... dpkg: dependency problems prevent configuration of git: libcgi-pm-perl (4.38-1) breaks git (<< 1:2.1.3) and is installed. Version of git to be configured is 2.16.2-1.

dpkg: error processing package git (--install): dependency problems - leaving unconfigured Processing triggers for man-db (2.8.2-1) ... Errors were encountered while processing: git

and after that the upgrade fails...
$ sudo apt-get upgrade Reading package lists... Done Building dependency tree
Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: libcgi-pm-perl : Breaks: git (< 1:2.1.3) E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I did 'apt-get --fix-broken install' , but that doesn't help because it tries to install git-man dependencies for example and the problems increase because upgrade then points to a git-man dependency.
You have to remove git by doing
apt-get remove git
apt-get autoremove
and after that apt-get update && apt-get upgrade works fine.
Who knows what the problem is. Thanks for the good advice.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2018-03-17
@Lynn

What for?
There is also a compiled https://launchpad.net/~git-core/+archive/ubuntu/ppa
And your problem is that you need to specify the epoch (epoch) 1 in the package version: because the package used to be called git-core, and git was something very different.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question