PDA

View Full Version : Stuck packages


freeman
02-13-2007, 05:25 AM
My N800 have a stuck package after doing a normal update. My samba is now not working and it stuck. It cannot be remove or reinstall. Any suggestion.
upon running 'apt-get remove samba' I got
Nokia-N800-51:/var# apt-get remove samba
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
samba
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 6873kB disk space will be freed.
Do you want to continue [Y/n]?
dpkg: error processing samba (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
While running 'apt-get install samba' I have
Nokia-N800-51:/var# apt-get install samba
Reading package lists... Done
Building dependency tree... Done
samba is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0B/2919kB of archives.
After unpacking 0B of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
samba
Install these packages without verification [y/N]? y
Selecting previously deselected package samba.
(Reading database ... 16153 files and directories currently installed.)
Preparing to replace samba 3.0.22-3 (using .../samba_3.0.22-3_armel.deb) ...
Unpacking replacement samba ...
/var/lib/dpkg/info/samba.postrm: /var/lib/dpkg/info/samba.postrm: 24: update-inetd: not found
dpkg: warning - old post-removal script returned error exit status 127
dpkg - trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/postrm: /var/lib/dpkg/tmp.ci/postrm: 24: update-inetd: not found
dpkg: error processing /var/cache/apt/archives/samba_3.0.22-3_armel.deb (--unpack):
subprocess new post-removal script returned error exit status 127
/var/lib/dpkg/tmp.ci/postrm: /var/lib/dpkg/tmp.ci/postrm: 24: update-inetd: not found
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 127
Errors were encountered while processing:
/var/cache/apt/archives/samba_3.0.22-3_armel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Any tips?

freeman
02-16-2007, 04:13 AM
Still can't get it to work, but I have more info.
the /usr/sbin/update-inetd exist, 6.1k
but if i do sudo update-inetd, it report "-sh: update-inetd: not found"

It appear, ubuntu have similar problem, which can be fixed
http://www.ubuntuforums.org/showthread.php?t=310516
They fixed by running

$ sudo apt-get install update-inetd
$ sudo apt-get install -f

appearently "update-inetd" is not a package by itself.

help is appreciated.

TA-t3
02-16-2007, 05:37 AM
update-inetd is part of the package 'netbase' (you find out with 'dpkg -S /usr/sbin/update-inetd')
The problem is that update-inetd is a Perl script, and Perl is not installed (most probably - I've even asked for a Perl package and nobody could point me to one).
You may try this workaround to get past that problem, just so you can go on and uninstall the package:
cd /usr/sbin
mv update-inetd update-inetd.save
ln -s /bin/true update-inetd
[Go through the install/remove process again]

Afterwards you may remove that symbolic link and rename back the original update-inetd, on the other hand it's useless as it is without Perl so it could even be better to just leave it as a symlink to /bin/true

freeman
02-16-2007, 01:19 PM
I got a different error message for install, but remove still got the same error message.
Nokia-N800-51:/usr/sbin# apt-get install samba
Reading package lists... Done
Building dependency tree... Done
samba is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
Need to get 0B/2919kB of archives.
After unpacking 0B of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
samba
Install these packages without verification [y/N]? y
(Reading database ... 16221 files and directories currently installed.)
Preparing to replace samba 3.0.22-3 (using .../samba_3.0.22-3_armel.deb) ...
Unpacking replacement samba ...
update-inetd: applet not found
dpkg: warning - old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
update-inetd: applet not found
dpkg: error processing /var/cache/apt/archives/samba_3.0.22-3_armel.deb (--unpack):
subprocess new post-removal script returned error exit status 1
update-inetd: applet not found
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/samba_3.0.22-3_armel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

freeman
02-16-2007, 01:30 PM
Thanks for your help, it work now. Now that you mention it, there is a perl for the 770. install that, leave the script as is, re-install the samba and it work again.
super thanks,

PS: I didn't think it was the perl.