How to enable apt-get on IMX?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to enable apt-get on IMX?

Jump to solution
6,659 Views
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.

Labels (3)
0 Kudos
1 Solution
4,308 Views
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)

View solution in original post

0 Kudos
2 Replies
4,309 Views
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 Kudos
4,308 Views
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 Kudos