Quoting https://bugzilla.yoctoproject.org/show_bug.cgi?id=4836, dated 2013-07-10: > A few days ago, Martin pointed out an upgrade error of busybox. > > ''' > update-alternatives: Error: cannot register alternative addgroup to > /usr/sbin/addgroup since it is already registered to /bin/addgroup > update-alternatives: Error: cannot register alternative adduser to > /usr/sbin/adduser since it is already registered to /bin/adduser > > ''' > > The real problem here is that opkg's update-alternatives has a simple assumption in its design, that is, the links for the same command should be the same. > > Note that it's not unusual to create symlinks with update-alternatives in OE/Yocto. So my conclusion is opkg's update-alternatives should at least handle this situation, as it may indicate a package upgrade. > > Then I explored the status of update-alternatives in OE and found the flaws stated above. > > //Chen Qi Originally reported by paul.betafive, Nov 18, 2013 -----------------------------------------------------------------------------
fixed on commit fcb26339000021eb9bb711aa264247aebcfdd4ae