<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: GPG Error</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/GPG-Error/m-p/1503534#M193643</link>
    <description>&lt;P&gt;Hi Chuck,&lt;/P&gt;
&lt;P&gt;Unlike Layerscape SDK (LSDK), which uses Ubuntu as primary rootfs, i.mx uses Yocto to release rootfs and packages. "apt" is not a preferred way to install packages. That's why you don't get default repositories in Yocto rootfs.&lt;/P&gt;
&lt;P&gt;For "&lt;SPAN&gt;The repository '&lt;/SPAN&gt;&lt;A href="http://ports.ubuntu.com/ubuntu-ports" target="_blank" rel="nofollow noopener noreferrer"&gt;http://ports.ubuntu.com/ubuntu-ports&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;focal-security InRelease' is not signe&lt;/SPAN&gt;" issue, you can append "--allow-insecure-repositories" switch to your "apt" command to bypass security check. However, the chance is you will have dependency issues when trying to install complicated packages like gcc.&lt;/P&gt;
&lt;P&gt;The preferred way to install packages for Yocto rootfs is to added required packages when you create rootfs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your goal is to install compilers (gcc and others), ssh client/server, sftp, you need to add following packages to the yocto rootfs:&lt;/P&gt;
&lt;P&gt;packagegroup-core-buildessential&lt;/P&gt;
&lt;P&gt;packagegroup-core-ssh-openssh&lt;/P&gt;
&lt;P&gt;openssh-sftp-server&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please edit your local.conf and add the line below:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;IMAGE_INSTALL:append = "packagegroup-core-buildessential packagegroup-core-ssh-openssh openssh-sftp-server"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Then rebuild&amp;nbsp;&lt;SPAN&gt;core-image-minimal&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;$ bitbake&amp;nbsp;core-image-minimal&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Reprogram the rootfs, and you'll get the desired packages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2022 22:05:06 GMT</pubDate>
    <dc:creator>ebony_zhu</dc:creator>
    <dc:date>2022-08-09T22:05:06Z</dc:date>
    <item>
      <title>GPG Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPG-Error/m-p/1502753#M193586</link>
      <description>&lt;P&gt;(With a little help) I successfully built&amp;nbsp;core-image-minimal&amp;nbsp; and installed it on an SDcard that booted my X-MCIMX8M-EVK.&amp;nbsp; My goal was to have an Ubuntu with apt-get so I could load other Linux packages.&lt;/P&gt;&lt;P&gt;I believe these lines in ~/imx-yocto-bsp/build-min/conf/local.conf were key to getting apt-get.&lt;/P&gt;&lt;P&gt;# Switch to Debian packaging and include package-management in the image&lt;BR /&gt;PACKAGE_CLASSES = "package_deb"&lt;BR /&gt;EXTRA_IMAGE_FEATURES += "package-management"&lt;/P&gt;&lt;P&gt;Now I have apt-get and several other apt commands:&lt;/P&gt;&lt;P&gt;# ls /usr/bin/*apt*&lt;BR /&gt;/usr/bin/apt /usr/bin/apt-ftparchive&lt;BR /&gt;/usr/bin/apt-cache /usr/bin/apt-get&lt;BR /&gt;/usr/bin/apt-cdrom /usr/bin/apt-key&lt;BR /&gt;/usr/bin/apt-config /usr/bin/apt-mark&lt;BR /&gt;/usr/bin/apt-extracttemplates /usr/bin/apt-sortpkgs&lt;/P&gt;&lt;P&gt;But I can't get any packages:&lt;/P&gt;&lt;P&gt;root@imx8mqevk:/# apt update&lt;BR /&gt;Reading package lists... Done&lt;BR /&gt;Building dependency tree... Done&lt;BR /&gt;All packages are up to date.&lt;BR /&gt;root@imx8mqevk:/# apt install build-essential&lt;BR /&gt;Reading package lists... Done&lt;BR /&gt;Building dependency tree... Done&lt;BR /&gt;E: Unable to locate package build-essential&lt;/P&gt;&lt;P&gt;I do not have any entries in /etc/apt/sources.list.&lt;/P&gt;&lt;P&gt;When I edited some in, i got the following errors for all that I copied from another Ubuntu 20.04 installation:&lt;/P&gt;&lt;P&gt;W: GPG error: &lt;A href="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fports.ubuntu.com%2Fubuntu-ports&amp;amp;data=05%7C01%7Cebony.zhu%40nxp.com%7C96006ac47ee84c0860c308da793b0721%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C637955591695807890%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=AHXbs2NKPGHkDhGd5y3mm%2Bx56IWiTFVkYZVBIEesbAM%3D&amp;amp;reserved=0" target="_blank"&gt;http://ports.ubuntu.com/ubuntu-ports&lt;/A&gt; focal-security InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed&lt;/P&gt;&lt;P&gt;E: The repository '&lt;A href="http://ports.ubuntu.com/ubuntu-ports" target="_blank"&gt;http://ports.ubuntu.com/ubuntu-ports&lt;/A&gt; focal-security InRelease' is not signed.&lt;/P&gt;&lt;P&gt;N: Updating from such a repository can't be done securely, and is therefore disabled by default.&lt;/P&gt;&lt;P&gt;N: See apt-secure(8) manpage for repository creation and user configuration details.&lt;/P&gt;&lt;P&gt;Why didn't the Yocto project that I made successfully contain some valid repositories that I could use to get tools from?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 18:10:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPG-Error/m-p/1502753#M193586</guid>
      <dc:creator>chuck_corley</dc:creator>
      <dc:date>2022-08-08T18:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: GPG Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPG-Error/m-p/1503534#M193643</link>
      <description>&lt;P&gt;Hi Chuck,&lt;/P&gt;
