Reco <recovery...@gmail.com> writes:

> On Tue, Aug 07, 2018 at 09:05:28AM +0200, Rodolfo Medina wrote:
>> Some little problems after `full-upgrade' to Sid: no sound...  Besides, when
>> trying to install new packages, the following message appears:
>> 
>> # aptitude install alsaplayer-alsa pulseaudio 
>> pulseaudio is already installed at the requested version (12.0-1)
>> pulseaudio is already installed at the requested version (12.0-1)
>> The following NEW packages will be installed:
>>   alsaplayer-alsa alsaplayer-common{a} alsaplayer-gtk{a} libmikmod3{a} 
>> 0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
>> Need to get 0 B/505 kB of archives. After unpacking 1,410 kB will be used.
>> Do you want to continue? [Y/n/?] y
>> 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
>> E: Sub-process /usr/bin/dpkg returned an error code (2)
>> 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
>> 
>> Please help...  I'm not expert.
>
> Your installation lacks /sbin/ldconfig and /sbin/start-stop-daemon from
> "libc-bin" and "dpkg" packages respectively. Or root's $PATH lack
> "/sbin" somehow.
> Either way it's not normal, it's a little wonder that you're able to
> boot or run any binary executable.
>
>
> I'd start fixing this mess by checking root's $PATH:
>
> echo $PATH
>
> It literally should have this value:
>
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>
> Next I'd try this:
>
> apt-get install --reinstall dpkg libc-bin


Thanks...  I'm afraid it's bad...:

$ echo $PATH
/home/rodolfo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
rodolfo@sda6-acer:~$ su
Password: 
root@sda6-acer:/home/rodolfo# apt-get install --reinstall dpkg libc-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-image-3.16.0-4-686-pae linux-image-4.11.0-2-686-pae 
linux-image-4.12.0-1-686-pae linux-image-4.12.0-2-686-pae 
linux-image-4.9.0-3-686-pae
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/2,952 kB of archives.
After this operation, 0 B of additional disk space will be used.
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
E: Sub-process /usr/bin/dpkg returned an error code (2)


Thanks,

Rodolfo

Reply via email to