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-05-2005, 10:02 PM   #1
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Rep: Reputation: 30
Unhappy apt-get is hosed


Sorry if that wasn't descriptive enough - but it's the best I can do in a one-line subject.

Here's what happens: I open konsole, su to root and attempt to "apt-get install any_pkg" and I get the following results (and yes, it's ANY package I try to install):

Code:
arthur:/home/gary# apt-get remove grub
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
  qmail: Depends: fastforward (> 0.51-zarge0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
and just to make sure it wasn't the "remove" command:

Code:
 
arthur:/home/gary# apt-get install lilo
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
  lilo: Depends: libdevmapper1.00 but it is not going to be installed
  qmail: Depends: fastforward (> 0.51-zarge0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Anybody out there have a suggestion on what I can try to fix this?

BTW, I have tried the 'apt-get -f install':

Code:
arthur:/home/gary# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  fastforward
The following NEW packages will be installed:
  fastforward
0 upgraded, 1 newly installed, 0 to remove and 424 not upgraded.
2 not fully installed or removed.
Need to get 0B/41.9kB of archives.
After unpacking 250kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 103128 files and directories currently installed.)
Unpacking fastforward (from .../fastforward_0.51-zarge1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/fastforward_0.51-zarge1_i386.deb (--unpack):
 trying to overwrite `/usr/sbin/newaliases', which is also in package sendmail-bin
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/fastforward_0.51-zarge1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
It appears that I have a failed or broken attempt at installing qmail (which is probably true) or fastforward or sendmail or something. So how do I determine which one it is? How do I kill it? Remove it from the system? Whatever I need to do?

I've spent too long on this already and I am pretty close to flushing it all and reinstalling. Not a real killer with Sarge, but time consuming. And I already know how to do a Sarge net-install.
 
Old 02-05-2005, 11:23 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
What happens when you try and remove gmail
 
Old 02-06-2005, 04:59 AM   #3
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
I find that dpkg --configure -a is often more efficient than apt-get -f install, don't know why as they're supposed to do the same thing. As to your problem, I usually just bite the bullet and force things
dpkg -i --force-all /var/cache/apt/archives/fastforward_0.51-zarge1_i386.deb
 
Old 02-06-2005, 12:45 PM   #4
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Original Poster
Rep: Reputation: 30
Well guys, thanks for the replies. I'll try these options if I get into that predicament again.

As it is, I was having other issues and decided to go ahead and reinstall. So now I have no problems with apt-get.

Please note that I do NOT recommend this as a first option. Reinstalling is kinda like surgery - it's a drastic measure and you really can't undo it. So, if you're reading this thread looking for an answer that works, try the other two suggestions and then move on. I had been struggling with this issue for weeks, and had put in hours of research and questions on forums. BTW, this is the first time I've gotten helpful responses.

Reinstalling is a "last option" kind of option.
 
Old 02-06-2005, 01:36 PM   #5
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
One thing to remember on your new install...make sure you do not have source.list addresses of different pakages and 3rd party mirrors etc.Mixing will cause mismatches and confuse apt.Keeping official ...say...unstable links in there and all links #'d that give a 404 error should keep apt clean.If there are pakages held back for dependancy erros etc they usually are worked out in the very near future....sometimes more than a week.Also,I have found mixing pakage managers for updates and upgrades turns up mixed results.Such as how aptitude dist-upgrade wants to downgrade pakages from my last apt-get dist-upgrade...I only use apt-get and apt-build now.
But keeping the source.list clean is key.
 
Old 02-06-2005, 03:17 PM   #6
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Original Poster
Rep: Reputation: 30
Much grass for the intel.

I'm not 100% on apt-get, aptitude or synaptic, but I thought they were all pretty much the same thing. Guess now I know better.

Thx.
 
  


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
apt-get -f install - hosed up dhatcher2 Linux - Software 1 10-28-2004 02:26 PM
apt-get dist-upgrade hosed gnome bosewicht Linux - Newbie 6 10-25-2003 04:34 PM
Am I hosed ? lostboy Linux - Hardware 14 03-10-2003 11:45 PM
Hosed once again Cichlid Linux - Hardware 3 11-02-2002 09:21 PM
hosed MBR lacrimae Linux - Software 11 07-27-2002 11:14 PM

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

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