Reply
Thread Tools
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#1
Basically, I ran rm -r /foo and by the time I realized that /home was mounted under /foo/bar and pressed Ctrl-C, I ended up with a messed up phone. It is mostly working (some apps crash on start, but the essential ones seem fine), but the theme and most icons are gone. It still displays the text under the icons but no icons. The few apps that do work show up without the title bar, the system and power menus show up as square grey buttons like in Windows 3, fonts are reduced to size 2... you get the idea. Reinstalling individual apps does not bring their icons back. I am out of storage on my PC for a backup and reflash but I can do that if push comes to shove. Of course, I would prefer if there was a better way.

I am not worried about the icons. I can bring them back from a vanilla image. But the theme is a different thing. Reinstalling alpha did not help. I thought of installing beta and switching there and back to see if it helps but I can't switch themes. Settings show up but do not react to buttons. Is there a way to do it by some other way? Or does anyone have a better idea?

I tried a quick search and found this case which is a bit similar but no solution.

Last edited by pichlo; 2013-04-22 at 08:23. Reason: Changed subject to better fitting
 

The Following User Says Thank You to pichlo For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#2
I'm guessing Maemo can live without a /home, but not without /home/opt, which you've probably, partially, hosed.

In these cases the usual recommendation is to reflash, but knowing/guessing you I expect you'll try to "resuscitate" your N900. Fow now all I can say is good luck!

[it's a pity one cannot simply stop time to think about such "useless" but at the same time very interesting problems]
 

The Following 3 Users Say Thank You to reinob For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#3
I was afraid you'd say that
 

The Following User Says Thank You to pichlo For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#4
You might try to create a list of the packages dpkg thinks are installed and then reinstall each and every package. You will need plenty of bandwidth, better first download all the packages, then do the re-installation.
Code:
sudo gainroot
apt-get clean
apt-get update
dpkg -l | awk '/^ii/{ print $2 }' > apps_to_reinstall.txt
apt-get install --reinstall -y --force-yes $(<apps_to_reinstall.txt)
The last command might just download everything if you add '-dy' options.

There might be complaints of apt-get, so please FIRST ask, if anything would be removed or other errors are put out.

Last edited by michaaa62; 2013-04-21 at 19:14. Reason: See pichlo's post beneath for the correct options for the install!
 

The Following 7 Users Say Thank You to michaaa62 For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#5
That's it, thanks michaaa62! Except I used --reinstall too just to make sure, and started in small steps, such as
Code:
dpkg -l | grep osso-systemui | awk '/^ii/{ print $2 }' | xargs apt-ge
t install --reinstall -y --force-yes
That seems to have brought the theme back. Most icons are still missing but the windows decorations, buttons and texts look like they should. The auspices look good

BTW another reason I was hesitant with the flashing is that I have another device that just wouldn't flash. I have yet to find a solution for that one. Bricking this one would mean I would stay without a phone.
 

The Following 5 Users Say Thank You to pichlo For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#6
@pichlo,

See? all you needed was some luck, and @michaaa62, who always comes to the rescue
 

The Following 2 Users Say Thank You to reinob For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#7
In case anyone's interested, I've resuscitated the blighter. Reinstalling osso-systemui* brought back the themes and maemo-icons-203 brought back most icons. Then it was just a question of finding which apps had missing their icons missing or were otherwise broken and reinstalling those. Now the only two remaining problems are:

1) I have a mouse cursor on the screen. It follows the stylus which is kinda cool and it does not bother me so I am quite happy to leave it as it is but if someone knows what might have caused it I would be quite interested.

2) The icons for status-area-orientationlock-applet is missing and I cannot reinstall the package. It keeps telling me that it cannot be downloaded. I've had the same with some other package and then I've found that the download was called something else than the package name after the installation. Perhaps the same problem? What is the package really called?

Mind you, I would actually prefer to get rid of the package anyway and have the device permanently locked in landscape but apt is telling me that it would render libcpaboutcssu, rtcom-accounts-voip-support, rtcom-messaging-ui-portrait, dsme-thermalobject-surface, modest-home-applet, qtquickcompat and maemo-optify-runonce candidates for autoremove. The ones I am not sure about are the ones in italics. What exactly do they do?
 

The Following 3 Users Say Thank You to pichlo For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#8
Thanks for the feedback! I edited the commands and added the correct options for the install command to reinstall the packages for future reference.

