For some reason I get this error all the time in system scripts:
rm: not found
For example I wanted to update the system:
Setting up install-info (5.2.0.dfsg.1-6) ...
/usr/sbin/update-info-dir: 52: /usr/sbin/update-info-dir: rm: not found
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)
It has nothing to do with the package "Install-info". This happens with all packages. It also happens when crond is running. I think it has to do with when a system script wants to remove a file.
I can use rm
both as normal user and root.
This started after upgrading to vivid.
UPDATE:
This error is not only for rm
but for other commands for example date
and pidof
as shown from this cron log.
/etc/cron.daily/apt:
/etc/cron.daily/apt: 91: /etc/cron.daily/apt: date: not found
/etc/cron.daily/apt: 97: /etc/cron.daily/apt: rm: not found
/etc/cron.daily/apt: 448: /etc/cron.daily/apt: pidof: not found
xargs: rm: No such file or directory
/etc/cron.daily/apt: 176: /etc/cron.daily/apt: date: not found
/etc/cron.daily/apt: 176: /etc/cron.daily/apt: date: not found
UPDATE-2. Trying to reinstall coreutils
and sysvinit-utils
.
norty@powerplant:~$ sudo apt-get install --reinstall coreutils sysvinit-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 63 not upgraded.
1 not fully installed or removed.
Need to get 1,176 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://se.archive.ubuntu.com/ubuntu/ vivid/main coreutils amd64 8.23-3ubuntu1 [1,137 kB]
Get:2 http://se.archive.ubuntu.com/ubuntu/ vivid/main sysvinit-utils amd64 2.88dsf-53.2ubuntu12 [39.1 kB]
Fetched 1,176 kB in 11s (104 kB/s)
Setting up install-info (5.2.0.dfsg.1-6) ...
/usr/sbin/update-info-dir: 52: /usr/sbin/update-info-dir: rm: not found
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)
I also manually downloaded the packages coreutils
and sysvinit-utils
. Then I installed them with the dpkg -i
. The install finish without any errors but apt
still gives the same error.
install-info
as/usr/sbin/update-info-dir
is provided byinstall-info
..runsudo apt-get install --reinstall install-info
and then check..sudo do-release-upgrade
?