1. 程式人生 > >Signing package index... Cannot open file '/home/jello/openwrt/key-build' for reading

Signing package index... Cannot open file '/home/jello/openwrt/key-build' for reading

all 選項 conf 3.1 -s oba ner 代號 -c

一.環境

發行版:Ubuntu 18.04.1 LTS

代號:bionic

內核版本:4.15.0-30-generic

二.背景

在編譯Openwrt/LEDE時出現以下錯誤,進而自動終止了編譯:

Signing package index... Cannot open file ‘/home/jello/openwrt/key-build‘ for reading

三.解決

有兩種方法可以解決這一問題:

3.1 第一種為:手動生成對應的public key

./staging_dir/host/bin/usign -G -s ./key-build -p ./key-build.pub -c "Local build key"

3.2 第二種為: 修改配置

make menuconfig (禁用 global building settings | Cryptographically sign package lists這一選項)

Signing package index... Cannot open file '/home/jello/openwrt/key-build' for reading