Kismet Wireless

Kismet Forums

 

Posted by:scherepanov
Subject:Bug upgrading kismet with sudo
Date:22:11:46 03/11/2016

> > Hi,
> > I encounter bug when upgrading kismet with sudo, and my user account name is different from username. Found on Ubuntu 16.04.
> > 1) Attempt to upgrade kismet:
> >
> > sergey@Supermedia:~$ sudo apt-get upgrade kismet
> > [sudo] password for sergey:
> > Reading package lists... Done
> > Building dependency tree
> > Reading state information... Done
> > kismet is already the newest version (2013.03.R1b-3build1).
> > Calculating upgrade... Done
> > The following packages have been kept back:
> > liboxideqt-qmlplugin liboxideqtcore0 liboxideqtquick0 oxideqt-codecs snapd
> > ubuntu-core-launcher
> > 0 upgraded, 0 newly installed, 0 to remove and 6 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 kismet (2013.03.R1b-3build1) ...
> > usermod: user 'Sergey' does not exist <<<<<<<<<<<<<<<<<<< bug
> > dpkg: error processing package kismet (--configure):
> > subprocess installed post-installation script returned error exit status 6
> > Errors were encountered while processing:
> > kismet
> > E: Sub-process /usr/bin/dpkg returned an error code (1)
> >
> > It is trying to refer to user Sergey, but account username is sergey:
> >
> > sergey@Supermedia:~$ grep sergey /etc/passwd
> > sergey:x:1000:1000:Sergey,,,:/home/sergey:/bin/bash
> >
> > It appears you are using account name instead of account username, which is different.
> >
> > This bug will happen if you will upgrade not from root, and your account username set different from account name.
>
> If it's using the packaging from the source, then I think it may have been a typo when you entered your username - it uses the debconf db_get to prompt for usernames; it doesn't derive it from the user running the install.
>
> If it's made using a different post-inst script, I'm not sure what they're doing.
>
> The relevant code is in debian/kismet.post-inst -
>
> db_get kismet/install-users
>
> if [ "$RET" != "" ]; then
> for x in ${RET}; do
> usermod -a -G $GROUP $x
> done
> fi
>
> which should operate entirely on the user-provided usernames...
>
> -m
Hi,
I appreciate your quick response.
I deny any meddling with kismet installation or anything else :-)
I just installed it on ubuntu 16.04 by running sudo apt-get install kismet.
Then I saw repeated errors on upgrading kismet.

After some meddling around, it appears that somehow there is a file kismet/install-users with "Sergey" in it. I changed comment on my username, still on installation it is picking up this name. It is definitely strange behavior.
But, package for Ubuntu is from 2013. Remove works fine. I will reinstall by donwloading from web site.
Thanks again for looking
Sergey


Reply to this message