一、 遇到的问题
在dpkg中找不到python,但是python已经安装,版本为3.8
INFO: Checking installation environment requirements...
WARNING: This is not a supported OS
INFO: Checking free disk space
INFO: Checking installed tools
dpkg-query: package 'python' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
environment: line 305: ((: 10#30+ > 10#24: syntax error: operand expected (error token is "> 10#24")
environment: line 309: ((: 10#30+ < 10#24: syntax error: operand expected (error token is "< 10#24")
ERROR: You have tools that don't meet the version requirements:
-Detected python version is less than the expected 2.7.3
INFO: Checking installed development libraries
Please install them with your operating system package manager, and try again
WARNING: Please install required packages.
Please refer to the PetaLinux Tools Installation Guide.
Check the troubleshooting guide at the end of that manual, and if you are
unable to resolve the issue please contact customer support with file:
/home/lign/petalinux_installation_log
二、解决办法
参考链接petalinux2019.4
首先安装python2
sudo apt install python2
然后修改/var/lib/dpkg/status文件,修改之前记得备份
按包排序添加以下代码
Package: python
Status: install ok installed
Maintainer: Fake Entry <fake@example.com>
Architecture: all
Version: 2.7.17
Description: fake package for petalinux
然后再执行安装就可以正常安装了