Issue with dpkg after upgrade to Testing (SOLVED)

Kernels & Hardware, configuring network, installing services

Issue with dpkg after upgrade to Testing (SOLVED)

Postby Mr. Lumbergh » 2019-10-13 20:41

Yesterday I took my Buster install up to Testing/Bullseye and I'm now getting the following when trying to install a package:
Code: Select all
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

To be honest, I'm not sure if this was something that persisted across the upgrade or if something was broken/corrupted during the process. I've done some digging online and in various forums but the issues and solutions all seemed to be from a few years ago; on here most of what I found that was similar pointed to using
Code: Select all
su -
but I'm already logged in as root on the command line (I don't use sudo).
I tried following along with a thread from earlier http://forums.debian.net/viewtopic.php?f=10&t=143857&p=708711&hilit=%27ldconfig+in+path#p708711 but the solution wasn't clear to me.
Thanks in advance.
Last edited by Mr. Lumbergh on 2019-10-15 17:43, edited 1 time in total.
Mr. Lumbergh
 
Posts: 18
Joined: 2019-08-02 04:28

Re: Issue with dpkg after upgrade to Testing

Postby Pakos » 2019-10-13 21:45

show your path variable, should be similar to:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
User avatar
Pakos
 
Posts: 96
Joined: 2008-03-08 17:36

Re: Issue with dpkg after upgrade to Testing

Postby Mr. Lumbergh » 2019-10-14 01:38

Pakos wrote:show your path variable, should be similar to:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Here's what came up:
Code: Select all
lumbergh@HAL9000:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

I also have Lutris installed on this system, could it have wiped the original bash profile?
Mr. Lumbergh
 
Posts: 18
Joined: 2019-08-02 04:28

Re: Issue with dpkg after upgrade to Testing

Postby sunrat » 2019-10-14 07:23

That's your user PATH. If you're trying to nail down an issue with dpkg, you need to check root PATH.

Code: Select all
$ su -
<enter root password>
# echo $PATH
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2882
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Issue with dpkg after upgrade to Testing

Postby Mr. Lumbergh » 2019-10-14 07:38

sunrat wrote:That's your user PATH. If you're trying to nail down an issue with dpkg, you need to check root PATH.

Code: Select all
$ su -
<enter root password>
# echo $PATH

Here it is:
Code: Select all
root@HAL9000-Deb:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
Mr. Lumbergh
 
Posts: 18
Joined: 2019-08-02 04:28

Re: Issue with dpkg after upgrade to Testing

Postby sunrat » 2019-10-14 07:53

ldconfig and start-stop-daemon both usually exist in /sbin/ so I was thinking your issue may have been that you didn't switch to root correctly, same as the linked thread in your first post. However /sbin/ appears in your root PATH and you stated that you switched to root correctly before running dpkg so I'm out of ideas.

Just double-check those programs exist (as root):
Code: Select all
which ldconfig
which start-stop-daemon


Your computer didn't happen to say "I'm sorry Dave, I'm afraid I can't do that"? :mrgreen:
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2882
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Issue with dpkg after upgrade to Testing

Postby Mr. Lumbergh » 2019-10-14 14:46

sunrat wrote:ldconfig and start-stop-daemon both usually exist in /sbin/ so I was thinking your issue may have been that you didn't switch to root correctly, same as the linked thread in your first post. However /sbin/ appears in your root PATH and you stated that you switched to root correctly before running dpkg so I'm out of ideas.

Just double-check those programs exist (as root):
Code: Select all
which ldconfig
which start-stop-daemon


Your computer didn't happen to say "I'm sorry Dave, I'm afraid I can't do that"? :mrgreen:

