这个错误是要手动下,我这边照着教程是报这个错误,这个也是正常构建的第一个错误
sudo dpkg --configure -a
sudo apt-get install -y python3 python3-pip python3-dev git wget curl
ca-certificates ipmitool dbus-x11 libdbus-1-dev dbus pkgconf
libglib2.0-dev gcc-9 g+±9 unzip npm
第二个错误是pip安装和系统安装包冲突需要卸载
ERROR: Cannot uninstall cryptography 41.0.7, RECORD file not found. Hint: The package was installed by debian.
ERROR:root:Command ‘[’/usr/bin/sudo’, ‘/usr/bin/pip3’, ‘install’, ‘/tmp/tmpvu7duxex/openubmc_bingo-0.5.230-py3-none-any.whl’, ‘–break-system-packages’]’ returned non-zero exit status 1.
root@tux-2:/home/arch/manifest#
sudo apt remove python3-cryptography
第三个错误是网络超时,需要配置n
added 1 package in 5s
installing : node-v20.18.0
curl: (35) Recv failure: Connection reset by peer
Error: download preflight failed for ‘20.18.0’ (https://nodejs.org/dist/v20.18.0/node-v20.18.0-linux-x64.tar.xz)
ERROR:root:Command ‘[’/usr/local/bin/n’, ‘20.18.0’]’ returned non-zero exit status 1.
root@tux-2:/home/arch/manifest#
执行
echo ‘export N_NODE_MIRROR=https://npmmirror.com/mirrors/node’ >> ~/.bashrc
source ~/.bashrc