Opened 8 years ago

Closed 8 years ago

#732 closed defect (invalid)

update-alternatives fails to update ln

Reported by: kavol Owned by: ainulindale
Priority: major Milestone:
Component: SHR Image Version: SHR-unstable
Keywords: Cc:

Description

the subject says that all ... trying to force reinstallation of busybox, it invokes update-alternatives for a number of commands, 'ln' being one of them, and after update-alternatives removes the 'ln' link, it fails to link the 'ln' command itself

Change History (7)

comment:1 follow-up: Changed 8 years ago by elhennig

Did you run "opkg upgrade" instead of installing the new image?

comment:2 in reply to: ↑ 1 Changed 8 years ago by kavol

Replying to elhennig:

Did you run "opkg upgrade" instead of installing the new image?

to be exact:

opkg install busybox -force-reinstall

which is the recommended way here: http://wiki.openmoko.org/wiki/SHR_User_Manual#opkg_upgrade_issues

and I'm not sure what do you call "the new image"?

comment:4 in reply to: ↑ 3 Changed 8 years ago by kavol

Replying to Heinervdm:

http://blog.shr-project.org/2009/11/new-shr-image-finally-out.html

thanks

btw, http://www.shr-project.org/trac/wiki -

"SHR has not been released yet. There are only preview images so far"

and to my problem ... is the update-alternatives script present on "the new image" any different from the one provided by shr-unstable repository?

comment:5 follow-up: Changed 8 years ago by Heinervdm

yes it is. We are now using another version of update-alternatives: update-alternatives-cworth

comment:6 in reply to: ↑ 5 Changed 8 years ago by kavol

Replying to Heinervdm:

yes it is. We are now using another version of update-alternatives: update-alternatives-cworth

sorry, I do not understand - if you say "now using", you are talking about the repository, and that it differs from what is on the image (which is supposed to work)?

to be exact:

root@om-gta02:~# opkg search /usr/sbin/update-alternatives
update-alternatives-cworth - 0.99.154-r3.0.4
root@om-gta02:~# opkg list_installed | grep alternatives
update-alternatives-cworth - 0.99.154-r3.0.4

as far as I understand the /usr/sbin/update-alternatives script source code, there is nothing that would handle the special case of relinking ln itself - I've workarounded the problem by adding busybox in front of the ln call, so that busybox is run to do the command, and in that case, reinstallation of busybox goes ok, but obviously, it is not a real solution ... and I'm not that much linux & shell expert to think about something better :-(

comment:7 Changed 8 years ago by spaetz

  • Resolution set to invalid
  • Status changed from new to closed

I am closing this one. Upgrading from the "old" unstable images (ie before November 19th) rather than reflashing is not supported by us. And issues with regard to update-alternative and the linking of ln have been solved since.

Please do reopen this ticket if you get the behavior with a current shr-unstable and

opkg install busybox -force-reinstall

Note: See TracTickets for help on using tickets.