Yocto 当postinst脚本返回状态1且opkg失败时,如何将opkg包从2014.12升级到2018.12?

Yocto 当postinst脚本返回状态1且opkg失败时,如何将opkg包从2014.12升级到2018.12?,yocto,Yocto,我有2014.12级包装的图像 在/etc/opkg/base-feed.conf中,我将2014.12包的URL替换为2018.12包的URL “opkg更新”更新了数据库 但opkg未能自行升级: root@socfpga:~# opkg upgrade opkg Configuring util-linux-readprofile. update-alternatives: Error: cannot register alternative readprofile to /sbin/re

我有2014.12级包装的图像

在/etc/opkg/base-feed.conf中,我将2014.12包的URL替换为2018.12包的URL

“opkg更新”更新了数据库

但opkg未能自行升级:

root@socfpga:~# opkg upgrade opkg
Configuring util-linux-readprofile.
update-alternatives: Error: cannot register alternative readprofile to /sbin/readprofile since it is already registered to /usr/sbin/readprofile
Collected errors:
 * pkg_run_script: package "util-linux-readprofile" postinst script returned status 1.
 * opkg_configure: util-linux-readprofile.postinst returned 1.

我现在该怎么办?如何升级软件包?

首先,“2014.12”和“2018.12”本身并不是有用的信息:它们是您的供应商提供的操作系统版本号,还是您用于发行版/映像的版本控制方案?其次,仅仅用另一个包源替换一个包源并不能保证设备能够升级——特别是在您的版本号显示的四年期间。如果您的软件包来自操作系统供应商,您应该询问他们支持的升级路径是什么。如果您自己正在构建升级。。。嗯,您可能需要调试和修复带有补丁的配方中的任何升级问题。您的具体情况可能与此更改有关,可能需要向安装前/安装后脚本添加更新替代项调用以删除旧的替代项注册…抱歉,我忘了提到:2014.12和2018.12是Yocto项目的版本号。我不想吹毛求疵,但这些不是Yocto版本。有关发布名称和版本号,请参阅