EN
Debian 11 - dpkg: warning: 'ldconfig' not found in PATH or not executable
1
answers
10
points
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
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