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 Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1909687

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

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  I am trying to use the procedure to compile the kernel for ubuntu-
  bionic:

  https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

  Here is the procedure that I tried to do:

  First, uncomment all deb-src in /etc/apt/sources.list

  apt-get update

  apt-get upgrade

  apt-get dist-upgrade

  Reboot machine

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

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

  sudo apt-get build-dep linux linux-image-$(uname -r)

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

  
  ################ apt-get source linux-image-$(uname -r)  Is broken. I am 
getting permission
  denied even though I am on as root.

  
  root@li1183-111:~# apt-get source linux-image-$(uname -r)
  Reading package lists... Done
  Picking 'linux-signed' as source package instead of 
'linux-image-4.15.0-128-generic'
  Need to get 19.8 kB of source archives.
  Get:1 http://mirrors.linode.com/ubuntu bionic-updates/main linux-signed 
4.15.0-128.131 (dsc) [2,103 B]
  Get:2 http://mirrors.linode.com/ubuntu bionic-updates/main linux-signed 
4.15.0-128.131 (tar) [17.7 kB]
  Fetched 19.8 kB in 0s (1,805 kB/s)
  dpkg-source: info: extracting linux-signed in linux-signed-4.15.0
  dpkg-source: info: unpacking linux-signed_4.15.0-128.131.tar.xz
  W: Download is performed unsandboxed as root as file 
'linux-signed_4.15.0-128.131.dsc' couldn't be accessed by user '_apt'. - 
pkgAcquire::Run (13: Permission denied)

  ##########################################
  #

  Now trying git clone method

  git clone git://kernel.ubuntu.com/ubuntu/ubuntu-bionic.git

  This seems to work okay . . .
  maallyn@li1183-111:~$ git clone 
git://kernel.ubuntu.com/ubuntu/ubuntu-bionic.git
  Cloning into 'ubuntu-bionic'...
  remote: Counting objects: 7717929, done.
  remote: Compressing objects: 100% (1127512/1127512), done.
  Receiving objects: 100% (7717929/7717929), 1.70 GiB | 18.82 MiB/s, done.
  remote: Total 7717929 (delta 6543888), reused 7715758 (delta 6541783)
  Resolving deltas: 100% (6543888/6543888), done.
  Checking out files: 100% (63373/63373), done.

  
  Now, trying to do the fakeroot, come to find that the procedure
  did not include apt-get install fakeroot

  Now the prep to do the configures seem to be okay

  Now, added allyn1 to version by changing the first line of 
debian.master/changelog:
  linux (4.15.0-126.129-allyn1) bionic; urgency=medium

  Change config to remove Nouveau (NVIDIA) cards from configuration
  so that I can use the propriatary NVIDIA drivers

  Changed only amd64 and amd64 lowlatency, but did not change others

  
  ---------------------------------------------------------------------------
  LANG=C fakeroot debian/rules binary-headers binary-generic binary-perarch

  I have made the entire output of the console available at:
  www.allyn.com/build-attempt.txt

  I have also made the entire (uncompiled) source tree available at:
  www.allyn.com/ubuntu-bionic.tar

  I can be contacted at markallyn...@gmail.com and my account at ubuntu
  is maallyn123

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: linux-image-4.15.0-128-generic 4.15.0-128.131
  ProcVersionSignature: Ubuntu 4.15.0-128.131-generic 4.15.18
  Uname: Linux 4.15.0-128-generic x86_64
  AlsaDevices:
   total 0
   crw-rw---- 1 root audio 116,  1 Dec 30 17:06 seq
   crw-rw---- 1 root audio 116, 33 Dec 30 17:06 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
  ApportVersion: 2.20.9-0ubuntu7.21
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 
'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  Date: Wed Dec 30 18:54:36 2020
  InstallationDate: Installed on 2020-09-28 (92 days ago)
  InstallationMedia: Ubuntu-Server 18.04.5 LTS "Bionic Beaver" - Release amd64 
(20200810)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
  Lsusb: Error: command ['lsusb'] failed with exit code 1:
  MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
  PciMultimedia:
   
  ProcFB: 0 bochsdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-128-generic root=/dev/sda 
ro console=ttyS0,19200n8 net.ifnames=0
  RelatedPackageVersions:
   linux-restricted-modules-4.15.0-128-generic N/A
   linux-backports-modules-4.15.0-128-generic  N/A
   linux-firmware                              1.173.19
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  WifiSyslog:
   
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: rel-1.12.0-0-ga698c8995f-prebuilt.qemu.org
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-q35-3.1
  dmi.modalias: 
dmi:bvnSeaBIOS:bvrrel-1.12.0-0-ga698c8995f-prebuilt.qemu.org:bd04/01/2014:svnQEMU:pnStandardPC(Q35+ICH9,2009):pvrpc-q35-3.1:cvnQEMU:ct1:cvrpc-q35-3.1:
  dmi.product.name: Standard PC (Q35 + ICH9, 2009)
  dmi.product.version: pc-q35-3.1
  dmi.sys.vendor: QEMU

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to