小熊派BearPi-HM_nano开发笔记及避坑
前排提示:直接使用官方提供的Ubuntu18.04 OVF,自己配有诸多问题,PPT未给出详细方案。
即使是用虚拟机OVF,也有不少坑,现记录如下:
基本配置
问题1:Certificate verification failed: The certificate is NOT trusted
执行sudo apt update
时提示“Certificate verification failed: The certificate is NOT trusted.无法安全地用该源进行更新,所以默认禁用该源。”
解决方法:安装对应版本的ca-certificates
wget http://archive.ubuntu.com/ubuntu/pool/main/c/ca-certificates/ca-certificates_20230311ubuntu0.18.04.1_all.deb
dpkg -i ca-certificates_20230311ubuntu0.18.04.1_all.deb
beep_player测试
参考链接:https://hpm.harmonyos.com/#/cn/solution/@bearpi%2Fbearpi_hm_nano_beep_player
问题1:安装python模块时报错
执行sudo pip3 install setuptools kconfiglib pycryptodome ecdsa six --upgrade --ignore-installed six
时报错:ModuleNotFoundError: No module named 'setuptools.command.build'
解决方法:
首先可以考虑执行下面的指令:
sudo apt install python-pip
pip install python3-setuptools
事实上还是没解决,不过似乎没有影响。
问题2:Import from OpenHarmony Source无法选择Product
Product为空,选不了bearpi-hm_nano...
解决方法:选择Import from other source
问题3:DevEco配置Uploader时VSCode卡死
直接通过Download下载Hiburn,不要点选路径。
标签:nano,ca,sudo,避坑,setuptools,HM,certificates From: https://www.cnblogs.com/EndPoem-ZH/p/17884203.html