【问题解决了】重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”
-
- 帖子: 8
- 注册时间: 2015-01-07 10:27
- 系统: 14.04 LTS
【问题解决了】重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”
有没有人搞过向安装盘中增加一些DEB包的事情,按照官网的教程,需要重签名。但是签名之后又找不到内核。
上次由 dxfmichael 在 2015-01-14 16:44,总共编辑 1 次。
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”,有人知道怎么搞
重新打包有許多方法重新签名打包Ubuntu 14.04 ISO
請提供你重新打包的過程
或 提供你參考網頁的網址
-
- 帖子: 8
- 注册时间: 2015-01-07 10:27
- 系统: 14.04 LTS
Re: 重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”,有人知道怎么搞
我是按照https://help.ubuntu.com/community/InstallCDCustomization#Modify_pool_structure_to_include_more_packages去做的。
只执行了重新签名和打包的步骤。
重签名执行的脚本如显下:
#!/bin/bash
BUILD=/home/setup/cd
APTCONF=/home/setup/scripts/apt-ftparchive/release.conf
DISTNAME=trusty
pushd $BUILD
for component in main; do
sudo apt-ftparchive packages "$BUILD/pool/$component/" > "$BUILD/dists/$DISTNAME/$component/binary-amd64/Packages"
gzip -c "$BUILD/dists/$DISTNAME/$component/binary-amd64/Packages" | \
sudo tee "$BUILD/dists/$DISTNAME/$component/binary-amd64/Packages.gz" > /dev/null
done
apt-ftparchive -c $APTCONF release $BUILD/dists/$DISTNAME > $BUILD/dists/$DISTNAME/Release
gpg --default-key "BC404D2F" --output $BUILD/dists/$DISTNAME/Release.gpg -ba $BUILD/dists/$DISTNAME/Release
popd
只执行了重新签名和打包的步骤。
重签名执行的脚本如显下:
#!/bin/bash
BUILD=/home/setup/cd
APTCONF=/home/setup/scripts/apt-ftparchive/release.conf
DISTNAME=trusty
pushd $BUILD
for component in main; do
sudo apt-ftparchive packages "$BUILD/pool/$component/" > "$BUILD/dists/$DISTNAME/$component/binary-amd64/Packages"
gzip -c "$BUILD/dists/$DISTNAME/$component/binary-amd64/Packages" | \
sudo tee "$BUILD/dists/$DISTNAME/$component/binary-amd64/Packages.gz" > /dev/null
done
apt-ftparchive -c $APTCONF release $BUILD/dists/$DISTNAME > $BUILD/dists/$DISTNAME/Release
gpg --default-key "BC404D2F" --output $BUILD/dists/$DISTNAME/Release.gpg -ba $BUILD/dists/$DISTNAME/Release
popd
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”,有人知道怎么搞
打包Ubuntu 14.04 ISO
https://help.ubuntu.com/community/Insta ... troduction我是按照https://help.ubuntu.com/community/InstallCDCustomization#Modify_pool_structure_to_include_more_packages去做的。
只执行了重新签名和打包的步骤。
This guide is for the 'Alternative Install' or 'Server Install' CDs. There is a page referring to customization of the Desktop (Live) CD, and another guide on how to create a Live CD without using an existing CD at all.
你的 Ubuntu 14.04 ISO 是桌面版 還是 Server 版 ?
如果是 桌面版 請參考
https://help.ubuntu.com/community/LiveCDCustomization
https://help.ubuntu.com/community/LiveC ... romScratch
-
- 帖子: 8
- 注册时间: 2015-01-07 10:27
- 系统: 14.04 LTS
Re: 重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”,有人知道怎么搞
poloshiao 写了:打包Ubuntu 14.04 ISOhttps://help.ubuntu.com/community/Insta ... troduction我是按照https://help.ubuntu.com/community/InstallCDCustomization#Modify_pool_structure_to_include_more_packages去做的。
只执行了重新签名和打包的步骤。
This guide is for the 'Alternative Install' or 'Server Install' CDs. There is a page referring to customization of the Desktop (Live) CD, and another guide on how to create a Live CD without using an existing CD at all.
你的 Ubuntu 14.04 ISO 是桌面版 還是 Server 版 ?
如果是 桌面版 請參考
https://help.ubuntu.com/community/LiveCDCustomization
https://help.ubuntu.com/community/LiveC ... romScratch
我的是server版本,就是按照这个里面操作的,签名后就报这个错误,把原来的Package.gz和Release Release.gpg拷贝过来,就没问题。
-
- 帖子: 8
- 注册时间: 2015-01-07 10:27
- 系统: 14.04 LTS
Re: 重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”,有人知道怎么搞
刚刚又试了一下,看了一下系统日志发现了报错,如下,还有人知道怎么办?
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”,有人知道怎么搞
出現許多菱形字符 影響判讀刚刚又试了一下,看了一下系统日志发现了报错,如下,还有人知道怎么办?
gpgkeyerror.png
1. 安裝時 語言先選擇 英文
2. 或者 參閱
viewtopic.php?p=3120845#p3120845
3. 然後 再貼一次
-
- 帖子: 8
- 注册时间: 2015-01-07 10:27
- 系统: 14.04 LTS
Re: 重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”,有人知道怎么搞
问题解决了,官方文档确实有问题。
没有说明,需要将install/filesystem.squashfs里面的/etc/apt/trusted.gpg要替换成新生成的keyring,否则无法从新的ISO安装。
就是会报这个public key not found的错误。
没有说明,需要将install/filesystem.squashfs里面的/etc/apt/trusted.gpg要替换成新生成的keyring,否则无法从新的ISO安装。
就是会报这个public key not found的错误。