Apt-get :: apt-get errors



I am a newbie so bear with me.  I installed DSL and for some reason the make command is not installed. I need make so I can build apache from the source.  I am logged in as root when I do this. I also followed the instructions at http://www.damnsmalllinux.org/talk/node/89

I try to run apt-get install make but I get this error:

apt-get install make
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
fileutils
The following NEW packages will be installed:
fileutils make
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1097kB of archives.
After unpacking 2773kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 10504 files and directories currently installed.)
Unpacking fileutils (from .../fileutils_4.1-10_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/fileutils_4.1-10_i386.deb (--unpack):
trying to overwrite `/bin/chgrp', which is also in package coreutils
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/fileutils_4.1-10_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Then when I run apt-get dist-upgrade I get this error:

apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
The following NEW packages will be installed:
fileutils shellutils textutils
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1852kB of archives.
After unpacking 5566kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 10504 files and directories currently installed.)
Unpacking fileutils (from .../fileutils_4.1-10_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/fileutils_4.1-10_i386.deb (--unpack):
trying to overwrite `/bin/chgrp', which is also in package coreutils
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/fileutils_4.1-10_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any ideas?

Thanks.

-Matt

Hello Matt,
I'm new here too, but I think I know the answer to that. DSL is too small to hold the entire development environment, you need to download it if you want to do compiling stuff. Its available as a .dsl file so you don't need to do apt-get. Just click on MyDSL icon, go to the system section and click on gcc1.dsl. You might also want gnu-utils while you are at it.

I hope this works for you,

John S.

Quote
dpkg: error processing /var/cache/apt/archives/fileutils_4.1-10_i386.deb (--unpack):
trying to overwrite `/bin/chgrp', which is also in package coreutils

I haven't done a hard disk install but it sounds like you didn't select the GNUutils instead of busybox on install.  

I thought recent hard disk installs automagically defaulted to the GNU utils instead of busybox, but I could be wrong.  I'm sure John or Robert will be along any moment now to correct my lapsing memory.

Short answer, it sounds like you're either:
a.) Trying to do this from the LiveCD
b.) Had a bad hard disk install

If the answer is "a", my advice would be, don't do it.  Install it to the hard drive and if the installer gives you the option to use the GNU utilities instead of BusyBox, do that.

If the answer is "b", reinstall.  It's about a 200MB install it'll take you a half-hour, tops.

"If the answer is "a", my advice would be, don't do it.  Install it to the hard drive and if the installer gives you the option to use the GNU utilities instead of BusyBox, do that."

could he not load the gnu-utils.dsl?

Quote
could he not load the gnu-utils.dsl?

Yeah, that could be done.  Honestly, I forget about the *.dsl files 'cause I don't use 'em that much, but...

Compiling Apache from source using a LiveCD?  Why would you want to do that? It's inefficient.  Compiling Apache from source is resource-intensive enough already from a hard disk install without your OS on Read-only media.  You could use the toram option to speed things up but that would mean loading the OS in resident memory, then loading the gnu-utils and gcc into resident memory and then compiling Apache from source.  That's a whole lotta crap shoehorned into RAM.

I'm sure it could be done, but why would you wanna?  It'd be better to compile Apache on a hard disk install of the machine you intend to make your web server.

Next Page...
original here.