No idea about that cursor...
The package status-area-orientationlock-applet is existing with that name
Code:
$ apt-cache policy status-area-orientationlock-applet
status-area-orientationlock-applet:
  Installed: 1.0+0cssu4
  Candidate: 1.0+0cssu4
  Version table:
 *** 1.0+0cssu4 0
        500 http://repository.maemo.org fremantle/free Packages
        500 http://192.168.49.208 fremantle/free Packages
        100 /var/lib/dpkg/status
     1.0+0cssu3.1 0
        500 http://repository.maemo.org fremantle/free Packages
     1.0+0cssu3 0
        500 http://repository.maemo.org fremantle/free Packages
        500 http://192.168.49.208 fremantle/free Packages
     1.0+0cssu2 0
        500 http://repository.maemo.org fremantle/free Packages
        500 http://192.168.49.208 fremantle/free Packages
     1.0+0cssu1 0
        500 http://repository.maemo.org fremantle/free Packages
        500 http://192.168.49.208 fremantle/free Packages
W: Ignoring Provides line with DepCompareOp for package binutils
You should have any of the cssu-stable or cssu-testing repos enabled to get it.

Last edited by michaaa62; 2013-04-21 at 19:15.
 

The Following 3 Users Say Thank You to michaaa62 For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#9
Interesting. This is what I am getting.
Code:
# apt-get install --reinstall status-area-orientationlock-applet
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reinstallation of status-area-orientationlock-applet is not possible, it cannot be downloaded.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
# apt-cache policy status-area-orientationlock-applet
status-area-orientationlock-applet:
  Installed: 1.0+0cssu4
  Candidate: 1.0+0cssu4
  Version table:
 *** 1.0+0cssu4 0
        100 /var/lib/dpkg/status
     1.0+0cssu3.1 0
        500 http://repository.maemo.org fremantle/free Packages
     1.0+0cssu3 0
        500 http://maemo.merlin1991.at fremantle/free Packages
#
I wonder where that difference between my and your 1.0+0cssu4.0 comes from. As far as I can see, the repository is there for 1.0+cssu3.1.0.

Where is the sources file anyway? My /etc/apt/sources.list is empty:
Code:
# find / -name sources.list -exec ls -l {} \;
-rw-r--r--    1 root     root             0 Nov  3  2009 /etc/apt/sources.list
-rw-r--r--    1 root     root           596 Apr 20 17:13 /opt/fapman-cache/sources.list
-rw-r--r--    1 root     root           596 Apr 20 17:13 /home/opt/fapman-cache/sources.list
#
But apt knows about the sources:
Code:
# apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://repository.maemo.org fremantle/non-free Packages
     release v=2.0,o=maemo,a=fremantle,l=Extras-devel,c=non-free
     origin repository.maemo.org
 500 http://repository.maemo.org fremantle/free Packages
     release v=2.0,o=maemo,a=fremantle,l=Extras-devel,c=free
     origin repository.maemo.org
 500 https://downloads.maemo.nokia.com ./ Packages
     release c=
     origin downloads.maemo.nokia.com
 500 http://repository.maemo.org fremantle-1.3/non-free Packages
     release v=2.0,o=maemo,a=fremantle-1.3,l=Extras,c=non-free
     origin repository.maemo.org
 500 http://repository.maemo.org fremantle-1.3/free Packages
     release v=2.0,o=maemo,a=fremantle-1.3,l=Extras,c=free
     origin repository.maemo.org
 500 https://downloads.maemo.nokia.com ./ Packages
     release c=
     origin downloads.maemo.nokia.com
 500 https://downloads.maemo.nokia.com ./ Packages
     release c=
     origin downloads.maemo.nokia.com
 500 https://downloads.maemo.nokia.com ./ Packages
     release c=
     origin downloads.maemo.nokia.com
 500 http://maemo.merlin1991.at fremantle/non-free Packages
     release a=community-thumb,c=non-free
     origin maemo.merlin1991.at
 500 http://maemo.merlin1991.at fremantle/free Packages
     release a=community-thumb,c=free
     origin maemo.merlin1991.at
 500 http://maemo.merlin1991.at fremantle/non-free Packages
     release a=community-devel,c=non-free
     origin maemo.merlin1991.at
 500 http://maemo.merlin1991.at fremantle/free Packages
     release a=community-devel,c=free
     origin maemo.merlin1991.at
 500 http://repository.maemo.org fremantle/non-free Packages
     release v=2.0,o=maemo,a=fremantle,l=community,c=non-free
     origin repository.maemo.org
 500 http://repository.maemo.org fremantle/free Packages
     release v=2.0,o=maemo,a=fremantle,l=community,c=free
     origin repository.maemo.org
Pinned packages:
     fennec -> (not found)
#
I can't believe apt is using the fapman list. The fact that it is identical is clearly just a result of mine laborously keeping HAM and FAM in sync.
 

The Following User Says Thank You to pichlo For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#10
Never mind, I got the package with wget and installed it with dpkg -i. All is well now (bar that cursor that is, but that's a minor thing).

@michaaa62, thank you for your valuable input. You certainly nudged me in the right direction!
 

The Following 2 Users Say Thank You to pichlo For This Useful Post:
Reply

Tags
nokia n900, reinstallation


 
Forum Jump


All times are GMT. The time now is 15:14.