LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apt-get remove gives dependency error (https://www.linuxquestions.org/questions/linux-software-2/apt-get-remove-gives-dependency-error-4175479052/)

zetrotrack000 09-30-2013 06:04 AM

apt-get remove gives dependency error
 
Hi
I am using Linux Mint 15. When I give the following command, it gives error:
Code:

zetro@mymint:~ > sudo apt-get remove --purge openssl shellinabox
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:
 openjdk-7-jre-headless : Depends: openjdk-7-jre-lib (= 7u25-2.3.10-1ubuntu0.13.04.2) but it is not going to be installed
                          Depends: ca-certificates-java but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

How can I fix it?
Regards

evo2 09-30-2013 06:18 AM

Hi,

I think we need a little more information, so I have two questions:

- Have you done an "apt-get update" recently? (If not, please do so)
- What is the output of "dpkg --audit"?

Evo2.

pan64 09-30-2013 07:12 AM

that looks like not related to that remove command, it was made before (I mean that unmet dependencies) Probably you need to fix it before anything else.

zetrotrack000 09-30-2013 09:12 AM

Quote:

Originally Posted by pan64 (Post 5037237)
that looks like not related to that remove command, it was made before (I mean that unmet dependencies) Probably you need to fix it before anything else.

If its broken dependencies, then:
apt-get -f install
and
dpkg --configure -a
should try to fix it, but both of these commands gives no output (as everything is fine).

Pap 09-30-2013 11:29 AM

It sounds like a conflict issue. Do you have an old version of the icedtea or icedtea-netx java virtual machine installed? (version 1.1.0 or earlier). That would prevent openjdk 7 to be installed. First thing you should do is to purge icedtea, if installed, update and upgrade the system, then try again.

zetrotrack000 09-30-2013 12:16 PM

Quote:

Originally Posted by evo2 (Post 5037218)
Hi,

I think we need a little more information, so I have two questions:

- Have you done an "apt-get update" recently? (If not, please do so)
- What is the output of "dpkg --audit"?

Evo2.

Sorry, I missed your post. Yes, use to run 'apt-get update' and 'apt-get dist-upgrade' every after 2-3 days.
Moreover, 'dpkg --audit' is not giving any output.

zetrotrack000 09-30-2013 12:19 PM

Quote:

Originally Posted by Pap (Post 5037379)
It sounds like a conflict issue. Do you have an old version of the icedtea or icedtea-netx java virtual machine installed? (version 1.1.0 or earlier). That would prevent openjdk 7 to be installed. First thing you should do is to purge icedtea, if installed, update and upgrade the system, then try again.

icedtea-7-plugin was installed, but still i removed it, run 'apt-get update' and 'apt-get dist-upgrade', then run the original command (which was giving error), but result is the same error again. Now i have installed the icedtea-7-plugin again.

Pap 09-30-2013 03:06 PM

Quote:

Originally Posted by zetrotrack000 (Post 5037404)
icedtea-7-plugin was installed, but still i removed it, run 'apt-get update' and 'apt-get dist-upgrade', then run the original command (which was giving error), but result is the same error again. Now i have installed the icedtea-7-plugin again.

It gets more complicated then... Did you tried to run aptitude and check the "Conflicts" section for the packages that refuse to be installed?

evo2 09-30-2013 07:30 PM

Hi,

this is a little strange. I wonder why it is trying to install openjdk-7-jre-headless. If this is a package that you really want, perhaps the output of the following will help us understand the problem:
Code:

dpkg -l '*openjdk*'
If you don't need it then you may be able to fix this by removing the package. Eg
Code:

sudo dpkg --purge openjdk-7-jre-headless
or perhaps
Code:

sudo apt-get remove --purge openjdk-7-jre-headless
Evo2.


All times are GMT -5. The time now is 04:05 PM.