Kali error on update
Problem
Errors were encountered while processing:
gconf2
Error: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
Can't locate File/FcntlLock.pm in @INC (you may need to install the File::FcntlLock module) (@INC contains: /etc/perl /usr/local/lib/i386-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/i386-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/i386-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/i386-linux-gnu/perl-base) at /usr/share/kali-menu/update-kali-menu line 9.
Solution
apt-get dist-upgrade -f
update-rc.d: error: insserv rejected the script header
dpkg: error processing package initscripts (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initscripts
Error: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
Can't locate File/FcntlLock.pm in @INC (you may need to install the File::FcntlLock module) (@INC contains: /etc/perl /usr/local/lib/i386-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/i386-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/i386-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/i386-linux-gnu/perl-base) at /usr/share/kali-menu/update-kali-menu line 9.
kept running in loop the following commands in the following order
sudo dpkg --configure -a
sudo apt-get -f install
sudo dpkg --configure -a
apt-get dist-upgrade
# locate initscript
[..]
/var/cache/apt/archives/initscripts_2.88dsf-59.8_i386.deb
[..]
mkdir /tmp/saveInitJustInCase
mv /var/cache/apt/archives/initscripts_2.88dsf-59.8_i386.deb /tmp/saveInitJustInCase
apt-get clean && sudo apt-get autoremove
apt-cache search FcntlLock
apt-get install libfile-fcntllock-perl
apt-get -f install
apt-get --fix-missing install libfile-fcntllock-perl
apt-get dist-upgrade -f
sudo aptitude full-upgrade -f
Solution that works
insserv: script checkroot.sh: service mtab already provided!
locate checkroot.sh
in my case that was in
vim checkroot.sh
and remove the first instance of mtab you find at the beginning of the file after the #
aptitude update
aptitude upgrade
If the following problem occurs:
Solution
>sudo apt-get install kali-menu
Reinstall vmware tools after machine upgrade (Kali Linux Rolling >2016).
Uninstall old wmware tools using command: vmware-uninstall-tools.pl
apt-get install open-vm-tools-desktop fuse
Reboot
Errors were encountered while processing:
gconf2
Error: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
Can't locate File/FcntlLock.pm in @INC (you may need to install the File::FcntlLock module) (@INC contains: /etc/perl /usr/local/lib/i386-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/i386-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/i386-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/i386-linux-gnu/perl-base) at /usr/share/kali-menu/update-kali-menu line 9.
Solution
apt-get dist-upgrade -f
update-rc.d: error: insserv rejected the script header
dpkg: error processing package initscripts (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initscripts
Error: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
Can't locate File/FcntlLock.pm in @INC (you may need to install the File::FcntlLock module) (@INC contains: /etc/perl /usr/local/lib/i386-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/i386-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/i386-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/i386-linux-gnu/perl-base) at /usr/share/kali-menu/update-kali-menu line 9.
kept running in loop the following commands in the following order
sudo dpkg --configure -a
sudo apt-get -f install
sudo dpkg --configure -a
apt-get dist-upgrade
# locate initscript
[..]
/var/cache/apt/archives/initscripts_2.88dsf-59.8_i386.deb
[..]
mkdir /tmp/saveInitJustInCase
mv /var/cache/apt/archives/initscripts_2.88dsf-59.8_i386.deb /tmp/saveInitJustInCase
apt-get clean && sudo apt-get autoremove
apt-cache search FcntlLock
apt-get install libfile-fcntllock-perl
apt-get -f install
apt-get --fix-missing install libfile-fcntllock-perl
apt-get dist-upgrade -f
sudo aptitude full-upgrade -f
Solution that works
insserv: script checkroot.sh: service mtab already provided!
locate checkroot.sh
in my case that was in
vim checkroot.sh
and remove the first instance of mtab you find at the beginning of the file after the #
aptitude update
aptitude upgrade
If the following problem occurs:
Solution
>sudo apt-get install kali-menu
Reinstall vmware tools after machine upgrade (Kali Linux Rolling >2016).
Uninstall old wmware tools using command: vmware-uninstall-tools.pl
apt-get install open-vm-tools-desktop fuse
Reboot