由于未满足依赖关系,无法在 Debian 7 中安装语言环境

由于未满足依赖关系,无法在 Debian 7 中安装语言环境

因此,我没有在我的sources.list中包含wheezy-backport,而是直接添加jessie。意识到我的错误,我中途退出了 apt-get update/upgrade,然后将sources.list重置为喘息并运行命令列表。但是当我尝试发生sudo apt-get install locales这种情况时:

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:
 base-files : PreDepends: awk
 erlang-crypto : Depends: libssl1.0.0 (>= 1.0.0) but it is not going to be installed
 libc6 : Depends: libgcc1 but it is not going to be installed
         Recommends: libc6-i686 but it is not going to be installed
         Breaks: locales (< 2.19)
 libncurses5 : PreDepends: multiarch-support but it is not going to be installed
               Recommends: libgpm2 but it is not going to be installed
 libtinfo5 : PreDepends: multiarch-support but it is not going to be installed
 locales : Depends: glibc-2.13-1
           Depends: debconf (>= 0.5) but it is not going to be installed or
                    debconf-2.0
 procps : Depends: libncursesw5 (>= 5.6+20070908) but it is not going to be installed
          Depends: libprocps0 (>= 1:3.3.2-1) but it is not going to be installed
          Depends: initscripts but it is not going to be installed
          Recommends: psmisc but it is not going to be installed
 zlib1g : PreDepends: multiarch-support but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

如何解决这些依赖关系?

答案1

成功安装的最佳方法是检查缺少的依赖项;

a) 在 ubuntu 网站上找到它们并正确安装。 b) 尝试运行原来的 apt-get install {package} 命令。

如果您尝试“sudo apt-get -f install”,它会导致问题,因为它首先是强制安装的,并且将来最终会适得其反。

相关内容