Reply
Thread Tools
Posts: 384 | Thanked: 90 times | Joined on Mar 2008
#1
Help! This is an 810 running diablo..... I'm afraid to reboot! What should I do?

~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
w busybox dnsmasq hildon-application-framework-rx34-rx44 libconbtui0 libicd-network-dun maemo-pan netbase omweather
osso-applet-device osso-bluez-compat osso-connectivity osso-connectivity-ui osso-connectivity-ui-btsettings
osso-connectivity-ui-conndlgs osso-connectivity-ui-connmgr osso-connectivity-ui-gwsettings osso-connectivity-ui-gwwizard
osso-connectivity-ui-iapsettings osso-connectivity-ui-statusbar osso-core osso-core-busybox osso-filemanager ppp
The following NEW packages will be installed:
bash bsdutils coreutils debianutils e2fslibs e2fsprogs grep gzip host libacl1 libattr1 libavahi-core5 libblkid1 libcomerr2
libss2 libuuid1 mktemp mount ncurses-bin sed slang1a-utf8 tar util-linux
The following packages have been kept back:
canola2
The following packages will be upgraded:
avahi-daemon
1 upgraded, 23 newly installed, 24 to remove and 1 not upgraded.
Need to get 6625kB of archives.
After unpacking 10.6MB of additional disk space will be used.
Do you want to continue [Y/n]?
WARNING: The following packages cannot be authenticated!
bash bsdutils libattr1 libacl1 coreutils mktemp debianutils e2fslibs libblkid1 libcomerr2 libss2 libuuid1 e2fsprogs grep gzip
mount ncurses-bin sed tar slang1a-utf8 util-linux libavahi-core5 host avahi-daemon
Install these packages without verification [y/N]? y
Get:1 http://debfarm.free.fr chinook/user e2fslibs 1.40.3-1 [113kB]
Get:2 http://repository.maemo.org diablo/sdk/free bash 2.05b-26osso4 [637kB]
Get:3 http://debfarm.free.fr chinook/user libblkid1 1.40.3-1 [46.3kB]
Get:4 http://repository.maemo.org diablo/sdk/free bsdutils 1:2.12p-4sarge1.osso4 [66.5kB]
Get:5 http://repository.maemo.org diablo/free libattr1 1:2.4.43-1 [10.3kB]
Get:6 http://debfarm.free.fr chinook/user libss2 1.40.3-1 [38.2kB]
Get:7 http://repository.maemo.org diablo/free libacl1 2.2.47-2 [16.8kB]
Get:8 http://repository.maemo.org diablo/sdk/free coreutils 5.2.1-2osso2 [2710kB]
Get:9 http://debfarm.free.fr chinook/user libuuid1 1.40.3-1 [39.0kB]
Get:10 http://debfarm.free.fr chinook/user e2fsprogs 1.40.3-1 [580kB]
Get:11 http://repository.maemo.org diablo/sdk/free mktemp 1.5-2 [10.3kB]
Get:12 http://repository.maemo.org diablo/sdk/free debianutils 2.17 [50.3kB]
Get:13 http://repository.maemo.org diablo/free libcomerr2 1.37-2sarge1 [26.5kB]
Get:14 http://repository.maemo.org diablo/sdk/free grep 2.5.1.ds1-4 [174kB]
Get:15 http://repository.maemo.org diablo/sdk/free gzip 1.3.5-10sarge1 [79.0kB]
Get:16 http://repository.maemo.org diablo/free mount 2.12p-4sarge1.maemo1 [135kB]
Get:17 http://repository.maemo.org diablo/free ncurses-bin 5.4-3.osso1 [199kB]
Get:18 http://repository.maemo.org diablo/sdk/free sed 4.1.2-8 [203kB]
Get:19 http://repository.maemo.org diablo/sdk/free tar 1.14-2.1osso [508kB]
Get:20 http://repository.maemo.org diablo/sdk/free slang1a-utf8 1.4.9dbs-8 [299kB]
Get:21 http://repository.maemo.org diablo/sdk/free util-linux 2.12p-4sarge1.osso4 [413kB]
Get:22 http://repository.maemo.org diablo/free libavahi-core5 0.6.23-2maemo3 [109kB]
Get:23 http://repository.maemo.org diablo/free host 20000331-9 [75.0kB]
Get:24 http://repository.maemo.org diablo/free avahi-daemon 0.6.23-2maemo3 [86.6kB]
Fetched 6625kB in 40s (162kB/s)
(Reading database ... 27674 files and directories currently installed.)
Removing osso-connectivity ...
Removing libicd-network-dun ...
Removing osso-connectivity-ui ...
Removing osso-connectivity-ui-statusbar ...
Removing osso-connectivity-ui-btsettings ...
Removing osso-connectivity-ui-connmgr ...
Removing osso-connectivity-ui-iapsettings ...
Removing osso-connectivity-ui-gwsettings ...
Removing osso-connectivity-ui-conndlgs ...
Removing osso-connectivity-ui-gwwizard ...
Removing libconbtui0 ...
Removing osso-filemanager ...
Removing hildon-application-framework-rx34-rx44 ...
Removing osso-applet-device ...
Removing osso-bluez-compat ...
Removing maemo-pan ...
Removing bluez-utils ...
Stopping bluez-utils: hcid.
Removing osso-core ...
Removing osso-core-busybox ...
Removing omweather ...
Removing ppp ...
Stopping all PPP connections...done.
Removing dnsmasq ...
Stopping DNS forwarder and DHCP server: dnsmasq.
Removing netbase ...
dpkg: busybox: dependency problems, but removing anyway as you request:
sysvinit depends on busybox | coreutils; however:
Package busybox is to be removed.
Package coreutils is not installed.
Package busybox which provides coreutils is to be removed.
osso-core-config depends on busybox | coreutils; however:
Package busybox is to be removed.
Package coreutils is not installed.
Package busybox which provides coreutils is to be removed.
lsb-base depends on sed; however:
Package sed is not installed.
Package busybox which provides sed is to be removed.
sysvinit depends on busybox | coreutils; however:
Package busybox is to be removed.
Package coreutils is not installed.
Package busybox which provides coreutils is to be removed.
osso-core-config depends on busybox | coreutils; however:
Package busybox is to be removed.
Package coreutils is not installed.
Package busybox which provides coreutils is to be removed.
Removing busybox ...
dpkg-deb (subprocess): failed to exec tar: No such file or directory
dpkg-deb: subprocess tar returned error exit status 2
dpkg: error processing /var/cache/apt/archives/bash_2.05b-26osso4_armel.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/bash_2.05b-26osso4_armel.deb
E: Problem executing scripts DPkg::Post-Invoke 'if [ -x /usr/sbin/docpurge ]; then /usr/sbin/docpurge; else exit 0; fi'
E: Sub-process returned an error code
E: Sub-process /usr/bin/dpkg returned an error code (1)
Virtually nothing is working now! I have one active SSH session that is kind of working.......

