首页 > 代码库 > The following packages have been kept back [Solved]

The following packages have been kept back [Solved]

1、问题描述

OS: kali

自上一次执行

sudo apt-get upgrade

 

之后,系统任务栏中一直有待升级提醒,而再执行

sudo apt-get upgrade

 

却是如下提示

Reading package lists... DoneBuilding dependency tree       Reading state information... DoneThe following packages have been kept back:  mitmproxy python-netlib python-openssl0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

 

任务栏右上角图示:

技术分享

 

2、解决方法

$ sudo apt-get -u dist-upgrade

 

3、析

有部份packages的安装版比release版新而出现”The following packages have been kept back”这个问题,使用2中的解决方法 统一更新到发布的版本。

这条命令会强制更新软件包到最新版本,并自动解决缺少的依赖包。

 

The following packages have been kept back [Solved]