首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试卸载/重新安装git时出错

尝试卸载/重新安装git时出错
EN

Ask Ubuntu用户
提问于 2022-01-04 11:20:28
回答 1查看 627关注 0票数 2

在从github调出更新时出现错误后,我尝试重新安装git。我发现libc有个错误。这里有人能给我指点吗?预先感谢,安装git命令的全部输出如下所示。

代码语言:javascript
复制
sudo apt install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
The following packages will be upgraded:
  git
1 upgraded, 0 newly installed, 0 to remove and 103 not upgraded.
1 not fully installed or removed.
Need to get 0 B/4554 kB of archives.
After this operation, 0 B of additional disk space will be used.
Setting up libc-bin (2.31-0ubuntu9.2) ...
Aborted (core dumped)
/sbin/ldconfig.real: Can't stat /usr/local/lib/x86_64-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib' given more than once
/usr/lib/x86_64-linux-gnu/libfakeroot:
        libfakeroot-0.so -> libfakeroot-tcp.so
/usr/lib/wsl/lib:
/usr/local/lib:
/lib/x86_64-linux-gnu:
Aborted (core dumped)
dpkg: error processing package libc-bin (--configure):
 installed libc-bin package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
 libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2022-01-04 11:58:16

首先,从删除libc-bin的安装后文件开始,因为它们可能已经损坏。

代码语言:javascript
复制
sudo mv /var/lib/dpkg/info/libc-bin* ~/

之后,重新安装libc-bingit

代码语言:javascript
复制
sudo apt update && sudo apt --fix-broken install && sudo apt install libc-bin && sudo apt install git

请随便在评论中问我任何问题。

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1385175

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档