Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  Problem with kernel-remover and autoremove  (Read 2180 times)

Offline drb

  • User
  • Posts: 165
Problem with kernel-remover and autoremove
« on: 2018/08/04, 10:59:51 »
I get the following with kernel-remover

Code: [Select]
kernel-remover
Could not find the database of available applications, run update-command-not-found as root to fix this
Command 'kernel-remover' is available in '/usr/sbin/kernel-remover'
The command could not be located because '/usr/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative priviledges associated with your user account.
kernel-remover: command not found


and with autoremove
Code: [Select]
The following packages will be REMOVED:
  g++-7 libargon2-0 libavdevice57 libavfilter6 libavresample3 libcdio17 libcodec2-0.8 libdns-export1100 libdns-export169 libgegl-0.3-0 libgfortran4 libgit2-26 libhttp-parser2.7.1 libisc-export166 libkf5akonadiprivate5
  libkf5calendarcore5 libkf5incidenceeditor-bin libkf5mailcommon-plugins libkf5pimcommon-plugins libllvm5.0 liblouis14 libmagickwand-6.q16-5 libnfs8 libopenbabel4v5 libopenshot14 libpoppler73 libpostproc54 libprocps6 libstdc++-7-dev
  linux-headers-4.17.5-towo.1-siduction-amd64 linux-headers-4.17.6-towo.1-siduction-amd64 linux-headers-4.17.8-towo.2-siduction-amd64 linux-headers-4.17.9-towo.1-siduction-amd64 linux-image-4.17.5-towo.1-siduction-amd64
  linux-image-4.17.6-towo.1-siduction-amd64 linux-image-4.17.8-towo.2-siduction-amd64 linux-image-4.17.9-towo.1-siduction-amd64
0 upgraded, 0 newly installed, 37 to remove and 36 not upgraded.
After this operation, 1,382 MB disk space will be freed.
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)


Only had this problem in the last week or so.

Offline drb

  • User
  • Posts: 165
Re: Problem with kernel-remover and autoremove
« Reply #1 on: 2018/08/04, 11:08:07 »
ctl-Alt-F1 and then logging in as root and the commands work OK. I haven't had to do this before though.

Offline finotti

  • User
  • Posts: 269
Re: Problem with kernel-remover and autoremove
« Reply #2 on: 2018/08/04, 13:59:54 »
Try 'su -' instead of 'su' and check the posts in Upgrade Warnings.

Offline drb

  • User
  • Posts: 165
[SOLVED] Re: Problem with kernel-remover and autoremove
« Reply #3 on: 2018/08/04, 14:10:12 »
Thanks. That 'solves' the issue.