Is there a way to install what was removed using apt-get and the debs I have left in /var/cache/apt/archives ?
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#2
Ah, just left you a reply in the other thread, as I didn't see this. Oh, and get that baby on a charger!
 
Posts: 384 | Thanked: 90 times | Joined on Mar 2008
#3
Thanks! So you said:

Originally Posted by Benson View Post
Excellent! Rebooting now would make things quite hard to recover indeed.




Looks like you've attempted to upgrade with the SDK repo enabled, causing conflicts with busybox.

I'm not familiar enough with Debian packaging to be sure what you should do from here, but I think none of that would work anymore. As I understand it, you are currently stuck with no tar, and probably no shell, so installing packages may not work...

First order of business, then, would be to get busybox back on, and all relevant links reinstated. You've got a busybox in /mnt/initfs, but it's linked against a different libc, so you can't just drop it in here...

All I'm thinking is to rip busybox out of another system (on an SD, if you have one).

I have gtar and I have a SSH shell, but no ls, cp, etc. I manageed to gtar up my archives and /home directories. How do I use apt-get to install a local .deb in my archives directory? Yes I have busybox in /mnt/initfs/bin but I can't seem to execute anything there. I'm also running this OS off of SD, so I suppose I *could* reboot to the flash OS, mount the SD OS and ah, I'm freaking out, can you or anyone give me a roadmap or have I fubar?

