Languages

Debian 11 - dpkg: warning: 'ldconfig' not found in PATH or not executable

10 points
Asked by:
martineau
1380

While installing VS Code under Debian 11 I have got the following error: 

root@debian:/root/Downloads# dpkg -i code_1.78.2-1683731010_amd64.deb

dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable

Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin

Any idea how to add ldconfig into PATH?

1 answer
2 points
Answered by:
martineau
1380

You should use sudo command to install code_1.78.2-1683731010_amd64.deb package even you are logged as root user.

e.g.

sudo dpkg -i code_1.78.2-1683731010_amd64.deb

 

Practical example

root@debian:/root/Downloads# sudo dpkg -i code_1.78.2-1683731010_amd64.deb

Selecting previously unselected package code.
(Reading database ... 167080 files and directories currently installed.)
Preparing to unpack code_1.78.2-1683731010_amd64.deb ...
Unpacking code (1.78.2-1683731010) ...
Setting up code (1.78.2-1683731010) ...
Processing triggers for gnome-menus (3.36.0-1) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for shared-mime-info (2.0-1) ...

root@debian:/root/Downloads#

 

Alternative solution

Check availability or consider installing ldconfig command using:

sudo apt-get install glibc-source

 

0 comments Add comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join