我将gcc更新到debian测试存储库中的版本;在更新过程中,它建议我停止postgres服务,它给了我停止安装的选项。我停止了它,得到了一个错误:
Preparando para desempaquetar .../libc6_2.24-9_amd64.deb ...
Checking for services that may need to be restarted...
Checking init scripts...
Stopped glibc upgrade. Please retry the upgrade after you have
checked or stopped services by hand.
dpkg: error al procesar el archivo /var/cache/apt/archive/libc6_2.24-9_amd64.deb (--unpack):
el subproceso script pre-installation nuevo devolvió el código de salida de error 1
Procesando disparadores para man-db (2.7.0.2-5) ...
Procesando disparadores para libc-bin (2.19-18+deb8u7) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)现在我无法继续安装,当我尝试运行任何apt-get命令时,我会得到错误作为回报。
#apt-get -f install
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Corrigiendo dependencias... falló.
The following packages have unmet dependencies:
libc-dev-bin : Depende: libc6 (> 2.24) pero 2.19-18+deb8u7 está instalado
libc6-dev : Depende: libc6 (= 2.24-9) pero 2.19-18+deb8u7 está instalado
locales : Depende: libc-bin (> 2.24) pero 2.19-18+deb8u7 está instalado
E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages
E: Unable to correct dependencies有人知道我怎么解决这个问题吗?
发布于 2017-03-01 10:26:38
这个错误是由于缺少依赖关系,而apt-get无法解决。
在我的例子中,软件包已经被attempt下载了,这是第一次尝试安装。查看第一个输出,dpkg在这个包libc6 6_2.24-9_amd64.deb抛出错误。
dpkg -i /var/cache/apt/archives/libc6_2.24-9_amd64.deb这个目录是apt-获取保存deb文件作为缓存的地方.
在第二个输出中,您可以看到还有另一个依赖程序,因此请在该目录中查找适当的包并安装它。
dpkg -i /var/cache/apt/archives/libc-bin_2.24-9_amd64.deb如果现在没有更多的依赖项,您可以跟踪安装。
apt-get install gcc/testing仔细查看apt-get命令的检索信息,否则可以停止删除系统上的导入内容。
发布于 2017-02-27 13:22:40
您需要停止PostgreSQL服务,然后重新启动您尝试的原始安装;大概如下所示
apt-get install gcc-6/testing我希望您认识到,通过这样做(由于glibc升级),您正在升级到Debian 9.
https://unix.stackexchange.com/questions/347891
复制相似问题