[SOLVED] apt-get install pkg_name returns "update-alternatives: command not found"
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
apt-get install pkg_name returns "update-alternatives: command not found"
I am trying to install the "make" package (and various others) in order to successfully compile chkrootkit but I always get an error that "update-alternatives" is not found.
I tried to install chkconfig (in order to "recover" alternatives" however it too gives me the same error.
Here is the full result from the apt-get command (I am logged on as root):
# apt-get install make
Reading package lists... Done
Building dependency tree
Reading state information... Done
make is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 79 not upgraded.
4 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up cpp (4:4.3.2-2) ...
/var/lib/dpkg/info/cpp.postinst: line 3: update-alternatives: command not found
dpkg: error processing cpp (--configure):
subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of gcc:
gcc depends on cpp (>= 4:4.3.2-2); however:
Package cpp is not configured yet.
dpkg: error processing gcc (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of g++:
g++ depends on cpp (>= 4:4.3.2-2); however:
Package cpp is not configured yet.
g++ depends on gcc (>= 4:4.3.2-2); however:
Package gcc is not configured yet.
dpkg: error processing g++ (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of build-essential:
build-essential depends on g++ (>= 4:4.3.1); however:
Package g++ is not configured yet.
dpkg: error processing build-essential (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
cpp
gcc
g++
build-essential
E: Sub-process /usr/bin/dpkg returned an error code (1)
Anyone have any ideas how I can fix this problem??
Answer to suggestion 1:
----------------------- apt-get install chkconfig
Reading package lists... Done
Building dependency tree
Reading state information... Done
chkconfig is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 79 not upgraded.
4 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up cpp (4:4.3.2-2) ...
/var/lib/dpkg/info/cpp.postinst: line 3: update-alternatives: command not found
dpkg: error processing cpp (--configure):
subprocess post-installation script returned error exit status 127...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.