您的位置:首页 > 运维架构 > Linux

持续更新linux下遇到的问题。

2016-09-23 12:02 239 查看
--------------16/9/23------------

anil@anil:~$ sudo apt-get install default-jre
[sudo] password for anil:
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:
default-jre : Depends: default-jre-headless (= 2:1.7-51) but it is not going      to be installed
Depends: openjdk-7-jre (>= 7~u3-2.1.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

这个是别人的图。但是我在装java的时候是遇到同样的问题了。

解决方案如下:

1.更新apt : sudo apt-get update

2.安装需要的东西 sudo apt-get -f install
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: