snags at "apt install linux-headers-generic/master linux-image-generic/master"

Asked by Matt

Trying to make an ISO according to:
https://www.dell.com/community/Linux-General/Inspiron-7490-BIOS-How-to-turn-off-intel-RAID-on-and-swith-disk/m-p/7891053

Hit a snag at "apt install linux-headers-generic/master linux-image-generic/master"

The complete input is:
You have entered the virtual environment.
root@cubic:~# wget -q https://deb.endlessos.org/keys/eos-pub-archive-key.asc -O- | apt-key add -
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
OK
root@cubic:~#
root@cubic:~# cat > /etc/apt/preferences.d/endlessOS.pref << EOF
> Package: *
> Pin: origin "deb.endlessos.org"
> Pin-Priority: 1
>
> Package: linux-image-generic, linux-headers-generic
> Pin: origin "deb.endlessos.org"
> Pin-Priority: 1000
> EOF
root@cubic:~#
root@cubic:~# echo "deb [arch=amd64] https://deb.endlessos.org/debian master endless" | tee -a /etc/apt/sources.list.d/endlessOS.list
deb [arch=amd64] https://deb.endlessos.org/debian master endless
root@cubic:~#
root@cubic:~# apt install linux-headers-generic/master linux-image-generic/master
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Release 'master' for 'linux-headers-generic' was not found
E: Release 'master' for 'linux-image-generic' was not found
root@cubic:~#

Any help much appreciated
~matthew

Question information

Language:
English Edit question
Status:
Solved
For:
Cubic Edit question
Assignee:
No assignee Edit question
Solved by:
Cubic PPA
Solved:
Last query:
Last reply:
Revision history for this message
Best Cubic PPA (cubic-wizard) said :
#1

The instructions missed a step.

After:

    echo "deb [arch=amd64] https://deb.endlessos.org/debian master endless" | tee -a squashfs/etc/apt/sources.list.d/endlessOS.list

You must execute:

    apt update

Also, I'm not sure you need "/master" in the following command:

    apt install linux-headers-generic/master linux-image-generic/master

After executing `apt update` try the command as shown in your link. If it doesn't work, try the command without "/master".

Revision history for this message
Matt (waterlight) said :
#2

Thank you. I made the changes you recommended but it still threw an error and the resulting ISO did not work. It's intended to work around an issue with Dell Inspiron 7490 laptop which has no provision for switching from RST to AHCI, and so the Ubuntu installer cannot see the primary drive. That is still the case with the resulting ISO, which is intended to incorporate code from the Endless OS installer, which does work. Secure boot and disabled during the install attempt.

ERROR: couldn't connect to zsys daemon: connection error: desc = "transport: Error while dialing dial unix /run/zsysd.sock: connect: no such file or directory"

So it looks like a problem external to Cubic. I thank you for your time and effort.

Revision history for this message
Cubic PPA (cubic-wizard) said :
#3

Matt,

I noticed the following path in the instructions you linked to.

    squashfs/etc/apt/sources.list.d/endlessOS.list

There is no "squashfs" path when you are in the Cubic terminal environment.

May be the person who posted those instructions meant "/etc/apt/sources.list.d/endlessOS.list" instead (without the squashfs directory)?

Revision history for this message
Cubic PPA (cubic-wizard) said :
#4

The instructions you linked to are basically installing a different Linux kernel.
I presume this kernel was compiled by Endless OS.
I assume this kernel has been modified to change some parameters ('RAID on' and Disk Mode).

Here are the correct instructions (just four simple commands):

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    wget -q https://deb.endlessos.org/keys/eos-pub-archive-key.asc -O- | apt-key add -
    echo "deb [arch=amd64] https://deb.endlessos.org/debian master endless" | tee -a /etc/apt/sources.list.d/endlessOS.list
    apt update
    apt install linux-headers-generic/master linux-image-generic/master
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

On the Kernel tab of Cubic's Options page, be sure to select the newer kernel you just installed (5.11.0-19).

I was able to install the kernel.
(I did get a warning about "Possible missing firmware". You may want to install the missing firmware if you need it).

I did not test boot the generated ISO. I'll leave that testing up to you.

Revision history for this message
Matt (waterlight) said :
#5

Breakthrough! Thanks so much!

I am still left with one problem: The installation fails with
"The 'grub-efi-amd64-signed' package failed to install into /target/. Without the GRUB boot loader, the installed system will not Boot."
And on exiting the installer crashed.
I used all the defaults and minimum install ran the install with fast boot off. Can you help me find a clue to fix this?
(I am dual-booting with windows)
You've done your part exceptionally well, so if this is not in your wheelhouse just let me know, We'll still be friends!

Again, many thanks for getting me this far!
~matt

Revision history for this message
Cubic PPA (cubic-wizard) said (last edit ):
#6

You can see what the problem is if you try to manually install this package in Cubic:

    apt install grub-efi-amd64-signed

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.,
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    grub-efi-amd64-signed : Depends: grub-efi-amd64-bin (= 2.04-1ubuntu44.2) but 2.04+dev245.7421863-28bem1 is to be installed
    E: Unable to correct problems, you have held broken packages.
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

In order to install grub-efi-amd64-signed Ubuntu needs grub-efi-amd64-bin *VERSION* 2.04-1ubuntu44.2.
However, version is 2.04+dev245.7421863-28bem1 is available.

Revision history for this message
Cubic PPA (cubic-wizard) said (last edit ):
#7

Try installing grub-efi-amd64-signed manually in Cubic's Terminal environment, BEFORE you add the PPA for your custom (Endless OS) Linux kernel.

Execute the following in a NEW customization project in Cubic:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    apt update
    apt install grub-efi-amd64-signed

    wget -q https://deb.endlessos.org/keys/eos-pub-archive-key.asc -O- | apt-key add -
    echo "deb [arch=amd64] https://deb.endlessos.org/debian master endless" | tee -a /etc/apt/sources.list.d/endlessOS.list
    apt update
    apt install linux-headers-generic/master linux-image-generic/master

    rm /etc/apt/sources.list.d/endlessOS.list
    apt update
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Also notice in the last two commands above, we remove the endlessOS PPA and refresh (update) the sources list. This is to stop Ubuntu from trying to install additional packages from the EndlessOS PPA. Once you've installed the EndlessOS customized Linux kernel, you probably only want packages (such as "grub-efi-amd64-signed") from the *official* Ubuntu repositories, rather than from the EndlessOS reposotories. This may help avoid additional errors like, "Unable to correct problems, you have held broken packages".

Revision history for this message
Matt (waterlight) said :
#8

Thanks Cubic PPA, that solved my question.