![]() |
unable to upgrade via apt-get or fapman or ham
Having trouble with fapman and ham doing updates. I have applied Karam's solution from another thread but that didn't fix the problem.
everything seems to terminate with this line: " grep: /etc/sudoers.d/bluetooth-pan-tethering.sudoers: No such file or directory " It all started with filebox not updating but other things would.Ignored it for a couple of weeks and just not investigating why. Other things have been updating ok. Now it's not just filebox. I've tried manually and the ap man's. Same result. Applied the fix about adding everybody.sudoers file.Still no luck. Also tried to remove some things but it stalls with the same line. I have no idea when this started. Haven't installed anything in ages. last thing was qtirreco 2 weeks ago and before that about a month before. anyone with an idea? I have searched all over for a solution but found none that work. Hopefully someone has a very simple way out of this. |
Re: unable to upgrade via apt-get or fapman or ham
forgot to mention. the file in question does exist. in the right place and the contents look ok.I realise this is like some kind of permissions problem with sudo, sudser or sudoers but have no idea how to fix.
|
Re: unable to upgrade via apt-get or fapman or ham
Can you give more (preferably all) of the output? The one line isn't much use without any context.
|
Re: unable to upgrade via apt-get or fapman or ham
it's rather large if I put EVERYTHING but I will try to only update filebox and paste that in. Thanks for looking in:)
|
Re: unable to upgrade via apt-get or fapman or ham
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands. ~ $ sudo gainroot Root shell enabled BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. /home/user # apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: sudser The following packages have been kept back: libqtm-12 libqtm-12-contacts libqtm-12-declarative libqtm-12-location libqtm-12-messaging libqtm-12-multimedia libqtm-12-publishsubscribe libqtm-12-serviceframework libqtm-12-systeminfo libqtm-12-versit python-pyside The following packages will be upgraded: filebox 1 upgraded, 0 newly installed, 1 to remove and 11 not upgraded. 20 not fully installed or removed. Need to get 0B/650kB of archives. After this operation, 20.5kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 58468 files and directories currently installed.) Removing sudser ... grep: /etc/sudoers.d/bluetooth-pan-tethering.sudoers: No such file or directory dpkg: error processing sudser (--remove): subprocess post-removal script returned error exit status 2 Errors were encountered while processing: sudser E: Sub-process /usr/bin/dpkg returned an error code (1) /home/user # |
Re: unable to upgrade via apt-get or fapman or ham
the sudser bit is on there cos I was going to try removing then installing again last night, but it seems that removing hits the same errors. had forgotten about that:)
|
Re: unable to upgrade via apt-get or fapman or ham
Okay, it's definitely complaining about /etc/sudoers.d/bluetooth-pan-tethering.sudoers then. Can you paste the output from:
Code:
ls -l /etc/sudoers.d/bluetooth-pan-tethering.sudoers Code:
cat /etc/sudoers.d/bluetooth-pan-tethering.sudoers |
Re: unable to upgrade via apt-get or fapman or ham
/home/user # ls -l /etc/sudoers.d/bluetooth-pan-tethering.sudoers
ls: /etc/sudoers.d/bluetooth-pan-tethering.sudoers: No such file or directory /home/user # cat /etc/sudoers.d/bluetooth-pan-tethering.sudoers cat: can't open '/etc/sudoers.d/bluetooth-pan-tethering.sudoers': No such file or directory /home/user # curioser and curioser. I can navigate to that very file if I just type mc and can even view and edit it in midnight commander. it's definitely there. |
Re: unable to upgrade via apt-get or fapman or ham
just as an extra experiment I tried entering 'root' from where I was and re-running the cat.... command=>
home/user # root BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. Nokia-N900:~# home/user # ls -l /etc/sudoers.d/bluetooth-pan-tethering.sudoers -sh: home/user: not found Nokia-N900:~# ls: /etc/sudoers.d/bluetooth-pan-tethering.sudoers: No such file or directory -sh: ls:: not found Nokia-N900:~# /home/user # cat /etc/sudoers.d/bluetooth-pan-tethering.sudoers -sh: /home/user: Permission denied Nokia-N900:~# cat: can't open '/etc/sudoers.d/bluetooth-pan-tethering.sudoers': No such file or directory > /home/user # |
Re: unable to upgrade via apt-get or fapman or ham
that was the ls command sorry. here is the cat command
Nokia-N900:~# cat /etc/sudoers.d/bluetooth-pan-tethering.sudoers cat: can't open '/etc/sudoers.d/bluetooth-pan-tethering.sudoers': No such file or directory Nokia-N900:~# |
Re: unable to upgrade via apt-get or fapman or ham
uninstall sudoer and install rootsh instead
|
Re: unable to upgrade via apt-get or fapman or ham
Quote:
Code:
ls -l /etc/sudoers.d |
Re: unable to upgrade via apt-get or fapman or ham
misterc i already have both and I would uninstall then reinstall if I could.
result from that command rob1n BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ ls -l /etc/sudoers.d -rw-r--r-- 1 root root 1276 Apr 17 2009 01sudo -rw-r--r-- 1 root root 58 Mar 20 12:36 CSSUfeatures.sudoers -rw-r--r-- 1 root root 73 Aug 14 2010 applocker.sudoers -rw-r--r-- 1 root root 117 Aug 24 22:13 bluetooth-pan-tethering.sudoers -rw-r--r-- 1 root root 41 Feb 21 2010 bootscreen.sudoers -rw-r--r-- 1 root root 126 Jul 8 21:56 cleven.sudoers -rw-r--r-- 1 root root 53 Jan 18 2011 community-ssu.sudoers -rwxrwxr-x 1 root root 90 Apr 18 22:08 cssutransitionstuner.sudoers -rwxrwxr-x 1 root root 180 Apr 19 10:14 customizer.sudoers -rwxr-xr-x 1 root root 64 Sep 29 2010 fapman.sudoers -rw-r--r-- 1 root root 317 Aug 24 23:14 filebox.sudoers -rw-r--r-- 1 root root 35 Jan 6 2010 fmboost.sudoers -rw-r--r-- 1 root root 299 Mar 29 2010 hildon-application-manager.sudoers -rw-r--r-- 1 root root 46 Feb 22 2010 hildon-control-panel-personalisation.sudoers -rw-r--r-- 1 root root 200 Nov 12 2009 hildon-input-method-configurator.sudoers -rw-r--r-- 1 root root 54 Aug 10 2010 kernel-power-flasher.sudoers -rw-r--r-- 1 root root 54 Aug 22 13:14 kernel-power-flasher.sudoers.dpkg-new -rw-rw-r-- 1 root root 47 May 2 2010 kernel-power.sudoers -rw-rw-r-- 1 root root 47 Jul 27 16:13 kernel-power.sudoers.dpkg-new -rwxr-xr-x 1 root root 190 Sep 7 2010 libliqbase.sudoers -rwxr-xr-x 1 root root 190 Jul 31 12:23 libliqbase.sudoers.dpkg-new -rw-r--r-- 1 root root 75 Feb 17 2010 mafw-dbus-daemon.sudoers -rw-r--r-- 1 root root 100 Aug 28 2010 nitdroid-installer.sudoers -rw-r--r-- 1 root root 231 Apr 13 2010 nm-avahi.sudoers -rw-r--r-- 1 root root 99 Apr 13 2010 nm-bt-connect.sudoers -rw-r--r-- 1 root root 78 Apr 13 2010 nm-bt-setup.sudoers -rw-r--r-- 1 root root 41 Apr 13 2010 nm-ifaces.sudoers -rw-r--r-- 1 root root 51 Apr 13 2010 nm-internet-setup.sudoers -rw-r--r-- 1 root root 30 Apr 13 2010 nm-ip.sudoers -rw-r--r-- 1 root root 331 Apr 13 2010 nm-samba-setup.sudoers -rw-r--r-- 1 root root 390 Apr 13 2010 nm-sbrsh-setup.sudoers -rw-r--r-- 1 root root 97 Apr 13 2010 nm-udhcpd.sudoers -rw-r--r-- 1 root root 383 Apr 13 2010 nm-unfs-setup.sudoers -rw-r--r-- 1 root root 122 Apr 13 2010 nm-usb-setup.sudoers -rw-r--r-- 1 root root 211 Apr 13 2010 nm-vnc-setup.sudoers -rw-r--r-- 1 root root 392 Apr 9 2009 osso-af-startup.sudoers -rw-r--r-- 1 root root 445 Feb 17 2010 osso-app-killer.sudoers -rw-r--r-- 1 root root 201 Feb 5 2010 osso-applet-languageregional.sudoers -rw-r--r-- 1 root root 39 Jun 21 2010 powertop.sudoers -rw-r--r-- 1 root root 50 Aug 8 2010 qcpufreq.sudoers -rw-r--r-- 1 root root 101 Jan 25 2010 ssc-daemon.sudoers -rw-r--r-- 1 root root 53 Mar 20 12:13 swappolube.sudoers -rw-r--r-- 1 root root 46 Apr 21 2010 tscalibrate-fix.sudoers -rw-r--r-- 1 root root 42 Jan 7 2010 tscalibrate.sudoers -rw-r--r-- 1 root root 50 Jul 31 2010 tweakflashver.sudoers -rw-r--r-- 1 root root 39 Jul 13 20:49 wifi-switcher.sudoers -rw-r--r-- 1 root root 37 Apr 15 23:33 xbox360-media-remote ~ $ 2 |
Re: unable to upgrade via apt-get or fapman or ham
Definitely looks like filesystem corruption then :( Unfortunately I don't think there's any way to fix that on the rootfs, other than a reflash.
You may be able to get things "fixed" by doing: Code:
root |
Re: unable to upgrade via apt-get or fapman or ham
tried it. no change.
I am trying to find a way of removing bluetooth-pan now but it doesn't look as if anyone has removed it before, looking at these forums. I am hoping this might make the problem dissappear. Is there an easy way to 'reverse' a chmod command this one for instance: chmod u+x /home/user/bluetooth-pan.sh and echo "/home/user/bluetooth-pan.sh" | sudo gainroot |
Re: unable to upgrade via apt-get or fapman or ham
Is there a way to un-hide a directory. I don't know how or why it might be hidden, but some experiments have indicated that some things just can't see that directory at all (etc/sudoers.d) possibly due to permissions or something, I have no idea.
|
Re: unable to upgrade via apt-get or fapman or ham
Quote:
Quote:
|
Re: unable to upgrade via apt-get or fapman or ham
been trying to apt-get --reinstall some things to see exactly that:)
rootsh reinstalled fine. File box runs into the problem and says can't remove /etc/sudoers.d/filebox.sudoers. I made a backup then deleted the contents of sudoers.d tried it- same error. put a blank file in there with correct name - same error copied the right file back- same error Tried it with cleven error same (except same it can't find /etc/sudpers.d/cleven.sudoers) reinstalling conky worked fine. reinstalling yosmapa worked fine. My conclusion is that etc/sudoers is just not visible If an app doesn't need to use that folder then it installs and updates fine. If it needs it then it returns an error. How to fix that is the big problem lol. I've tried running update-sudoers and it seems to work but nothing changes. ( don't really know what that's supposed to do though.) EDIT: further experimenting suggests, from putting other files in there, that whatever I am trying to install/update just returns an error based on the name of the files. So if there is a.sudoers, b.sudoers and c.sudoers and I try to update program x - it will same error can't find a.sudoers no such file. If I delete a.sudoers then it throws up can't find b.sudoers instead. |
Re: unable to upgrade via apt-get or fapman or ham
I think I will give up now and restore a backup. Just looked and latest one was in april:( oh well- needs must.and all that.Might try just restoring root first before opt
|
Re: unable to upgrade via apt-get or fapman or ham
thanks fpr all the help rob1n.
I restored the backup root from april. (i WAS lanning to do one this summer, honest). No ill effects (yet) from not restoring backup opt at the same time.. updates and upgrades looking like they are going as normal now (except something funny happened when It updated kernel-power. I will investgate later maybe) |
All times are GMT. The time now is 01:12. |
vBulletin® Version 3.8.8