Last edited by st5150; 2008-09-30 at 21:15.
 
Posts: 384 | Thanked: 90 times | Joined on Mar 2008
#4
Not looking good......

/var/cache/apt/archives# dpkg -i osso-connectivity-ui_1.5.47_all.deb
dpkg-deb (subprocess): failed to exec tar: No such file or directory
dpkg-deb: subprocess tar returned error exit status 2
dpkg: error processing osso-connectivity-ui_1.5.47_all.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
osso-connectivity-ui_1.5.47_all.deb



So how to I rename gtar to tar without cp or mv or cat, etc ? Some how dump it to stdio and back to the filesystem under a diffferent n ame?
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#5
It's repairable, although not necessarily economical to do so.

One option (I hope you have chroot?) is to chroot /mnt/initfs (then that busybox works), (re)mount both the SD root and the flash root under the initfs, and proceed copying and linking merrily away...

If you can't do that, and don't have cp, it gets to be a huge pain to continue working, and you might be better to reboot into flash -- somehow that doesn't feel safe, but I don't really see any reason it should be harder to repair from outside...

If you want to keep working via ssh, you'll need to:
  • mount the flash root somewhere, e.g.
    Code:
    mount -t jffs2 /dev/mtdblock4 /floppy
    (Since mount is busybox, this probably has to be done chrooted into /mnt/initfs, though...)
  • use tar and untar to copy busybox (and whatever else) over.
You'll need to get busybox in, and then you can use it as ls, cp, ln, etc.
I don't know how up you are with busybox, but it normally plays the role given by the zeroth argument, i.e. whatever it was invoked as. So /bin/ln is actually a symlink to busybox. But if you invoke it as busybox, it will play the role given by the first argument, so once you get /bin/busybox in, you can do
Code:
/bin/busybox ln -s busybox /bin/ln
/bin/ln -s busybox /bin/cp
/bin/ln -s busybox /bin/mv
/bin/ln -s busybox /bin/ln
/bin/ln -s busybox /bin/mount
And so on.

And I just checked -- mount and chroot are both busybox. I think you're going to have to boot to flash after all.
 
Posts: 384 | Thanked: 90 times | Joined on Mar 2008
#6
Thanks a lot Benson, looks like fubar is the word of the day. I'll just gtar everything up onto my exteral SD card and re-flash/backup from scratch. What a mess. What a mess I made.
 
briand's Avatar
Posts: 566 | Thanked: 145 times | Joined on Feb 2008 @ Tallahassee, FL
#7
consider it a lesson, albeit a frustratingly irritating one.

next SSU, I'll bet you don't type "apt-get dist-upgrade" again.
__________________
N800 / OS2008
Now running Canola-free (by invitation) since 2215 UTC 21 May 2008.
 
Posts: 384 | Thanked: 90 times | Joined on Mar 2008
#8
Bet you're right! I had read I shouldn't run that command before, but I wasn't in the right mindset when I typed it in :-\
 
GeneralAntilles's Avatar
Posts: 5,478 | Thanked: 5,222 times | Joined on Jan 2006 @ St. Petersburg, FL
#9
Originally Posted by briand View Post
next SSU, I'll bet you don't type "apt-get dist-upgrade" again.
Nor use repositories (the SDK repository) not intended for use on the device.
__________________
Ryan Abel
 
Posts: 384 | Thanked: 90 times | Joined on Mar 2008
#10
So I've booted to my flash OS which I haven't touched in months. I'm updating it to get ready and clone to SD. While trying to update to 2008.30-2 I'm getting a installation packages missing: kernel-diablo-flasher (=2.6.21-200829maemo1) error. I think sliderotate messed this up. How do I revert back? Any tips?

edit: apt-get install kernel-diablo-flasher then apt-get remove kernel-diablo-flasher seems to have done the trick. What a nightmare sliderotate and ssu updates are for many of us!

Last edited by st5150; 2008-09-30 at 23:03.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 21:31.