&lt;P&gt;Unlike Layerscape SDK (LSDK), which uses Ubuntu as primary rootfs, i.mx uses Yocto to release rootfs and packages. "apt" is not a preferred way to install packages. That's why you don't get default repositories in Yocto rootfs.&lt;/P&gt;
&lt;P&gt;For "&lt;SPAN&gt;The repository '&lt;/SPAN&gt;&lt;A href="http://ports.ubuntu.com/ubuntu-ports" target="_blank" rel="nofollow noopener noreferrer"&gt;http://ports.ubuntu.com/ubuntu-ports&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;focal-security InRelease' is not signe&lt;/SPAN&gt;" issue, you can append "--allow-insecure-repositories" switch to your "apt" command to bypass security check. However, the chance is you will have dependency issues when trying to install complicated packages like gcc.&lt;/P&gt;
&lt;P&gt;The preferred way to install packages for Yocto rootfs is to added required packages when you create rootfs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your goal is to install compilers (gcc and others), ssh client/server, sftp, you need to add following packages to the yocto rootfs:&lt;/P&gt;
&lt;P&gt;packagegroup-core-buildessential&lt;/P&gt;
&lt;P&gt;packagegroup-core-ssh-openssh&lt;/P&gt;
&lt;P&gt;openssh-sftp-server&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please edit your local.conf and add the line below:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;IMAGE_INSTALL:append = "packagegroup-core-buildessential packagegroup-core-ssh-openssh openssh-sftp-server"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Then rebuild&amp;nbsp;&lt;SPAN&gt;core-image-minimal&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;$ bitbake&amp;nbsp;core-image-minimal&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Reprogram the rootfs, and you'll get the desired packages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 22:05:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPG-Error/m-p/1503534#M193643</guid>
      <dc:creator>ebony_zhu</dc:creator>
      <dc:date>2022-08-09T22:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: GPG Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPG-Error/m-p/1510483#M194190</link>
      <description>&lt;P&gt;Thank you, Ebony.&lt;/P&gt;&lt;P&gt;I've been away from my computer for several weeks but today I got a chance to try your solution.&amp;nbsp; It worked fine!&amp;nbsp; I am now running&amp;nbsp;Linux imx8mqevk 5.15.32-lts-next+gfa6c3168595c #1 SMP PREEMPT Tue Jun 7 02:34:46 UTC 2022 aarch64 GNU/Linux on my X-MCIMX8M-EVK.&amp;nbsp; And it has gcc, g++, make, and ssh installed.&lt;/P&gt;&lt;P&gt;One minor point for anyone else struggling with the same thing ...&lt;/P&gt;&lt;P&gt;I have two build directories: /imx-yocto-bsp/build and /imx-yocto-bsp/build-min.&amp;nbsp; My first attempt to implement your suggestion I edited the wrong file: /imx-yocto-bsp/build/conf/local.conf.&amp;nbsp;When that didn't work, I examined bitbake-cookerdaemon.log in both build directories and confirmed that &lt;EM&gt;bitbake&amp;nbsp;core-image-minimal &lt;/EM&gt;actually uses the&amp;nbsp;/imx-yocto-bsp/build-min directory tree.&amp;nbsp; Editing the correct local.conf, then resulted in success.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 01:51:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPG-Error/m-p/1510483#M194190</guid>
      <dc:creator>chuck_corley</dc:creator>
      <dc:date>2022-08-24T01:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: GPG Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPG-Error/m-p/1510983#M194228</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/143670"&gt;@chuck_corley&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Very glad to hear that and good luck in your future development!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Ebony&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 13:56:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPG-Error/m-p/1510983#M194228</guid>
      <dc:creator>ebony_zhu</dc:creator>
      <dc:date>2022-08-24T13:56:29Z</dc:date>
    </item>
  </channel>
</rss>

