LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   dpkg -i error (https://www.linuxquestions.org/questions/debian-26/dpkg-i-error-4175657877/)

Takuman 07-22-2019 06:38 PM

dpkg -i error
 
I'm running Debian 10 Buster and I'm trying to install Cisco Packet Tracer on my machine. The program won't run without a certain library package. The problem is every time I try to install the package the following comes up.

root@Taku:/# dpkg -i libpng12-0_1.2.54-1ubuntu1.1_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

hydrurga 07-22-2019 06:53 PM

Would it not be better for you to find a Debian 10 version of the library rather than trying to install a Ubuntu package, which expects a Ubuntu-based ecosystem, on a Debian system?

Takuman 07-22-2019 10:07 PM

Quote:

Originally Posted by hydrurga (Post 6017692)
Would it not be better for you to find a Debian 10 version of the library rather than trying to install a Ubuntu package, which expects a Ubuntu-based ecosystem, on a Debian system?

So i did that, and it gave me the same error.

berndbausch 07-22-2019 10:13 PM

Quote:

Originally Posted by Takuman (Post 6017691)
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

The next steps: Check root's PATH, check whether ldconfig and start-stop-daemon exist on your system and are executable.

If your PATH is incorrect, it's easy to fix. If the two tools are not on your system, you have to find out how to install them.

While I don't know that much about Devian, I have a Ubuntu 18.04 system here:
Code:

$ type ldconfig
ldconfig is hashed (/sbin/ldconfig)


oliverdev 01-10-2020 05:06 AM

I found a possible workaround, adding your user as root group

sudo adduser [NameOfUser] sudo (in sudo mode)

This should help you to be able to use dpkg by your own.

PicardDefendingData 01-10-2020 02:43 PM

You could try the following which I did just today for brand new version of chrome browser installation on Debian Buster.

Code:

apt install ./libpng12-0_1.2.54-1ubuntu1.1_amd64.deb

If you are sudo user then you have to use sudo before apt command. If you open up synaptic package manager after that and find out that the package system is broken because of it then it is conflicting with other package versions and dependencies.

Thank you.

ondoho 01-11-2020 06:45 AM

edited - I was wrong.

Still:
OP never showed us a link to the program in question; I'm guessing it hasn't seen an update for many years and simply isn't compatible with Debian (or Ubuntu) anymore.

PicardDefendingData 01-11-2020 09:03 AM

Sorry for my mistake.


You could edit /etc/sodoers file with nano or vim and add the environment variables there. You are missing some environment variables from your path. Adding them will fix it.

Here is the link.


https://developpaper.com/bug-repair-...t-stop-daemon/


Hope it helps.

uteck 01-11-2020 09:14 AM

How are you switching to root?
If you use just "su", you are not changing your environment variables like your $PATH settings.
Use "su -" to also change to the $PATH environment of root.

PicardDefendingData 01-11-2020 09:55 AM

If you are using dpkg -i by accessing the system with su command then change the $PATH variable using the following link.


https://opensource.com/article/17/6/set-path-linux


All times are GMT -5. The time now is 07:15 AM.