How to enable apt-get on IMX?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to enable apt-get on IMX?

跳至解决方案
8,801 次查看
byunggukchoi
Contributor II

I'm a beginner in Yocto Project and bought a IMX8 EVB. I successfully built "core-image-sato" image with the following configuration to enable apt-get command.

IMAGE_FEATURES += "  package-management ssh-server-openssh "

IMAGE_INSTALL_append +=" apt"

But when tyring to "apt-get install vim" on the EVB board, the following errors are occurred.

root@cl-som-imx8:~# apt-get install vim
Reading package lists... Error!
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: No such file or directory)
E: Could not open file  - open (2: No such file or directory)
E: Problem opening
E: The package lists or status file could not be parsed or opened.

How can the errors be fixed?

Thanks in advance.

标签 (3)
0 项奖励
回复
1 解答
6,450 次查看
joanxie
NXP TechSupport
NXP TechSupport

it seems apt-get command is for linux, did you build linux OS on the board? try to confirm that you need to install the vim to the board or ubuntu (build environment)

在原帖中查看解决方案

0 项奖励
回复
2 回复数
6,451 次查看
joanxie
NXP TechSupport
NXP TechSupport

it seems apt-get command is for linux, did you build linux OS on the board? try to confirm that you need to install the vim to the board or ubuntu (build environment)

0 项奖励
回复
6,450 次查看
bernhardfink
NXP Employee
NXP Employee

Having apt-get available as a program is one thing, having a web server with a repository is another.

Maybe these documents answer some of your questions:

Yocto Project Package Management - smart 

How to install apt-get to the Yocto Project image - i.MXDev Blog 

0 项奖励
回复