Trying to created a custom .deb from source for git-lfs-2.7.2

Asked by Scott Lambert

Trying to created a custom .deb from source for git-lfs-2.7.2.

Are there any resources out there to assist with this? I have a custom .deb created from source for git 2.18. When I try to install a standard .deb for git-lfs, I keep getting the same message:

"Selecting previously unselected package git-lfs.
(Reading database ... 129164 files and directories currently installed.)
Preparing to unpack git-lfs_2.7.2_amd64.deb ...
Unpacking git-lfs (2.7.2) ...
dpkg: dependency problems prevent configuration of git-lfs:
 git-lfs depends on git (>= 1.8.2); however:
  Package git is not installed.

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

It seems to install, but it cannot find the custom installation of git I have on there. Any suggestions?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu git-lfs Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

lsb_release -a; uname -a; apt-cache policy git

Thanks

Revision history for this message
Scott Lambert (gtscottl) said :
#2

root@xxx:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
root@xxx:~# uname -a
Linux xxx 4.4.0-145-generic #171-Ubuntu SMP Tue Mar 26 12:43:40 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
root@xxx:~# apt-cache policy git
git:
  Installed: (none)
  Candidate: 1:2.7.4-0ubuntu1.6
  Version table:
     1:2.7.4-0ubuntu1.6 500
        500 https://xxx/repo/Ubuntu/UBUNTU_xxx xenial-updates/main amd64 Packages
        500 https://xxx/repo/Ubuntu/UBUNTU_xxx xenial-security/main amd64 Packages
     1:2.7.4-0ubuntu1 500
        500 https://xxx/repo/Ubuntu/UBUNTU_xxx xenial/main amd64 Packages

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

If you want to install a .deb file that contains the information "depends on git", then it is not enough to have a custom version of git installed somewhere, but you need to have a .deb package with git installed.

Suggestion:
Either install git-lfs in a similar way as your git installation (without using a .deb format)
or package your custom version of git in a .deb package and install it that way

Can you help with this problem?

Provide an answer of your own, or ask Scott Lambert for more information if necessary.

To post a message you must log in.