升级到 Debian 8 后未满足的依赖关系

升级到 Debian 8 后未满足的依赖关系

将 Debian 7升级到 8 后,amd64我无法升级grep。我需要做什么来解决这个问题?

root@xyz:~# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  grep
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@xyz:~# apt-get install grep
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:
 grep : PreDepends: libpcre3 (>= 1:8.35) but 1:8.30-5 is to be installed
E: Unable to correct problems, you have held broken packages.
root@xyz:~#

答案1

https://packages.debian.org/jessie/amd64/libpcre3/download可以下载 Debian 软件包,然后手动安装

dpkg --install libpcre3_8.35-3.3_amd64.deb

之后的apt-get install grep作品。

相关内容