LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-30-2013, 06:04 AM   #1
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Rep: Reputation: Disabled
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
 
Old 09-30-2013, 06:18 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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.
 
Old 09-30-2013, 07:12 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,786

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
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.
 
Old 09-30-2013, 09:12 AM   #4
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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).
 
Old 09-30-2013, 11:29 AM   #5
Pap
Member
 
Registered: May 2011
Distribution: Salix 14.1 GNU/Linux, 64-bit
Posts: 70

Rep: Reputation: 29
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.
 
Old 09-30-2013, 12:16 PM   #6
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
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.
 
Old 09-30-2013, 12:19 PM   #7
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Pap View Post
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.
 
Old 09-30-2013, 03:06 PM   #8
Pap
Member
 
Registered: May 2011
Distribution: Salix 14.1 GNU/Linux, 64-bit
Posts: 70

Rep: Reputation: 29
Quote:
Originally Posted by zetrotrack000 View Post
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?

Last edited by Pap; 09-30-2013 at 04:53 PM.
 
Old 09-30-2013, 07:30 PM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] going in circles with apt-get dependency error Daveb3 Debian 25 07-16-2013 04:19 AM
help with apt-get: dependency error (Depends: but is not going to be installed) Avatar Debian 7 08-21-2009 10:01 AM
Can't install via adept/apt-get, weird dependency error... Letherian Linux - Software 0 02-26-2006 04:12 PM
apt-get install/remove error tsitras Debian 4 02-26-2006 02:49 AM
Dependency error in apt-get. How to solve? kushalkoolwal Debian 2 11-28-2005 12:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration