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 |
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?
|
Quote:
|
Quote:
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 |
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. |
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. |
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. |
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. |
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. |
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. |