【问题解决了】重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”

编译打包和其他
回复
dxfmichael
帖子: 8
注册时间: 2015-01-07 10:27
系统: 14.04 LTS

【问题解决了】重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”

#1

帖子 dxfmichael » 2015-01-07 10:34

有没有人搞过向安装盘中增加一些DEB包的事情,按照官网的教程,需要重签名。但是签名之后又找不到内核。
附件
error.PNG
上次由 dxfmichael 在 2015-01-14 16:44,总共编辑 1 次。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”,有人知道怎么搞

#2

帖子 poloshiao » 2015-01-07 12:00

重新签名打包Ubuntu 14.04 ISO
重新打包有許多方法
請提供你重新打包的過程
或 提供你參考網頁的網址
dxfmichael
帖子: 8
注册时间: 2015-01-07 10:27
系统: 14.04 LTS

Re: 重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”,有人知道怎么搞

#3

帖子 dxfmichael » 2015-01-07 13:39

我是按照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
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”,有人知道怎么搞

#4

帖子 poloshiao » 2015-01-07 19:17

打包Ubuntu 14.04 ISO
我是按照https://help.ubuntu.com/community/InstallCDCustomization#Modify_pool_structure_to_include_more_packages去做的。
只执行了重新签名和打包的步骤。
https://help.ubuntu.com/community/Insta ... troduction
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
dxfmichael
帖子: 8
注册时间: 2015-01-07 10:27
系统: 14.04 LTS

Re: 重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”,有人知道怎么搞

#5

帖子 dxfmichael » 2015-01-09 21:42

poloshiao 写了:
打包Ubuntu 14.04 ISO
我是按照https://help.ubuntu.com/community/InstallCDCustomization#Modify_pool_structure_to_include_more_packages去做的。
只执行了重新签名和打包的步骤。
https://help.ubuntu.com/community/Insta ... troduction
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拷贝过来,就没问题。
dxfmichael
帖子: 8
注册时间: 2015-01-07 10:27
系统: 14.04 LTS

Re: 重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”,有人知道怎么搞

#6

帖子 dxfmichael » 2015-01-09 22:44

gpgkeyerror.png
刚刚又试了一下,看了一下系统日志发现了报错,如下,还有人知道怎么办?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”,有人知道怎么搞

#7

帖子 poloshiao » 2015-01-10 12:59

刚刚又试了一下,看了一下系统日志发现了报错,如下,还有人知道怎么办?
gpgkeyerror.png
出現許多菱形字符 影響判讀
1. 安裝時 語言先選擇 英文
2. 或者 參閱
viewtopic.php?p=3120845#p3120845
3. 然後 再貼一次
dxfmichael
帖子: 8
注册时间: 2015-01-07 10:27
系统: 14.04 LTS

Re: 重新签名打包Ubuntu 14.04 ISO,再安装的时候报错“在APT源中找不到可安装的内核”,有人知道怎么搞

#8

帖子 dxfmichael » 2015-01-14 16:41

问题解决了,官方文档确实有问题。
没有说明,需要将install/filesystem.squashfs里面的/etc/apt/trusted.gpg要替换成新生成的keyring,否则无法从新的ISO安装。
就是会报这个public key not found的错误。
回复