首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >debconf i18n依赖于debconf (= 1.5.58ubuntu2);然而:在系统上的debconf版本是1.5.58ubuntu1。

debconf i18n依赖于debconf (= 1.5.58ubuntu2);然而:在系统上的debconf版本是1.5.58ubuntu1。
EN

Ask Ubuntu用户
提问于 2019-06-07 05:32:58
回答 1查看 1.6K关注 0票数 1

当我试图在Ubuntu 16.04中安装git时,

代码语言:javascript
复制
 sudo apt-get install git
代码语言:javascript
复制
debconf-i18n : Depends: debconf (= 1.5.58ubuntu2) but 1.5.58ubuntu1 is to be installed
 git : Depends: liberror-perl but it is not going to be installed
       Depends: git-man (> 1:2.7.4) but it is not going to be installed
       Depends: git-man (< 1:2.7.4-.) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

为了解决这个问题,

代码语言:javascript
复制
sudo apt-get install --reinstall debconf=1.5.58ubuntu2

但是我得到了下面的错误。

代码语言:javascript
复制
/var/lib/dpkg/info/debconf.prerm: 15: /var/lib/dpkg/info/debconf.prerm: pyclean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 15: /var/lib/dpkg/tmp.ci/prerm: pyclean: not found
dpkg: error processing archive /var/cache/apt/archives/debconf_1.5.58ubuntu2_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/debconf.postinst: 75: /var/lib/dpkg/info/debconf.postinst: pycompile: not found
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 /var/cache/apt/archives/debconf_1.5.58ubuntu2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
EN

回答 1

Ask Ubuntu用户

发布于 2019-12-14 19:41:13

手动编辑/var/lib/dpkg/info/debconf.prerm为我工作的违规文件

从这个答案https://askubuntu.com/a/979022/1025261

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

https://askubuntu.com/questions/1149251

复制
相关文章

相似问题

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