Code: Select all
pi@raspberrypi ~ $ sudo /etc/init.d/iscsitarget start
[....] Starting iSCSI enterprise target service:FATAL: Module iscsi_trgt not found.
failed!Code: Select all
pi@raspberrypi ~ $ sudo uname -a
Linux raspberrypi 4.4.9+ #884 Fri May 6 17:25:37 BST 2016 armv6l GNU/LinuxCode: Select all
pi@raspberrypi ~ $ sudo m-a a-i iscsitarget
Updated infos about 1 packages
Getting source for kernel version: 4.4.9+
apt-get install linux-headers-4.4.9+
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.4.9
E: Couldn't find any package by regex 'linux-headers-4.4.9'
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up iscsitarget (1.4.20.2-10.1) ...
[....] Starting iSCSI enterprise target service:FATAL: Module iscsi_trgt not found.
failed!
invoke-rc.d: initscript iscsitarget, action "start" failed.
dpkg: error processing iscsitarget (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
iscsitarget
E: Sub-process /usr/bin/dpkg returned an error code (1)
Done!
Code: Select all
pi@raspberrypi ~ $ sudo apt-get install --reinstall iscsitarget-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/75.5 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 113791 files and directories currently installed.)
Preparing to replace iscsitarget-dkms 1.4.20.2-10.1 (using .../iscsitarget-dkms_1.4.20.2-10.1_all.deb) ...
-------- Uninstall Beginning --------
Module: iscsitarget
Version: 1.4.20.2
Kernel: 3.2.0-4-rpi (armv6l)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
iscsi_trgt.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-4-rpi/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod....
DKMS: uninstall completed.
------------------------------
Deleting module version: 1.4.20.2
completely from the DKMS tree.
------------------------------
Done.
Unpacking replacement iscsitarget-dkms ...
Setting up iscsitarget (1.4.20.2-10.1) ...
[....] Starting iSCSI enterprise target service:FATAL: Module iscsi_trgt not found.
failed!
invoke-rc.d: initscript iscsitarget, action "start" failed.
dpkg: error processing iscsitarget (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up iscsitarget-dkms (1.4.20.2-10.1) ...
Creating symlink /var/lib/dkms/iscsitarget/1.4.20.2/source ->
/usr/src/iscsitarget-1.4.20.2
DKMS: add completed.
Error! Your kernel headers for kernel 4.4.9+ cannot be found.
Please install the linux-headers-4.4.9+ package,
or use the --kernelsourcedir option to tell DKMS where it's located
Errors were encountered while processing:
iscsitarget
E: Sub-process /usr/bin/dpkg returned an error code (1)