LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-21-2008, 01:41 PM   #1
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
Can't Upgrade - Dependency Issues Won't Resolve


Not sure what to do next, can anyone help? Details below:

Code:
root@moe:~ # apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies.
E: Unmet dependencies. Try using -f.

root@moe:~ # apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies...Done
The following extra packages will be installed:
  exim4-base exim4-daemon-light
Suggested packages:
  exim4-doc-html exim4-doc-info eximon4 libmail-spf-query-perl
The following packages will be upgraded:
  exim4-base exim4-daemon-light
2 upgraded, 0 newly installed, 0 to remove and 95 not upgraded.
1 not fully installed or removed.
Need to get 0B/1391kB of archives.
After unpacking 8192B of additional disk space will be used.
Do you want to continue [Y/n]? 
Preconfiguring packages ...
dpkg: exim4-daemon-light: dependency problems, but removing anyway as you request:
 exim4 depends on exim4-daemon-light | exim4-daemon-heavy | exim4-daemon-custom; however:
  Package exim4-daemon-light is to be removed.
  Package exim4-daemon-heavy is not installed.
  Package exim4-daemon-custom is not installed.
dpkg: error processing exim4-daemon-light (--remove):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 exim4-daemon-light
[ Rootkit Hunter version 1.3.0 ]
File updated: searched for 152 files, found 131
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@moe:~ # apt-get install --reinstall exim4-daemon-light
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
  exim4-daemon-light: Depends: exim4-base (>= 4.69) but 4.68-2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
 
Old 02-21-2008, 02:00 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Are you running mixed sources? What is the content of your /etc/apt/sources.list file?

You may need to install a version from a specified repository to correct the situation.
 
Old 02-21-2008, 03:11 PM   #3
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Original Poster
Rep: Reputation: 47
no, just testing:

Code:
$ cat /etc/apt/sources.list
################
### unstable ###
################

#deb http://ftp.us.debian.org/debian/ unstable main contrib non-free
#deb-src http://ftp.us.debian.org/debian/ unstable main 

###############
### testing ###
###############

#deb http://mirrors.kernel.org/debian/ testing main
#deb http://http.us.debian.org/debian/ testing main contrib non-free
deb http://ftp.us.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.us.debian.org/debian/ testing main


########################
### security updates ###
########################

#deb http://security.debian.org/ stable/updates main
#deb http://security.debian.org etch/updates main contrib non-free
#deb http://secure-testing.debian.net/debian-secure-testing testing/security-updates main contrib non-free

deb http://security.debian.org testing/updates main contrib
deb-src http://security.debian.org testing/updates main contrib
You're right -- there does seem to be some versioning problem though. Should I try installing/removing the package from unstable, and then reinstalling the testing version again?
 
Old 02-21-2008, 03:20 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I haven't run testing/unstable in a while, but I vaguely remember having to uninstall an unstable version and reinstall a testing version.

Do you know if your system is mostly testing or mostly unstable? And before you actually do anything, I'd use the simulate switch with apt-get/aptitude.
 
Old 02-21-2008, 03:30 PM   #5
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Original Poster
Rep: Reputation: 47
It should be mostly testing. I think I installed something from unstable a looong time ago - I forget now even what it was, just some minor "standalone" package I think -- but most everything is testing, afaik.

Anyway, I switched to the unstable repositories and got the same results. That package is really corrupted somehow!

>>>>>>>>>>>>>>>>>>>>>>

I just found this in my mail log:

Code:
NEW: --FAIL-- [lin005f] Installed file `/usr/sbin/exim4' checksum differs from installed
+package 'exim4-daemon-light'.                                                          
NEW: --FAIL-- [lin005f] Installed file `/usr/share/lintian/overrides/exim4-daemon-light'
+checksum differs from installed package 'exim4-daemon-light'.                          
NEW: --WARN-- [lin001w] File `/usr/sbin/exim4.dpkg-tmp' does not belong to any package.
what is that about??

Last edited by slackhack; 02-21-2008 at 03:37 PM.
 
Old 02-21-2008, 03:44 PM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Did you remember to run update before the install?

It looks like you've got the debian package checker installed, lintian. Maybe you just need to figure out how to make lintian happy? I've never used it, so I'm not entirely sure where to go from here.

Also, are there any bug reports against the exim4 package?
 
Old 02-21-2008, 03:52 PM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by slackhack
exim4-daemon-light: Depends: exim4-base (>= 4.69) but 4.68-2 is to be installed
weird the only 4.68-2 I see is for hurd..

Quote:
Package exim4-base

* sid (unstable) (mail): support files for all Exim MTA (v4) packages
4.69-2+b1: armel kfreebsd-amd64 kfreebsd-i386
4.69-2: alpha amd64 arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc
4.68-2: hurd-i386

* lenny (testing) (mail): support files for all Exim MTA (v4) packages
4.69-2: alpha amd64 arm hppa i386 ia64 mips mipsel powerpc s390 sparc


etch (stable) (mail): support files for all exim MTA (v4) packages
4.63-17: alpha amd64 arm hppa i386 ia64 mips mipsel powerpc s390 sparc
I would clean your apt package cache (aptitude clean), verify theres no additional source lists in /etc/apt/sources.list.d , aptitude update, then try again..

Last edited by farslayer; 02-21-2008 at 04:00 PM.
 
Old 02-21-2008, 04:05 PM   #8
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Original Poster
Rep: Reputation: 47
okay, I think I got it. I downloaded the exim4-base-4.69 it was complaining about and installed it with dpkg. Now I'm doing the apt-get upgrade and it's not giving any errors.

Okay... it's all done upgrading, no errors. I'm not sure what happened with that. I guess it just got corrupted somehow. ?

thanks for the responses.
 
Old 02-27-2008, 03:28 AM   #9
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
Here also quetions about dependancy. To install dpkg -i a package which depends libstdc++5 library, the one I having is later version, libstdc++6.

Do I still need to install the old version libstdc++5 ? Can I simply modify the version number of some library files depended by the package?


Code:
The following packages have unmet dependencies:
  packageX: Depends: libstdc++5 (>= 1:3.3.4-1) but it is not installable

Last edited by fhleung; 02-29-2008 at 07:31 AM.
 
  


Reply



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
Can 'dpkg -i' resolve dependency issue automatically? Akhran Debian 13 01-04-2010 09:54 PM
automaticly dependency resolve Barq Linux - General 13 01-06-2008 01:09 PM
apt-get upgrade error (stops at kernel due to "dependency issues") n0dl Debian 2 02-16-2007 06:20 PM
yum won't resolve samba dependency m2azer Linux - Software 3 02-05-2007 03:50 PM
grip library dependency - can't resolve synaptical Linux - Software 1 02-09-2004 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:16 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