首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Debian9.12拉伸中的libc6依赖不匹配

Debian9.12拉伸中的libc6依赖不匹配
EN

Unix & Linux用户
提问于 2020-02-27 21:12:09
回答 2查看 1.4K关注 0票数 0

在Debian9.12扩展中,我有下面的libc6依赖问题。

sudo apt安装libc6-dev

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libc6-dev : Depends: libc6 (= 2.24-11+deb9u4) but 2.27-6 is to be installed
             Depends: libc-dev-bin (= 2.24-11+deb9u4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我怎么才能修好它?

EDIT1: apt策略libc6

代码语言:javascript
复制
libc6:
  Installed: 2.27-6
  Candidate: 2.27-6
  Version table:
 *** 2.27-6 100
        100 /var/lib/dpkg/status
     2.24-11+deb9u4 500
        500 http://deb.debian.org/debian stretch/main amd64 Packages
     2.24-11+deb9u1 500
        500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages

EDIT2:

代码语言:javascript
复制
sudo apt install libc6/stable libc6-bin/stable locales/stable
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Release 'stable' for 'libc6' was not found
E: Unable to locate package libc6-bin
E: Release 'stable' for 'locales' was not found
EN

回答 2

Unix & Linux用户

回答已采纳

发布于 2020-02-29 00:22:56

最后,我在另一个论坛上得到了帮助:https://serverfault.com/a/1004951/302842

这是降低问题包级别的解决方案:

代码语言:javascript
复制
apt install libc6/stretch libc6-dev/stretch libc-dev-bin/stretch libc-bin/stretch locales/stretch sudo/stretch

降级成功了!

票数 0
EN

Unix & Linux用户

发布于 2020-02-28 11:15:51

您的系统上当前的libc6版本比Debian 9中的版本要新,这使得您无法安装libc6-dev (必须与libc6版本相匹配)。要安装libc6-dev,您必须降低libc6和相关软件包的级别:

代码语言:javascript
复制
sudo apt install libc6/stretch libc-bin/stretch locales/stretch

这可能需要降低其他软件包的评级。

一旦全部完成,您就可以安装libc6-dev了。

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

https://unix.stackexchange.com/questions/570133

复制
相关文章

相似问题

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