apt 无法修复与 libc6 相关的依赖项问题(无法更正依赖项)

apt can't fix libc6 related dependency issue (Unable to correct dependencies)

提问人:Hack-R 提问时间:8/1/2022 更新时间:8/1/2022 访问量:747

问:

我尝试在 Ubuntu 上安装一些与 C 相关的 RStudio 依赖项,但没有成功,现在 apt 显示错误并且无法安装新包。我准备放弃 RStudio,但似乎没有什么可以解决。

错误:

# apt -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libc6 : Breaks: locales-all (< 2.31)
         Breaks: locales-all:i386 (< 2.31)
 libexpat1-dev : Depends: libc6-dev but it is not installed or
                          libc-dev
 libgcrypt20-dev : Depends: libc6-dev but it is not installed or
                            libc-dev
 libidn2-0:i386 : Depends: libc6:i386 (>= 2.4) but it is not installed
 liblzma5:i386 : Depends: libc6:i386 (>= 2.17) but it is not installed
 libmhash-dev : Depends: libc6-dev but it is not installed
 libpcre3-dev : Depends: libc6-dev but it is not installed
 libpopt-dev : Depends: libc6-dev but it is not installed or
                        libc-dev
 libtool : Depends: libc6-dev but it is not installed or
                    libc-dev
 libunistring2:i386 : Depends: libc6:i386 (>= 2.7) but it is not installed
 printer-driver-gutenprint : Depends: cups (>= 1.3.0)
 ubuntu-minimal : Depends: locales but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

我尝试了很多解决方案。其中一些包括:

  • APT清洁
  • apt-get clean(清洁apt-get clean)
  • APT自动清洁
  • apt 自动删除
  • apt --fix-broken install(例如 apt -f install)
  • 在相关的 .prerm 文件中将“set -e”更改为“set -eux -o pipefail”
Ubuntu 依赖 glibc apt

评论


答: 暂无答案