In a roundabout way, yes it did, unfortunately! :(
Here's the output of the which query:
Code: Select all
lumbergh@HAL9000-Deb:~$ su -
Password:
root@HAL9000-Deb:~# which ldconfig
/usr/sbin/ldconfig
root@HAL9000-Deb:~# which start-stop-daemon
/usr/sbin/start-stop-daemon

Both of those daemons are in there. I'm not sure what I did wrong, perhaps the .deb was corrupted. I'll see if I can manually add the downloads from KXStudios as a repo with the program and install through Synaptic instead.
Thank you for your time.
Mr. Lumbergh
 
Posts: 18
Joined: 2019-08-02 04:28

Re: Issue with dpkg after upgrade to Testing

Postby stevepusser » 2019-10-14 21:19

The elephant in the room:

Exactly how did you do the upgrade, and was it for any particular package?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.8, Telegram-desktop 1.8.15, Pale Moon 28.7.2, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11254
Joined: 2009-10-06 05:53

Re: Issue with dpkg after upgrade to Testing

Postby Mr. Lumbergh » 2019-10-14 21:54

stevepusser wrote:The elephant in the room:

Exactly how did you do the upgrade, and was it for any particular package?

I followed the destructions outlined in this how-to: https://ultra-technology.org/linux_for_beginners/from-buster-to-bullseye-debian/. It was primarily to get a more recent Firefox from official channels; ESR 60 was a dog, especially on certain pages. I was also curious to see if some of the testing packages included a few things I was looking for that weren't in the Stable repos.
Mr. Lumbergh
 
Posts: 18
Joined: 2019-08-02 04:28

Re: Issue with dpkg after upgrade to Testing

Postby sunrat » 2019-10-15 01:29

Mr. Lumbergh wrote:I followed the destructions outlined in this how-to: https://ultra-technology.org/linux_for_beginners/from-buster-to-bullseye-debian/.

Strange it's in a section called "linux_for_beginners". Testing is not really for beginners.

It was primarily to get a more recent Firefox from official channels; ESR 60 was a dog, especially on certain pages. I was also curious to see if some of the testing packages included a few things I was looking for that weren't in the Stable repos.

There are ways to run the latest Firefox on Stable.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2882
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Issue with dpkg after upgrade to Testing

Postby Head_on_a_Stick » 2019-10-15 17:30

sunrat wrote:Strange it's in a section called "linux_for_beginners".

I think it's a typo: should be "linux_by_beginners" :mrgreen:

Mr. Lumbergh wrote:I followed the destructions

lol
Don't break DebianHow to report bugs

SharpBang GNU/Linux — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10613
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Issue with dpkg after upgrade to Testing

Postby Mr. Lumbergh » 2019-10-15 17:42

Head_on_a_Stick wrote:
sunrat wrote:Strange it's in a section called "linux_for_beginners".

I think it's a typo: should be "linux_by_beginners" :mrgreen:

Is the method outlined in the link problematic? It seems to have gotten the job done; when I updated GRUB after, both distros identified it as Bullseye/Sid, and dpkg is pulling from the Bullseye repos. Thus far, the system is remaining stable.
Head_on_a_Stick wrote:
Mr. Lumbergh wrote:I followed the destructions

lol

It seems to me to be the most apropos way to describe those how-tos. ;) Sometimes they're great, sometimes... Not so much.

Anywho, thanks again to everyone who chipped in their time with helping me get this sorted. I was able to get what I needed by manually enabling their ftp site as repo and installing through Synaptic. I think there may have been something up with the deb file.
Last edited by Mr. Lumbergh on 2019-10-15 17:45, edited 1 time in total.
Mr. Lumbergh
 
Posts: 18
Joined: 2019-08-02 04:28

Re: Issue with dpkg after upgrade to Testing

Postby stevepusser » 2019-10-15 17:45

I wonder if "destructions" was a Freudian slip, since that seems to be what happened.

Perhaps I could backport the stable Firefox on Buster from source, like mozilla.debian.net used to do...but I'm kind of busy with MX 19 stuff ATM.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.8, Telegram-desktop 1.8.15, Pale Moon 28.7.2, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11254
Joined: 2009-10-06 05:53

Re: Issue with dpkg after upgrade to Testing

Postby Head_on_a_Stick » 2019-10-15 17:49

Mr. Lumbergh wrote:Is the method outlined in the link problematic?

A development branch can break occasionally, is that really what you want from an operating system? Debian stable doesn't tend to break at all and newer software versions can be added fairly easily (and safely) with a variety of well-documented methods.

And testing is the worst branch of all for security support, check the status for the recently-announced sudo vulnerability: https://security-tracker.debian.org/tra ... 2019-14287

Debian bullseye will be the last version to be marked "fixed" and it may take a while...
Don't break DebianHow to report bugs

SharpBang GNU/Linux — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10613
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Issue with dpkg after upgrade to Testing

Postby Mr. Lumbergh » 2019-10-15 17:57

stevepusser wrote:I wonder if "destructions" was a Freudian slip, since that seems to be what happened.

I think it may have been the particular deb I was trying to install. They have a pretty clean ftp site that Synaptic had no trouble with after I manually enabled it.

stevepusser wrote:I wonder if "destructions" was a Freudian slip, since that seems to be what happened.

Perhaps I could backport the stable Firefox on Buster from source, like mozilla.debian.net used to do...but I'm kind of busy with MX 19 stuff ATM.[/quote]
That would be helpful when you can, not a huge rush. ESR 69 is a Quantum release and is better than the ESR 60 that was the latest in Stable. The one page that wasn't playing well is still slow to load, but better than before and I can use Chromium for now if need be.
Last edited by Mr. Lumbergh on 2019-10-15 18:48, edited 1 time in total.
Mr. Lumbergh
 
Posts: 18
Joined: 2019-08-02 04:28

Next

Return to System configuration

Who is online

Users browsing this forum: Len E. and 12 guests

fashionable