LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-03-2008, 06:18 PM   #1
ripper
LQ Newbie
 
Registered: Apr 2007
Posts: 24

Rep: Reputation: 0
apt-get help


hello
i have my system debian 4.0
and i tried to install gcc but it gave me this error:

E: This installation run will require temporarily removing the essential package e2fsprogs due to a Conflicts/Pre-Depends loop. This is often bad, but if you really want to do it, activate the APT::Force-LoopBreak option.
E: Internal Error, Could not early remove e2fsprogs

and i tried to remove the e2fsprogs
apt-get remove e2fsprogs

and then i tried to install gcc with :
apt-get install gcc -o APT::Force-LoopBreak=1
but now i get this error in all that i try to install
even when i try to install e2fsprogs

Do you want to continue? [Y/n] y
dpkg: `update-rc.d' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)


please help
 
Old 02-03-2008, 07:03 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Normally you would use:
sudo apt-get install build-essential

http://linux.derkeiler.com/Mailing-L...5-10/2910.html
... has exactly your issue:
Quote:
I've run into this on my last two installs, using an older pre-Sarge
netinstall CD, and then trying to upgrade to current Sid.

In both cases, I was able to get around the problem by creating the file
"/etc/apt/apt.conf" and putting in it the line:

APT::Force-LoopBreak "true";

After doing my upgrade, I remove/rename that file to avoid potential
issues in the future.
... which would suggest that you install e2fsck before continuing.

However, you have switched this option on with:
apt-get install gcc -o APT::Force-LoopBreak=1
.... you should switch it off:

Code:
apt-get clean -o APT::Force-LoopBreak=0
.... did the install of GCC succeed?

dpkg: 1 expected program(s) not found on PATH.
... how are you invoking root?

As root:
locate update-rc.d
echo $PATH


http://www.debian.org/doc/packaging-...uild-essential

Last edited by Simon Bridge; 02-04-2008 at 03:53 AM.
 
Old 02-04-2008, 03:36 AM   #3
ripper
LQ Newbie
 
Registered: Apr 2007
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
e Normally you would use:
sudo apt-get install build-essential
i tried that and i get :
Sorry, but the following packages have unmet dependencies:
build-essential: Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
E: Sorry, broken packages

Quote:
However, you have switched this option on with:
apt-get install gcc -o APT::Force-LoopBreak=1
same error
Do you want to continue? [Y/n] y
dpkg: `update-rc.d' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)



Quote:
As root:
locate update-rc.d
echo $PATH
and i cant find update-rc.d
how to i create update-rc.d and where do i put it to work

Last edited by ripper; 02-04-2008 at 03:39 AM.
 
Old 02-04-2008, 03:54 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Quote:
apt-get install gcc -o APT::Force-LoopBreak=1
same error
Did you try the command to switch the APT::Force-Loopback optoin off?
Code:
apt-get clean -o APT::Force-LoopBreak=0
Did you manage to install gcc?
Please reread the post.

Quote:
and i cant find update-rc.d
simon@indigo-prime:~$ locate update-rc.d
/usr/sbin/update-rc.d


Did you use the "locate" command, or did you just look?
(To report the result of running a command, copy and paste the command as well as the result in quote tags.)
 
Old 02-04-2008, 04:53 AM   #5
ripper
LQ Newbie
 
Registered: Apr 2007
Posts: 24

Original Poster
Rep: Reputation: 0
i couldn`t install gcc
i gave u the error

Quote:
same error
Do you want to continue? [Y/n] y
dpkg: `update-rc.d' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)

and i don`t have update-rc.d
i tried with locate
but i erase the e2fsprogs and it erased update-rc.d too i think :|

ripper:~# locate update-rc.d
ripper:~#

can u give me the update-rc.d or soemthing
plz help

Last edited by ripper; 02-04-2008 at 04:56 AM.
 
Old 02-04-2008, 05:25 AM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
I'm sorry, post #4 you told me you got that error running a different command. To avoid confusion, copy and paste the command as well as the result and put it all in "code" tags.

Similarly, when you report any result of your action, state the specific action. For eg. When you said you couldn't find the file, it was not clear how you went about looking. Had you posted the command and result, as in my example, it would have been clear.

To replace update-rc.d
Go to the Debian Wiki/FAQ and follow the instructions for the first question (I deleted update-rc.d, how can I get it back again?)

Did you try the command to switch the APT::Force-Loopback optoin off?

Last edited by Simon Bridge; 02-04-2008 at 05:27 AM.
 
Old 02-04-2008, 07:10 PM   #7
ripper
LQ Newbie
 
Registered: Apr 2007
Posts: 24

Original Poster
Rep: Reputation: 0
thanks alot man i did it :*
 
Old 02-04-2008, 07:42 PM   #8
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Cool. In return, please help us to help you by editing your profile to show your distro and where you live. Thanx.

The Debian FAQ is a great resource, have a go browsing the topics.

A sideline lesson I'd like to extract here is about
Quote:
can u give me the update-rc.d or soemthing
... what I did was probably what you had in mind anyway, so this is mainly for others who get here later.

There is a paradigm that goes with certain legacy/proprietary OSs where people will exchange system files like this.

People sometimes have to do this when a system file gets deleted because their access to the software itself is restricted. Free software does not have these restrictions. So all the files are normally available and hackers often provide automated ways to fix common snafus so the newbies will stop bugging them

It also means that system files are often more customized to an individual system. It is unlikely that my file would have helped you - it is better for you to build your own. It's also more efficient.

It is still possible to do this... configuration files are often exchanged. However, they must never be used blindly. You will always need to alter them in some way. The great thing is that you can.

This all illustrates a general paradigm that pervades free software, which is difficult to articulate. As you gain experience you will start to wonder why everyone doesn't do it this way.

Have fun.
 
  


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
LXer: Apt-get remove SUSE; apt-get install Etch LXer Syndicated Linux News 0 05-26-2007 07:46 PM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
knoppix 3.4 and no apt-setup how to fix info install apt-file + base-config maximalred Debian 0 10-16-2004 06:36 PM
knoppix 3.4 apt-setup on hdinstall / apt-get on live-cd non3 Linux - Distributions 0 05-25-2004 10:14 AM
rh9 xd2 apt apt-get problem fix and solution transeunt Red Hat 0 12-16-2003 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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