chaslinux / ubuntu-pxe

Attempt to set up a PXE server using the instructions on the Ubuntu Discourse
GNU General Public License v3.0
0 stars 0 forks source link

set up files for UEFI booting failed #1

Open changchichung opened 1 year ago

changchichung commented 1 year ago

ubuntu-pxe.sh failed

2023-02-15 14:44:46 [mini@s006 tmp.jKrUMr1jof]$ apt download shim-signed
下載:1 http://free.nchc.org.tw/ubuntu jammy-proposed/main amd64 shim-signed amd64 1.51.3+15.7-0ubuntu1 [667 kB]
取得 667 kB 用了 0s (5,428 kB/s)
2023-02-15 14:44:57 [mini@s006 tmp.jKrUMr1jof]$ ls
shim-signed_1.51.3+15.7-0ubuntu1_amd64.deb
2023-02-15 14:44:58 [mini@s006 tmp.jKrUMr1jof]$ dpkg-deb --fsys-tarfile shim-signed*deb | tar x ./usr/lib/shim/shimx64.efi.signed -O > bootx64.efi
tar: ./usr/lib/shim/shimx64.efi.signed: Not found in archive
tar: Exiting with failure status due to previous errors
2023-02-15 14:45:06 [mini@s006 tmp.jKrUMr1jof]$ 

any suggestions ?

chaslinux commented 1 year ago

Hi Eric,

Yes, was this done right after an Ubuntu Server install? If so, sometimes the package database needs an update.Thanks to your email I also noticed the original script didn't even have execute permission. I've updated both of these so doing a git pull in the directory should update the script. I think it should work for you if you just run sudo apt update and then run the ubuntu-pxe.sh after.

On Wed, 15 Feb 2023 at 01:47, Eric Chang @.***> wrote:

ubuntu-pxe.sh failed

2023-02-15 14:44:46 @.*** tmp.jKrUMr1jof]$ apt download shim-signed

下載:1 http://free.nchc.org.tw/ubuntu jammy-proposed/main amd64 shim-signed amd64 1.51.3+15.7-0ubuntu1 [667 kB]

取得 667 kB 用了 0s (5,428 kB/s)

2023-02-15 14:44:57 @.*** tmp.jKrUMr1jof]$ ls

shim-signed_1.51.3+15.7-0ubuntu1_amd64.deb

2023-02-15 14:44:58 @.** tmp.jKrUMr1jof]$ dpkg-deb --fsys-tarfile shim-signeddeb | tar x ./usr/lib/shim/shimx64.efi.signed -O > bootx64.efi

tar: ./usr/lib/shim/shimx64.efi.signed: Not found in archive

tar: Exiting with failure status due to previous errors

2023-02-15 14:45:06 @.*** tmp.jKrUMr1jof]$

any suggestions ?

— Reply to this email directly, view it on GitHub https://github.com/chaslinux/ubuntu-pxe/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXGA44FNW5A4C7ZFOL6ELTTWXR3WPANCNFSM6AAAAAAU4OPNHI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Charles Mastodon: @@.***

changchichung commented 1 year ago

still can not find shimx64.efi.signed

mount: /mnt: WARNING: source write-protected, mounted read-only.
tar: ./usr/lib/shim/shimx64.efi.signed:在封存中找不到
tar: 由於先前錯誤而以失敗狀態離開
mv: 無法取得 '/home/chchang/git/ubuntu-pxe/grub.cfg' 的資訊: 沒有此一檔案或目錄
chaslinux commented 1 year ago

Thanks Eric, I will follow this tomorrow. I'm swamped at work today, but I have to re-setup our PXE server tomorrow. So I'll try the script then.

On Wed, 15 Feb 2023 at 20:30, Eric Chang @.***> wrote:

still can not find shimx64.efi.signed

mount: /mnt: WARNING: source write-protected, mounted read-only.

tar: ./usr/lib/shim/shimx64.efi.signed:在封存中找不到

tar: 由於先前錯誤而以失敗狀態離開

mv: 無法取得 '/home/chchang/git/ubuntu-pxe/grub.cfg' 的資訊: 沒有此一檔案或目錄

— Reply to this email directly, view it on GitHub https://github.com/chaslinux/ubuntu-pxe/issues/1#issuecomment-1432333000, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXGA44D62CWABSZR64NWFN3WXV7LLANCNFSM6AAAAAAU4OPNHI . You are receiving this because you commented.Message ID: @.***>

-- Charles Mastodon: @@.***