There is a need to gather with checkinstall deb package from GIT source.
The package is assembled successfully, but the installation is rolling out the dependency issues and in total the package is installed but the status of Unpacked and would have to be Inst.
Tried to Debian9, ubuntu 18.04 beta - the error persists.
On centos7 installed all without problems of Shadrikov 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.A 2-1_amd64.deb Selecting previously unselected package git. (Reading database ... 209500 files and directories currently installed.) Preparing to unpack git_2.16.A 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 then 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 fails, because it tries to install the dependencies git-man for example and the problems increased because the upgrade then indicates the dependence of the git-man.
You have to remove git making
apt-get remove git
and then apt-get update && apt-get upgrade are fine.
Who knows what the problem is. Thanks for the good advice.