Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Networking & Wireless
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Networking & Wireless
Having problems getting connected to the internet or getting your wireless card to work? Ask here.

 
Thread Tools Display Modes
Old February 10th, 2008   #1
Einewton
First Cup of Ubuntu
 
Join Date: Feb 2008
Beans: 8
iscsitarget installation

Version: Ubuntu 7.10

I received an error when installing iscsitarget, and I didn't write it down because I thought I could just un-install it.

When I went to uninstall it I get:
E: iscsitarget: subprocess pre-removal script returned error exit status 1

Here is a more detailed message when I try to use apt-get to remove:

Code:
einewton@Einewton:~/iSCSI/iscsitarget-0.4.15$ sudo apt-get -f remove --purge open-iscsi
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  iscsitarget: Depends: iscsitarget-module but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Here is my Kernel Version.
einewton@Einewton:~/iSCSI/iscsitarget-0.4.15$ cat /proc/version
Linux version 2.6.22-14-generic (buildd@terranova) (gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP Fri Feb 1 04:59:50 UTC 2008


I really would like to setup iSCSITarget on my box, but everything seems to be blowing up now.

The real kicker is now, I can't install anything. Here's an example:
Code:
einewton@Einewton:~/iSCSI/iscsitarget-0.4.15$ sudo apt-get install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
python is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  iscsitarget: Depends: iscsitarget-module but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Now, I really need help!
Einewton is offline   Reply With Quote
Old February 11th, 2008   #2
jan quark
Chocolate-Covered Ubuntu Beans
 
jan quark's Avatar
 
Join Date: Nov 2007
Location: Where I am
Beans: 2,397
Ubuntu 7.10 Gutsy Gibbon
Re: iscsitarget installation

try running this and post any error messages please

Code:
sudo apt-get -f install

thank you
__________________
Beginners Team
UnansweredPost Team
ubuntuhelp.piranho.com
Tread softly because you tread on my dreams
jan quark is offline   Reply With Quote
Old February 20th, 2008   #3
hoangminh88
First Cup of Ubuntu
 
Join Date: Aug 2007
Beans: 3
Re: iscsitarget installation

when I 'make'. Terminal show:
Code:
make -C /lib/modules/2.6.22-14-generic/build SUBDIRS=/root/iscsitarget-0.4.15/kernel modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
  CC [M]  /root/iscsitarget-0.4.15/kernel/event.o
/root/iscsitarget-0.4.15/kernel/event.c: In function ‘event_init’:
/root/iscsitarget-0.4.15/kernel/event.c:98: warning: passing argument 4 of ‘netlink_kernel_create’ from incompatible pointer type
/root/iscsitarget-0.4.15/kernel/event.c:98: error: too few arguments to function ‘netlink_kernel_create’
make[2]: *** [/root/iscsitarget-0.4.15/kernel/event.o] Error 1
make[1]: *** [_module_/root/iscsitarget-0.4.15/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
make: *** [kernel] Error 2
Plz help me to fix it.
hoangminh88 is offline   Reply With Quote
Old February 26th, 2008   #4
Einewton
First Cup of Ubuntu
 
Join Date: Feb 2008
Beans: 8
Re: iscsitarget installation

Quote:
Originally Posted by jan quark View Post
try running this and post any error messages please

Code:
sudo apt-get -f install

thank you
This did NOT work...

What i ended up doing is finding every file/folder related to iscsitarget, and deleting it (rm-rf) then i had to update my aptget, and my apt-get started to work again...


Still couldn't get iscsitarget to work, i suppose i'll just support iscsitarget on windows since it's not very mature for Linux.
Einewton is offline   Reply With Quote
Old March 16th, 2008   #5
_ufo_
First Cup of Ubuntu
 
Join Date: Mar 2008
Beans: 1
Re: iscsitarget installation

I tried a simple patch of iscsitarget-0.4.15/kernel/event.c line 98.

Change from:
nl = netlink_kernel_create(NETLINK_IET, 1, event_recv, THIS_MODULE);

To:
nl = netlink_kernel_create(NETLINK_IET, 1, event_recv, 0, THIS_MODULE);

I seems to work (created/mounted/used a target without failure).
Unfortunately I don't if the extra argument (struct mutex*) is needed.

My investigations tells it is introduced in kernel 2.6.21 or 2.6.22.

Tests where performed on:
Ubuntu-7.10 and kernel 2.6.22-14-server
_ufo_ is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:40 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry