How to fix dpkg error: warning: `ldconfig 'in Debian Testing

Today I have decided to return to Debian Testing. As the problem was with the Kernel apparently, well I've left the one that brings Squeeze installed and updated the other packages.

I was updating with Synaptic when I realized that it took a long time and got stuck when I tried to access it. I killed the process by console and ran:

dpkg --configure -a

To finish configuring the missing packages, but: Surprise !!! I got an error that told me:

dpkg: aviso: `ldconfig' no se ha encontrado en el PATH o no es ejecutable.
dpkg: aviso: `start-stop-daemon' no se ha encontrado en el PATH o no es ejecutable.
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.
E: Sub-process /usr/bin/dpkg returned an error code (2)[/b]

Then what do we do? In Linuxmint-Hispanic provide us with the solution.

We open a Port as root and put:

export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin

To keep it fixed in the system we have two options. We add to the file / Etc / sudoers the following lines:

Defaults   env_reset
Defaults   secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

Or we put inside our .bashrc:

echo 'export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin' >> /home/usuario/.bashrc


The content of the article adheres to our principles of editorial ethics. To report an error click here!.

47 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Courage said

    I thought that Debian was the host in verse and never failed HAHAHAHAHA

    1.    elav <° Linux said

      Exactly, we are talking about Debian Testing, where anything can fail (although it is rare) ... If you don't want errors, then use Stable.

      1.    Courage said

        Fuck ... too cute

        1.    Yukiteru amano said

          Squeeze is for living peacefully, Testing for experimenting and SID is for the brave

          1.    elav <° Linux said

            Amen

          2.    moscosov said

            hahahaha suggesting the same verse once I read around "Slackware the only distro that remains for men" hahahaha

          3.    elav <° Linux said

            Damn, tell me what they want .. I use Debian, Fedora, Arch, openSUSE, Centos (in that order) before Slackware or Gentoo ..

          4.    Eduar2 said

            Hahaha very true debian unstable is really unstable.

          5.    moscosov said

            don't even say so Elav, I'm not moving from LMDE today.

            1.    elav <° Linux said

              Hehehe. I always go back to the mother distro. LMDE is fine, but I always have the need to install everything from scratch, and only what I need. Although of course, I always use the LMDE repos for some things.


  2.   Isaac said

    Haha well I live with the mix of testing and unstable. For now without any problem I have been 6 months without having to reinstall haha.

    regards

    1.    elav <° Linux said

      In general, Sid is more stable than Ubuntu and Arch, what's more, I think Unstable is more stable than those two ... 😛

      1.    KZKG ^ Gaara said

        Don't overdo it… Unstable more stable than Arch? Well, I've never had stability problems with Arch, just a small bug in Nepomuk that was fixed in KDE 4.7.2, and Unstable sure is less careful or polished.

        1.    elav <° Linux said

          Unstable is the same as Arch. In fact, Arch is worse, because what comes out is already updated, in Unstable it is not so.

          1.    Courage said

            Arch is one of the most stable, also they don't update as unstitched, if something is beta, they don't put it.

            Arch's team doesn't put a knife to anyone's neck to activate Testing

            I have never had stability problems with Arch

            Nor I

            1.    elav <° Linux said

              What do they call Beta? Because today KDE is "stable" and today it is in the Arch repositories. And so with all the other packages .. So please define that it is for you the fact that they consider something beta.


            2.    KZKG ^ Gaara said

              There is a Testing repo for Arch, there the packages do enter at the moment. After a few hours of testing, sometimes days (yes, days ... maybe you forget that KDE 4.7 took about a week to enter the stable repos) that package is put for the stable repos.


            3.    elav <° Linux said

              Don't try to convince me. You waste your time.


            4.    KZKG ^ Gaara said

              HAHAHAHAHA I don't want to HAHAHAHA, nobody will pay me more or less to get you to use Arch or something like that LOL !!!!!


          2.    KZKG ^ Gaara said

            We could discuss it indefinitely, I know the way to put an end to this but you did not accept when I proposed it ... it's simple (and now I remind you), you will use Debian Unstable and I will continue using my Arch, and we will see which OS has more instability than the one other 😉

            What do you say? 😀… do you accept the bet? 😉

            1.    elav <° Linux said

              I don't use Debian Unstable for the simple fact that I don't plan to spend my life updating from the internet. I am happy with my local Testing repositories. I will see the day it is impossible to navigate how you are going to update Ñej Ñej Ñej… And I don't have to do it to know which one will be more stable. I already know that: Debian.


            2.    KZKG ^ Gaara said

              Of course of course ... it is as they say, there is no worse blind than the one who does not want to see, right? LOL.
              Anyway, the important thing is to be happy with the distro that everyone uses, and although you don't get tired of criticizing Arch (based on your very personal criteria), I love it 😀… deal with it. LOL!!!


            3.    elav <° Linux said

              Capricho is what characterizes you. You know that the only reason you use Arch is because according to you, KDE works there better than any other distro you've tried. I am not blind, I have tried more distributions than you and you know it, as you also know that you had to install Ubuntu on a PC, because your dear Arch did not let you use Kiwix neither forwards nor backwards. How long have you been trying? Was it like 3 days right?

              Time is money my brother. Maybe here where you work you can waste your time trying to make something work, but not in all places it is like that, if you understand what I mean. That's why I use Debian, because I know how to put everything functional without so much work, quickly and with guaranteed stability.


            4.    KZKG ^ Gaara said

              Nope, it's not a whim, it's that Arch + KDE allows me to have the latest version of everything, with excellent stability (even if you deny it ...), and it's KISS ... so I can install everything from scratch 🙂

              Yes, you have tried more distros than I have, but you are a Gnome user and not a KDE user, let's say we have different interests.

              On the Kiwix thing, simple partner ... that's to install it on a server, and when did I say that Arch was an easy distro? Yes, it took me a long time trying to make Kiwix work in Arch, in the end I didn't succeed ... I am convinced that this new version of Kiwix would already work well for me, I will do the test on the laptop in a few days, just for you to see 😉


            5.    elav <° Linux said

              Read my lyrics: Time is Money. Arch to play and fool around: Cool. But I don't think anyone with 2 fingers of forehead takes it into account for something "more serious." Can you imagine a company that has to lose 2 to 3 hours just for having to configure something as simple as Virtualbox? Kiwix may work now, but when it was needed, it didn't work. That's what I mean. A serious person can't be waiting for someone in the Arch Community to decide that something works.

              The KISS thing is worth me (and tell me the advantages that that to you, it reports to you), and with my packages in Testing I am quite up-to-date and that is where I ask you the same question as you. Why should Arch use, when I have all the stability, security and update I need?


            6.    KZKG ^ Gaara said

              Let's see ... I'm not crazy either. On a server I would obviously install Debian Stable, I'm not suicidal to install Arch on a corporate server either.

              I prefer Arch to Testing, due to the fact that in Arch I will have the packages before, that in Arch I configure things at a "lower" level (for example, modules that will be raised, services, etc, or you will deny me that in Debian they come more services and shit by default than in Arch?).
              You have the stability, security and update you need, Debian does NOT provide me exactly what I wish, Arch yes, that simple. For example, when a new version of KDE appears (I mention KDE because it is the main reason why I am so comfortable with Arch) in Testing it enters too late, it takes a long time, I would have to use Unstable or worse ... and say what want a partner, but MY VERY personal experience with Testing a long time ago was not very satisfactory, Unstable I don't even want to try it ¬¬


            7.    elav <° Linux said

              Truly, the more I continue with this absurd exchange, the more I realize how few arguments you have to defend your dear distro.

              I prefer Arch rather than Testing, due to the fact that in Arch I will have the packages before, that in Arch I configure things at a “lower” level (for example, modules that will be raised, services, etc, or you will deny me that in Debian they come more services and shit by default than in Arch?).

              For your information, Debian has an installation option very similar to Arch, where I can only install what I need, but come on, for masochists, we already have you.

              You have the stability, security and update you need, Debian does NOT provide me exactly what I want, Arch does, that simple. For example, when a new version of KDE appears (I mention KDE because it is the main reason why I am so comfortable with Arch) in Testing it enters too late, it takes a long time, I would have to use Unstable or worse ...

              I already tell you. We will see the day when so much update will bring the system down. You know I have a fatal laugh in store for the moment ...

              and say what you want partner, but MY VERY personal experience with Testing a long time ago was not very satisfactory, Unstable I do not even want to try it ¬¬

              And we return to the same thing that I told you in another comment. I am no longer worth the arguments of someone who until a couple of months ago defended Ubuntu tooth and nail, and now attacks him in defense of another distribution. Tell the readers how long ago was it that you tried Testing .. Because as far as I know, it seems to me that your Testing was with Debian Sarge, or Debian Etch .. How much has it rained since then? Etch, Lenny, Squeeze and now Wheezy.

              Honestly, this is where my discussion came. When you have solid arguments, you know where to find me 😀


          3.    KZKG ^ Gaara said

            I defended and I defend what Ubuntu was a few years ago, right now I don't give a penny for it. Is it that I have to defend the brand or name instead of the product? I liked Ubuntu 8.04, 8.10, even 9.04, they are great, but then they started to bring me stability problems, that's why as you say: "I lash out" at it, simply because I don't like what it has become, and I believe myself in ALL my right to agree or disagree with something.

            And obviously I always clarify that I speak from MY experience, and it has to be that way because I cannot speak for others. Ubuntu 10.10 was fatal to me, while other users did well ... great for them, I speak for myself.

            What apparently you did not like is that I said defender of Ubuntu and Unity right? HAHAHA!!!!

            And yes, man I know, it makes your mouth water to think that in a "pacman -Syu" the system makes me crash, well ... everyone wants something, although many times it is not fulfilled HAHA.
            However let's see ... CourageHow many times did the system crash after updating it in Arch?

          4.    Courage said

            None. When my system has broken, it has been because of touching things I shouldn't have.

            Elav, whatever you wear the update is not without thinking, unless you activate Testing, which is not mandatory, in fact I do not have it activated and not for that reason those of Arch have sent a fat and ugly rapist to torture me .

            And I don't have to do it to know which one will be more stable. I already know that: Debian.

            Debian on Stable, stop talking and do a test comparing Arch with Debian Sid, if you want I could even transfer it to Let's Use Linux from here.

            It doesn't even occur to me to set up a server in Arch, firstly because on a server I prefer to be tested in depth and second because on a server the age of the packages peels

            the only reason why you use Arch, is because according to you, KDE works there better than any other distro you have tried

            In Gentoo it works better because it is more KISS than Arch, by that rule of three KZKG ^ Gaara would be using Gentoo

            How long have you been trying? Was it like 3 days right?

            If you mean to install Arch because in two hours at most you have an Arch + Kdebase working, tell me Gentoo is something else, there you need several days of installation

            Time is Money. Arch to play and fool around

            You waste your time if you install a complete Kde or a complete Gnome, which seems like a complete bullshit to me since you load the KISS by installing a thousand things that you don't need.

            I already tell you that you do not lose more than two hours

            With my packages in Testing I am quite up-to-date and that is where I ask you the same question as you. Why would Arch have to use, when I have all the stability, security and update I need?

            Debian Testing is not a pure rolling release, I have not tested it to ensure it but it is what I understand

            For your information, Debian has an installation option very similar to Arch, where I can only install what I need

            This is a lie like a cathedral, the Debian Stable installer is nothing more than a next, next, next installer. I have been able to check it in Debian Lenny.

            I did not like Debian because of the intolerance of packages with the slightest thing registered, that was the reason why I removed it

            I already tell you. We will see the day when so much update will bring the system down

            Save this: The day that happens to me, you will be the first person to know

            then they began to bring me stability problems, that's why as you say: "I lash out" at him, simply because I don't like what he has become, and I believe in ALL my right to agree or not with something.

            This is the same reason why I attack Ubuntu, and I add that of the ubunto.

            And now to both:

            You are always with the same thing, all posts become an Arch Vs X distro or Debian Vs X distro.

            As administrators that you are, you should stop this and open a Debian Vs Arch post and talk about it because most of the time you don't talk about it in the most appropriate place

            1.    elav <° Linux said

              This is a lie like a cathedral, the Debian Stable installer is nothing more than a next, next, next installer. I have been able to check it in Debian Lenny.

              This is the only thing I am going to comment on in all this .. Debian Lenny is kind of old, right? Did it happen to you the same as KZKGGaara who tried something a thousand years ago and still thinks that it's still the same since then? Well, I invite you to download a Debian iso and look for the option: Expert Install.. Let's see what you think of my big lie.


          5.    Courage said

            Because Virtualbox has been playing the tricky a lot if not if I tried it.

            Anyway, the rolling is missing.

            What I tried on Lenny was the text mode installation, and it seemed like the easiest thing in the world. At that time I did not know of Arch

            1.    elav <° Linux said

              If I were to get frustrated by every package that does not work at a certain time .. uff. Debian now has a pretty fast update cycle, but a few distros ago .. by god !!! If you had a problem, you had to wait months for a solution to be found.


      2.    Eduar2 said

        Too bad elav, you talk about Archlinux as if it were the mess, for example with our favorite desktop, first they test it in repo [gnome-unstable] after days of tests that involve (bug reports, corrections, etc) for a repo [testing] where it goes through another series of tests, in order to get to the [extra] repo

        So with all packages, the desktops have their unstable branch, but those that are not tested, and only when it works as it should, the packages go to either the core or extra repos depending on the package.

        The [multilib] and [comunity] repos have their respective testing repositories. With your comment, you showed that you don't know much about archlinux or that you are angry with him, whatever the reason, he doesn't speak highly of you elav.

        1.    Eduar2 said

          Jo and today as Christians say, God's times are perfect. After commenting I made a pacman -Syu and oh an update of the xorg-server came out, which I tested in testing a few weeks ago and it screwed up the graphical environment, problems with a bug of the new xorg and also with the proprietary drivers of nvidia, late in coming out the solution, but here it is.

          In arch the software is used very well updated, and if you mess with the testing or unstable repos, you have to know that it is for testing and that you surely get some bugs. but what reaches core, extra, even community reaches well and contrary to the most famous distros, recent, stable software and archlinux repositories themselves.

          1.    elav <° Linux said

            As in all distros .. Something goes wrong and then they fix it 😀

        2.    elav <° Linux said

          I have nothing against Arch, I just get screwed a lot by the position of a guy (KZKG ^ Gaara) who is what they think he uses is the best. I have not tested Archlinux thoroughly, but come on man, there must be some little bug because nothing is perfect. Maybe you don't have it with your hardware, but someone else as well. The same goes for all distros.

          1.    KZKG ^ Gaara said

            And I have always told you that I speak from MY point of view, from MY experience. Arch so far works wonders for me, I told you today a few hours ago, "a while ago I did not feel so comfortable and happy with my laptop", for example, now you install openSuse and it works wonders, I install it and everything goes wrong because of my hardware (for example), I will say that I do not like it and you will say yes. And we are both right ...

            1.    elav <° Linux said

              Ah but are you still? Go to lunch go


      3.    maximi89 said

        I always use SID and I have no XDD problems except when configuring ...

        Right now I've been like 1 or 2 years already xd

  3.   moscosov said

    Elav and KZKG ^ Gaara don't sulk… 🙂

    1.    elav <° Linux said

      Hahaha you better adapt because that's normal Hahahahaha

    2.    elav <° Linux said

      Hahaha, if I were you, I adapted because that's normal hahaha .. Na, but they are healthy discussions .. The day I sulk with this, I cut the network cable 😀

  4.   Kamila said

    Faced with this error: dpkg was interrupted, you must manually run 'dpkg –configure -a' to correct the problem, what do I do?

    1.    elav <° Linux said

      Welcome kamila:
      Well, you open a terminal and as root you execute:
      dpkg --configure -a

  5.   maximi89 said

    Or you simply execute the command that is spoken from sudo….

    root @ debian: / # apt-get -t experimental install libreoffice

  6.   Miguel linares placeholder image said

    Hey look, would you help me but it's in Canaima
    Can you tell me how to edit the panels, the menus and all that in Canaima, please answer my message

    1.    edward said

      but I want to install chromium web browser but I get an error trying in the root terminal and I told myself this to put it in the root terminal apt-get install -f I copy it but in the end when it is being installed it always comes out this Errors were found when processing :
      canaima-desktop-gnome
      E: Sub-process / usr / bin / dpkg Returned an error code (1)
      how can i fix that please tell me