Here is some more information. I follow the suggestion to I do apt-get source, 
but am having
more problems. Here is the diary:

===================================================================================================
Start with fresh provision of Ubuntu 18.02 on Linode VPS

Following performed first on system console

apt-get update
apt-get dist-upgrade
apt-get upgrade

Uncommended all instances of deb-src

rebooted machine

System booted up,

apt-get install ssh

Added user account with sudo access to root

As user, run ssh-keygen and then install public
key for my workstation

Confirm Ubuntu and Kernel version before doing anything

maallyn@li1004-144:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:        18.04
Codename:       bionic

maallyn@li1004-144:~$ uname -a
Linux li1004-144 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 
x86_64 x86_64 x86_64 GNU/Linux

Now with user account enabled root via sudo

sudo apt-get install build-essential

following procedure in https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

sudo apt-get build-dep linux linux-image-$(uname -r)
(observed, but saw no errors)

sudo apt-get install libncurses-dev flex bison openssl libssl-dev dkms
libelf-dev libudev-dev libpci-dev libiberty-dev autoconf fakeroot

(Please note that I had to add fakeroot, which is used
but not mentioned in the procedure.

This command was run as the user; not root. However, even though it appeared
to execute okay, I notice there was no source code in the resulting tar file.

Googling around, I find that with 18.04, we need to do:

apt-get source linux-source as the user (not root)

Output of that command is:

======================================================
maallyn@li1004-144:~$ apt-get source linux-source
Reading package lists... Done
Picking 'linux-meta' as source package instead of 'linux-source'
NOTICE: 'linux-meta' packaging is maintained in the 'Git' version control 
system at:
git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux-meta/+git/bionic
Please use:
git clone 
git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux-meta/+git/bionic
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 25.4 kB of source archives.
Get:1 http://mirrors.linode.com/ubuntu bionic-updates/main linux-meta 
4.15.0.128.115 (dsc) [11.0 kB]
Get:2 http://mirrors.linode.com/ubuntu bionic-updates/main linux-meta 
4.15.0.128.115 (tar) [14.4 kB]
Fetched 25.4 kB in 0s (0 B/s)
dpkg-source: info: extracting linux-meta in linux-meta-4.15.0.128.115
dpkg-source: info: unpacking linux-meta_4.15.0.128.115.tar.xz
=======================================================

I do:

git clone git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux-
meta/+git/bionic

This did execute okay, but the result is suspicious; there are no source files
at all.

If I do a find from the top, I get the following:

=========================================================
maallyn@li1004-144:~/bionic$ find .
.
./.git
./.git/index
./.git/hooks
./.git/hooks/applypatch-msg.sample
./.git/hooks/post-update.sample
./.git/hooks/pre-applypatch.sample
./.git/hooks/commit-msg.sample
./.git/hooks/prepare-commit-msg.sample
./.git/hooks/pre-rebase.sample
./.git/hooks/pre-commit.sample
./.git/hooks/pre-push.sample
./.git/hooks/fsmonitor-watchman.sample
./.git/hooks/update.sample
./.git/hooks/pre-receive.sample
./.git/branches
./.git/description
./.git/objects
./.git/objects/pack
./.git/objects/pack/pack-1929ba54decacfff807309c467430129b87b4ad4.pack
./.git/objects/pack/pack-1929ba54decacfff807309c467430129b87b4ad4.idx
./.git/objects/info
./.git/info
./.git/info/exclude
./.git/refs
./.git/refs/tags
./.git/refs/remotes
./.git/refs/remotes/origin
./.git/refs/remotes/origin/HEAD
./.git/refs/heads
./.git/refs/heads/master
./.git/HEAD
./.git/packed-refs
./.git/logs
./.git/logs/refs
./.git/logs/refs/remotes
./.git/logs/refs/remotes/origin
./.git/logs/refs/remotes/origin/HEAD
./.git/logs/refs/heads
./.git/logs/refs/heads/master
./.git/logs/HEAD
./.git/config
./update-version
./debian
./debian/scripts
./debian/scripts/misc
./debian/scripts/misc/git-ubuntu-log
./debian/compat
./debian/source
./debian/source/options
./debian/source/format
./debian/dkms-versions
./debian/changelog
./debian/rules
./debian/control.d
./debian/control.d/transitionals-hwe-edge
./debian/control.d/powerpc64-emb
./debian/control.d/signed-lowlatency
./debian/control.d/generic
./debian/control.d/generic-lpae
./debian/control.d/lowlatency
./debian/control.d/virtual
./debian/control.d/transitionals-hwe
./debian/control.d/powerpc-smp
./debian/control.d/signed-generic
./debian/control.d/powerpc-e500mc
./debian/control.d/powerpc64-smp
./debian/copyright
./debian/control.common
===========================================================================

I am following the procedure in case this is okay. I am not doing the
git clone git://kernel.ubuntu.com/ubuntu/ubuntu-bionic.git command

chmod a+x debian/rules
chmod a+x debian/scripts/*
chmod a+x debian/scripts/misc/*

LANG=C fakeroot debian/rules clean

However, when I try to do:
LANG=C fakeroot debian/rules editconfigs

I get the following error:
maallyn@li1004-144:~/bionic$ LANG=C fakeroot debian/rules editconfigs
make: *** No rule to make target 'editconfigs'.  Stop.
maallyn@li1004-144:~/bionic$

So, I am stuck. This method (using apt-get source)
did not get me as far as using the git clone.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1909687

Title:
  Cannot compile kernel using procedure at
  https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1909687/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to