(SOLVED) Update not completed - errors...

Archived topics about LMDE 1 and LMDE 2
Locked
tenfoot
Level 6
Level 6
Posts: 1254
Joined: Sun Jun 03, 2007 4:12 am

(SOLVED) Update not completed - errors...

Post by tenfoot »

LMDE

Icon indicated updates available. Got to Install Updates, then box appeared:

Code: Select all

Additional changes
libgraphic2-2.0.0
libnetfilter-conntrack3
Clicked O.K.

Error box

Code: Select all

Update is complete

Not all changes and updates succeeded.  For further details of the failure, please expand the 'Details' panel below
Details gave:

Code: Select all

/usr/share/themes/Shiki-Wise/gtk-2.0/gtkrc:126: Murrine configuration option "gradients" is no longer supported and will be ignored.
/usr/share/themes/Shiki-Wise/gtk-2.0/gtkrc:126: Murrine configuration option "gradients" is no longer supported and will be ignored.
Extracting templates from packages: 100%
Preconfiguring packages ...
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)
A package failed to install.  Trying to recover:
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.
Once again, help is requested, please?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
tdockery97
Level 14
Level 14
Posts: 5058
Joined: Sun Jan 10, 2010 8:54 am
Location: Mt. Angel, Oregon

Re: Update not completed - errors...

Post by tdockery97 »

If you haven't tried already, run in terminal:

Code: Select all

sudo dpkg --configure -a
Then try your update again.
Mint Cinnamon 20.1
zerozero

Re: Update not completed - errors...

Post by zerozero »

tenfoot
Level 6
Level 6
Posts: 1254
Joined: Sun Jun 03, 2007 4:12 am

Re: Update not completed - errors...

Post by tenfoot »

tdockery97 wrote:If you haven't tried already, run in terminal:

Code: Select all

sudo dpkg --configure -a
Then try your update again.
That gave me:

Code: Select all

zed@systemproductname-desktop ~ $ sudo dpkg --configure -a
[sudo] password for zed: 
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.
zed@systemproductname-desktop ~ $ 
Then I read your second post and my heart sank to my boots :(
tenfoot
Level 6
Level 6
Posts: 1254
Joined: Sun Jun 03, 2007 4:12 am

Re: Update not completed - errors...

Post by tenfoot »

zerozero wrote:tenfoot your sudo is broken
Will plough through those messages and try to fathom out what I should do but this "ancient bear of little brain" is not altogether confident that he is capable of resolving the issue :(
kaptainkarl

Re: Update not completed - errors...

Post by kaptainkarl »

A workaround for this problem if you're still having trouble is to run anything that needs superuser privileges with "sudo -i" instead of just "sudo". So you can run (either from a terminal or from the 'alt-f2' run-command dialog) 'sudo -i mintupdate' and the update program will be able to install without freaking out. Or you can run su'd as root instead of using sudo. I haven't tried it, but adding /sbin and /usr/sbin to your path before sudo'ing might also work...
Gerd50

Re: Update not completed - errors...

Post by Gerd50 »

I fixed it this way:

Code: Select all

gksu gedit etc/sudoers
in sudoers is a line

Code: Select all

Defaults   env_reset
under this line i added the new line

Code: Select all

Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
tenfoot
Level 6
Level 6
Posts: 1254
Joined: Sun Jun 03, 2007 4:12 am

Re: Update not completed - errors...

Post by tenfoot »

Thank you Gerd50 Your fix also fixed my problem and i am now up-to date with upgrades.
Jorox

Re: (SOLVED) Update not completed - errors...

Post by Jorox »

I am a newbie to the Linux enviroment.
But I must say the Mint disrtribution is proving to be a lovely way to start my way.
Eventhough I've faced alot of problems at first, the community here is excellent.

This is my first post, and I hope it wont be my last.
Thank you for posting this fix, it sure brightened my day after a long depression.

:D
Locked

Return to “LMDE Archive”