0

我想从 jessie 存储库安装 openLdap 包。这是我的 sources.list 文件内容:

deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib

我运行apt-get update并得到这个结果:

Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Get:2 http://security.debian.org jessie/updates/main Sources [341 kB]
Get:3 http://security.debian.org jessie/updates/contrib Sources [1,439 B]
Get:4 http://security.debian.org jessie/updates/main amd64 Packages [758 kB]
Get:5 http://security.debian.org jessie/updates/contrib amd64 Packages [2,506 B]
Get:6 http://security.debian.org jessie/updates/contrib Translation-en [1,211 B]
Get:7 http://security.debian.org jessie/updates/main Translation-en [387 kB]
Fetched 1,537 kB in 3s (402 kB/s)
Reading package lists... Done

然后我尝试使用apt-get install slapd 安装 slapd并得到以下输出:

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:
 slapd : Depends: libltdl7 (>= 2.4.2) but it is not installable
         Depends: libodbc1 (>= 2.3.1) but it is not installable
E: Unable to correct problems, you have held broken packages.

我认为这个存储库已经破坏了 slapd。哪个存储库安装 slapd 没有问题?操作系统是 Debian 8.0.0

4

1 回答 1

0

将 ftp.br.debian.org 存储库添加到 /etc/apt/sources.list

deb http://ftp.br.debian.org/debian stable main

sudo apt-get update
sudo apt-get install slapd ldap-utils
于 2020-08-26T13:04:54.463 回答