gpt4 book ai didi

linux - 无法在 ubuntu 上从源代码安装 git

转载 作者:太空狗 更新时间:2023-10-29 12:23:43 26 4
gpt4 key购买 nike

<分区>

当我在 checkinstall 之后安装 deb 包时,我在 ubuntu16.04 上遇到了问题。

我在 debian9 和 ubuntu18.04 上也有同样的问题

在 UBUNTU 14.04 和 Centos7 上,我从源代码安装了 git,没有问题。


$ 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

之后我无法升级

$ 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).

我做了 'apt-get --fix-broken install' 但它没有帮助

谁知道问题出在哪里?感谢您的帮助。

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com