Ubuntu
無法使用 debmirror 創建 apt 鏡像
我試圖在我的本地機器上創建一個鏡像,但我無法驗證 gpg 簽名。
遵循以下步驟:https ://help.ubuntu.com/community/Debmirror
我在 /home/ubuntu/mirrorkeyring 下創建了trustedkeys 和 /var/repository 下創建了儲存庫文件的唯一區別
創建密鑰:
mkdir /home/ubuntu/mirrorkeyring gpg --no-default-keyring --keyring /home/ubuntu/mirrorkeyring/trustedkeys.gpg --import /usr/share/keyrings/ubuntu-archive-keyring.gpg
從我的mirrorbuild.sh:
export GNUPGHOME="/home/ubuntu/mirrorkeyring"
執行mirrorbuild.sh:
Getting meta files ... [ 0%] Getting: dists/trusty/Release... #** GET http://archive.ubuntu.com/ubuntu/dists/trusty/Release ==> 200 OK ok [ 0%] Getting: dists/trusty/Release.gpg... #** GET http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg ==> 200 OK ok Release gpg signature does not verify. Ubuntu Release file: using Suite (trusty). [ 0%] Getting: dists/trusty-security/Release... #** GET http://archive.ubuntu.com/ubuntu/dists/trusty-security/Release ==> 200 OK (1s) ok [ 0%] Getting: dists/trusty-security/Release.gpg... #** GET http://archive.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg ==> 200 OK ok Release gpg signature does not verify. Ubuntu Release file: using Suite (trusty-security). [ 0%] Getting: dists/trusty-updates/Release... #** GET http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release ==> 200 OK ok [ 0%] Getting: dists/trusty-updates/Release.gpg... #** GET http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg ==> 200 OK ok Release gpg signature does not verify. Ubuntu Release file: using Suite (trusty-updates). Errors: Release gpg signature does not verify Release gpg signature does not verify Release gpg signature does not verify Failed to download some Release or Release.gpg files!
我只是嘗試使用 root 從標準 .gnupg 文件夾中讀取文件並工作。